client

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: 10 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 Client

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

func NewClient

func NewClient(cfg *Config) *Client

func (*Client) Run

func (self *Client) Run() error

type Config

type Config struct {
	ServerIp   string `ini:"server_ip"`
	ServerPort string `ini:"server_port"`
	AuthToken  string `ini:"auth_token"`
	LogFile    string `ini:"log_file"`
	Proxies    map[string]*proxy.Config
}

type Manager

type Manager struct {
	ClientId string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(clientId string, conn net.Conn, config *Config) *Manager

func (*Manager) Close

func (self *Manager) Close()

func (*Manager) Run

func (self *Manager) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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