echoServer

package
v0.0.0-...-97ce03a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisablePortMap = map[int]struct{}{
	1:    {},
	7:    {},
	9:    {},
	11:   {},
	13:   {},
	15:   {},
	17:   {},
	19:   {},
	20:   {},
	21:   {},
	22:   {},
	23:   {},
	25:   {},
	37:   {},
	42:   {},
	43:   {},
	53:   {},
	77:   {},
	79:   {},
	80:   {},
	87:   {},
	95:   {},
	101:  {},
	102:  {},
	103:  {},
	104:  {},
	109:  {},
	110:  {},
	111:  {},
	113:  {},
	115:  {},
	117:  {},
	119:  {},
	123:  {},
	135:  {},
	139:  {},
	143:  {},
	179:  {},
	389:  {},
	465:  {},
	512:  {},
	513:  {},
	514:  {},
	515:  {},
	526:  {},
	530:  {},
	531:  {},
	532:  {},
	540:  {},
	556:  {},
	563:  {},
	587:  {},
	601:  {},
	636:  {},
	993:  {},
	995:  {},
	2049: {},
	3659: {},
	4045: {},
	6000: {},
	6665: {},
	6666: {},
	6667: {},
	6668: {},
	6669: {},
	6697: {},
}

Functions

func Init

func Init() error

http_port http_static_rel_folder

Types

type EchoServer

type EchoServer struct {
	*MesonTerminalEchoServer.HttpServer
	Http_port int
}

func GetSingleInstance

func GetSingleInstance() *EchoServer

func (*EchoServer) Restart

func (s *EchoServer) Restart() error

func (*EchoServer) RestartTls

func (s *EchoServer) RestartTls(certFile, keyFile interface{}) error

func (*EchoServer) Shutdown

func (s *EchoServer) Shutdown()

func (*EchoServer) Start

func (s *EchoServer) Start() error

func (*EchoServer) StartTLS

func (s *EchoServer) StartTLS(certFile, keyFile interface{}) error

func (*EchoServer) UseJsoniter

func (s *EchoServer) UseJsoniter()

use jsoniter

Jump to

Keyboard shortcuts

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