Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
armen/internal/config/data/data.go

31 lines
810 B

/*
------------------------------------------------------------------------------------------------------------------------
####### data ####### Copyright (c) 2021 mls-361 #################################################### MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package data
// Data AFAIRE.
type Data struct {
Logger Logger
Server Server
Storage Storage
}
// Validate AFAIRE.
func (d *Data) Validate() error {
if err := d.Logger.validate(); err != nil {
return err
}
if err := d.Server.validate(); err != nil {
return err
}
return d.Storage.validate()
}
/*
######################################################################################################## @(°_°)@ #######
*/