core

package
v0.0.0-...-d00ae73 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_VERSION = "v2.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func GetApp

func GetApp() *App

func NewApp

func NewApp() *App

func (*App) ApiHost

func (a *App) ApiHost() string

func (*App) Cron

func (a *App) Cron() *cron.Cron

func (*App) GetAgent

func (a *App) GetAgent() *stackimpact.Agent

func (*App) GetObfsProtocolService

func (a *App) GetObfsProtocolService() ObfsProtocolService

func (*App) GetPublicIP

func (a *App) GetPublicIP() string

func (*App) Host

func (a *App) Host() string

func (*App) Init

func (a *App) Init() error

func (*App) Key

func (a *App) Key() string

func (*App) NodeId

func (a *App) NodeId() int

func (*App) NodeInfo

func (a *App) NodeInfo() *model.NodeInfo

func (*App) SetAgent

func (a *App) SetAgent(agent *stackimpact.Agent)

func (*App) SetApiHost

func (a *App) SetApiHost(apiHost string)

func (*App) SetCron

func (a *App) SetCron(cron *cron.Cron)

func (*App) SetHost

func (a *App) SetHost(host string)

func (*App) SetKey

func (a *App) SetKey(key string)

func (*App) SetNodeId

func (a *App) SetNodeId(nodeId int)

func (*App) SetNodeInfo

func (a *App) SetNodeInfo(nodeInfo *model.NodeInfo)

func (*App) SetObfsProtocolService

func (a *App) SetObfsProtocolService(obfsProtocolService ObfsProtocolService)

func (*App) SetPublicIP

func (a *App) SetPublicIP(publicIp string)

func (*App) SetUserInfos

func (a *App) SetUserInfos(userInfos []*model.UserInfo)

func (*App) UserInfos

func (a *App) UserInfos() []*model.UserInfo

type Closeable

type Closeable interface {
	Close() error
}

type HostFirewall

type HostFirewall interface {
	JudgeHostWithReport(ipOrDomain string, uid int) bool
}

type ObfsProtocolService

type ObfsProtocolService interface {
	Update(userID []byte, clientID, connectionID int)
	SetMaxClient(maxClient int)
	Insert(userID []byte, clientID, connectionID int) bool
	Remove(userID string, clientID int)
	AuthData() []byte
}

type Reloadable

type Reloadable interface {
	Reload() error
}

type Runable

type Runable interface {
	Start() error
}

Jump to

Keyboard shortcuts

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