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.
 
 
 

43 lines
908 B

/*
------------------------------------------------------------------------------------------------------------------------
####### data ####### Copyright (c) 2021 mls-361 #################################################### MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package data
const _defaultServerPort = 65530
// Cli AFAIRE.
type Cli struct {
Cert string
Key string
}
// TLS AFAIRE.
type TLS struct {
Host string
CA string
Cert string
Key string
AuthType int
Cli *Cli
}
// Server AFAIRE.
type Server struct {
Port int
TLS *TLS
}
func (s *Server) validate() error {
if s.Port == 0 {
s.Port = _defaultServerPort
}
return nil
}
/*
######################################################################################################## @(°_°)@ #######
*/