node

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInbound added in v1.1.8

func BuildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag string) (*core.InboundHandlerConfig, error)

BuildInbound build Inbound config for different protocol

Types

type Controller added in v1.1.8

type Controller struct {
	Tag string

	*conf.ControllerConfig
	// contains filtered or unexported fields
}

func NewController added in v1.1.8

func NewController(server *core.Core, api *panel.Client, config *conf.ControllerConfig) *Controller

NewController return a Node controller with default parameters.

func (*Controller) Close added in v1.1.8

func (c *Controller) Close() error

Close implement the Close() function of the service interface

func (*Controller) RenewCert added in v1.1.8

func (c *Controller) RenewCert()

func (*Controller) Start added in v1.1.8

func (c *Controller) Start() error

Start implement the Start() function of the service interface

type Node

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

func New

func New() *Node

func (*Node) Close

func (n *Node) Close()

func (*Node) Start

func (n *Node) Start(nodes []*conf.NodeConfig, core *core.Core) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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