Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForeignInterface ¶
type ForeignPeer ¶
type ForeignServer ¶
type ForeignServer struct { ForeignInterface *ForeignInterface Name string Type string PublicKey string ListenPort int FirewallMark int Peers []*ForeignPeer }
type Service ¶
type Service interface { Close() error ForeignServers(ctx context.Context) (foreignServers []*ForeignServer, err error) ImportForeignServer(ctx context.Context, name string, userId string) (*server.Server, error) StartServer(ctx context.Context, serverId string) (*server.Server, error) StopServer(ctx context.Context, serverUd string) (*server.Server, error) ConfigureWireGuard(name string, privateKey string, listenPort *int, firewallMark *int, peers []*peer.Peer) error PeerStats(name string, peerPublicKey string) (*PeerStats, error) AddPeer(ctx context.Context, peerId string) error UpdatePeer(ctx context.Context, peerId string) error RemovePeer(ctx context.Context, peerId string) error }
Click to show internal directories.
Click to hide internal directories.