Documentation
¶
Overview ¶
Package api provides REST API endpoints for the node service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides REST API for managing the node.
func NewServer ¶
func NewServer(port int, xrayManager *xray.Manager, telemtManager *telemt.Manager, amneziawgManager *amneziawg.Manager) *Server
NewServer creates a new API server instance. Call SetPairing before Start (pairing-only).
func (*Server) SetMTLSClientCA ¶
SetMTLSClientCA sets the PEM file with CA certificate(s) used to verify client certificates (panel). Requires SetTLS; connections without a valid client cert are rejected before handlers run.
func (*Server) SetPairing ¶
SetPairing configures JWT verification from SECRET_KEY.
Click to show internal directories.
Click to hide internal directories.