Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Device(ctx context.Context, name string) (*backend.Device, error) Up(ctx context.Context, options backend.ConfigureOptions) (*backend.Device, error) Down(ctx context.Context, name string) error Status(ctx context.Context, name string) (bool, error) Stats(ctx context.Context, name string) (*backend.InterfaceStats, error) PeerStats(ctx context.Context, name string, peerPublicKey string) (*backend.PeerStats, error) FindForeignServers(_ context.Context, knownInterfaces []string) ([]*backend.ForeignServer, error) Close(ctx context.Context) error }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.