Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePrivate ¶
func EncodePrivate(privKey *ecdsa.PrivateKey) (string, error)
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(core *vCore.XrayCore, api *panel.NodeClient, info *panel.NodeInfo) *Controller
NewController return a Node controller with default parameters.
func (*Controller) Close ¶
func (c *Controller) Close() error
func (*Controller) Prepare ¶ added in v1.1.13
func (c *Controller) Prepare() error
Prepare completes network requests and builds the inbound before stopping a running node. The cached certificate and user snapshot also support rollback.
func (*Controller) Start ¶
func (c *Controller) Start() error
func (*Controller) Stop ¶ added in v1.1.13
func (c *Controller) Stop() error
Stop releases listeners while retaining prepared configuration, users, limiters and pending traffic so Start can restore service without the panel.
type Lego ¶
type Lego struct {
// contains filtered or unexported fields
}
func (*Lego) CreateCert ¶
func (*Lego) SetProvider ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) FlushTraffic ¶ added in v1.1.13
FlushTraffic attempts final delivery after Stop has collected the last batch.
func (*Node) InheritTraffic ¶ added in v1.1.13
InheritTraffic keeps unacknowledged reports even if a protocol is removed.
type User ¶
type User struct {
Email string `json:"Email"`
Registration *registration.Resource `json:"Registration"`
KeyEncoded string `json:"Key"`
// contains filtered or unexported fields
}
func NewLegoUser ¶
NewLegoUser preserves the public helper used by callers that use the production ACME directory.
func (*User) DecodePrivate ¶
func (u *User) DecodePrivate(pemEncodedPriv string) (*ecdsa.PrivateKey, error)
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (u *User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.