server

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 1 Imported by: 0

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

func (server *Server) GetAddress() string

GetAddress returns the server's address.

func (*Server) GetHost

func (server *Server) GetHost() string

GetHost returns the server's IP address.

func (*Server) GetPort

func (server *Server) GetPort() uint

GetPort returns the server's port.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL