lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseServer

type BaseServer struct {
	Name      string
	WaitGroup *sync.WaitGroup
	Listener  net.Listener
	// contains filtered or unexported fields
}

func NewBaseServer

func NewBaseServer(name string) *BaseServer

func (*BaseServer) Close

func (s *BaseServer) Close() error

func (*BaseServer) Open

func (s *BaseServer) Open(addr string, callback func(net.Listener)) (net.Listener, error)

func (*BaseServer) Running

func (s *BaseServer) Running() bool

type Server

type Server interface {
	Open(addr string) (net.Listener, error)
	Close() error
	WaitGroup() *sync.WaitGroup
	Listener() net.Listener
	Running() bool
}

Directories

Path Synopsis
helpers
log

Jump to

Keyboard shortcuts

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