/* ------------------------------------------------------------------------------------------------------------------------ ####### data ####### Copyright (c) 2021 mls-361 #################################################### MIT License ####### ------------------------------------------------------------------------------------------------------------------------ */ package data const _defaultServerPort = 65530 // Cli AFAIRE. type Cli struct { CA string 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 } /* ######################################################################################################## @(°_°)@ ####### */