Documentation
¶
Overview ¶
Package serverv1 implements NeXT-Panel Server API V1 (/api/server/v1).
Index ¶
- Variables
- type Client
- func (c *Client) FetchDetectRules(ctx context.Context) ([]adapter.DetectRule, error)
- func (c *Client) FetchNodeConfig(ctx context.Context) (*adapter.NodeConfig, error)
- func (c *Client) FetchUsers(ctx context.Context) ([]adapter.User, error)
- func (c *Client) Heartbeat(ctx context.Context, onlineUsers int) error
- func (c *Client) ReportDetectLogs(ctx context.Context, items []adapter.DetectLog) error
- func (c *Client) ReportOnline(ctx context.Context, items []adapter.UserOnline) error
- func (c *Client) ReportTraffic(ctx context.Context, items []adapter.UserTraffic) error
- type Error
- type Number
Constants ¶
This section is empty.
Variables ¶
ErrNodeUnavailable is wrapped by FetchUsers when the panel refuses to serve users to this node at all, and the node must stop accepting them.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchDetectRules ¶
func (*Client) FetchNodeConfig ¶
func (*Client) FetchUsers ¶
func (*Client) ReportDetectLogs ¶
func (*Client) ReportOnline ¶
func (*Client) ReportTraffic ¶
Click to show internal directories.
Click to hide internal directories.