Documentation ¶
Overview ¶
Package server implements a test server for the SideroLink.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NodePrefix netip.Prefix ServerAddress netip.Addr ServerEndpoint netip.AddrPort JoinToken string ServerPublicKey wgtypes.Key Logger *zap.Logger }
Config configures the server.
type Server ¶
type Server struct { pb.UnimplementedProvisionServiceServer // contains filtered or unexported fields }
Server implents gRPC API.
func (*Server) Provision ¶
func (srv *Server) Provision(_ context.Context, req *pb.ProvisionRequest) (*pb.ProvisionResponse, error)
Provision the SideroLink.
Click to show internal directories.
Click to hide internal directories.