Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// Host is the server's IP address.
Host string `mapstructure:"host" json:"host" yaml:"host""`
// Port is the server's port.
Port uint `mapstructure:"port" json:"port" yaml:"port"`
}
Server contains the data for a server.
func InitializeDefault ¶
func InitializeDefault() *Server
InitializeDefault creates a new server with default values.
func (*Server) GetAddress ¶
GetAddress returns the server's address.
Click to show internal directories.
Click to hide internal directories.