server

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServersMapFromList

func NewServersMapFromList(input []string) (output map[string]*Server)

Types

type Server

type Server struct {
	Address    net.Addr
	Connection *net.PacketConn `csv:"-"`
	LastSeen   time.Time
}

func NewServerFromString

func NewServerFromString(input string) (*Server, error)

func (Server) IsExpired

func (s Server) IsExpired(ttl time.Duration) bool

func (*Server) MarshalJSON added in v2.1.2

func (s *Server) MarshalJSON() ([]byte, error)

func (Server) String

func (s Server) String() string

Jump to

Keyboard shortcuts

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