server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PREPAREERROR = 1
	RUNERROR     = 2
	CLOSEERROR   = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerAddr

type ServerAddr struct{}

func (ServerAddr) IP

func (ServerAddr) IP(subnet *string) string

type ServerBase

type ServerBase struct {
	// contains filtered or unexported fields
}

func New

func New(
	prepareDuration time.Duration,
	run func() error,
) *ServerBase

func (*ServerBase) AddDependencies

func (server *ServerBase) AddDependencies(
	dependencies ...infrastructure.Dependency,
) infrastructure.Server

func (*ServerBase) Run

func (server *ServerBase) Run()

Jump to

Keyboard shortcuts

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