server

package
v0.0.0-...-68939c2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DynamicWhitelistIp  = "dwi"
	DynamicWhitelistNet = "dwn"
	DynamicBlacklistIp  = "dbi"
	DynamicBlacklistNet = "dbn"
	StaticWhitelistIp   = "swi"
	StaticWhitelistNet  = "swn"
	StaticBlacklistIp   = "sbi"
	StaticBlacklistNet  = "sbn"
)
View Source
const (
	UDPPacketSize = 1500
)

Variables

This section is empty.

Functions

Types

type Server

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

func NewServer

func NewServer(conf ServerConfig) *Server

func (*Server) ServeAPI

func (self *Server) ServeAPI()

func (*Server) Stop

func (self *Server) Stop()

type ServerConfig

type ServerConfig struct {
	CmdApiAddr  string `json:"cmd_api_addr"`
	HttpApiAddr string `json:"http_api_addr"`
}

Jump to

Keyboard shortcuts

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