Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(gc grpc.ClientConnInterface) *Client
NewClient returns a client connected using gc, and privatKey for signing announcements
type Server ¶
type Server struct { internal.UnimplementedDiscoveryServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer(parser discovery.AddrParser) *Server
func (*Server) Announce ¶
func (s *Server) Announce(ctx context.Context, req *internal.AnnounceReq) (*internal.AnnounceRes, error)
Click to show internal directories.
Click to hide internal directories.