core

package
v0.0.0-...-1db1413 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

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