server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MessageReadTimeout = time.Second * 5

Variables

View Source
var HeartBeatTimeout = time.Second * 60
View Source
var HeartbeatInterval = time.Second * 30

Functions

This section is empty.

Types

type Config

type Config struct {
	Ip        string `ini:"bind_ip"`
	Port      string `ini:"bind_port"`
	AuthToken string `ini:"auth_token"`
	LogFile   string `ini:"log_file"`
	LogLevel  string `ini:"log_level"`
}

type Manager

type Manager struct {
	ClientId string
	Meta     *message.AuthRequest
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ClientId string, conn net.Conn, msg *message.AuthRequest) *Manager

func (*Manager) Close

func (self *Manager) Close()

func (*Manager) DeregisterProxy

func (self *Manager) DeregisterProxy(name string)

func (*Manager) RegisterProxy

func (self *Manager) RegisterProxy(msg *message.ProxyRequest, conn net.Conn) (p proxy.Proxy, err error)

func (*Manager) Run

func (self *Manager) Run()

func (*Manager) String

func (self *Manager) String() string

type Server

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

func NewServer

func NewServer(cfg *Config) *Server

func (*Server) Run

func (self *Server) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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