server

package
v0.0.0-...-d144a35 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	TCPAddress string `flag:"tcp-address"`
	Logger     *log.Logger
}

Options Options

func NewOptions

func NewOptions() *Options

NewOptions NewOptions

type TCPServer

type TCPServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

TCPServer server

func New

func New(opts *Options) *TCPServer

New new

func (*TCPServer) Exit

func (s *TCPServer) Exit()

Exit Exit

func (*TCPServer) GetStartTime

func (s *TCPServer) GetStartTime() time.Time

GetStartTime GetStartTime

func (*TCPServer) RealTCPAddr

func (s *TCPServer) RealTCPAddr() *net.TCPAddr

RealTCPAddr RealTCPAddr

func (*TCPServer) Serve

func (s *TCPServer) Serve()

Serve Serve

Jump to

Keyboard shortcuts

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