Versions in this module Expand all Collapse all v1 v1.9.1 Sep 5, 2019 Changes in this version + func RegisterNetworkHandler(s server.Server, hdlr NetworkHandler, opts ...server.HandlerOption) error + type Close struct + Node *Node + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Close) Descriptor() ([]byte, []int) + func (*Close) ProtoMessage() + func (m *Close) GetNode() *Node + func (m *Close) Reset() + func (m *Close) String() string + func (m *Close) XXX_DiscardUnknown() + func (m *Close) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Close) XXX_Merge(src proto.Message) + func (m *Close) XXX_Size() int + func (m *Close) XXX_Unmarshal(b []byte) error + type Connect struct + Node *Node + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Connect) Descriptor() ([]byte, []int) + func (*Connect) ProtoMessage() + func (m *Connect) GetNode() *Node + func (m *Connect) Reset() + func (m *Connect) String() string + func (m *Connect) XXX_DiscardUnknown() + func (m *Connect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Connect) XXX_Merge(src proto.Message) + func (m *Connect) XXX_Size() int + func (m *Connect) XXX_Unmarshal(b []byte) error + type ListRequest struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (m *ListRequest) Reset() + func (m *ListRequest) String() string + func (m *ListRequest) XXX_DiscardUnknown() + func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListRequest) XXX_Merge(src proto.Message) + func (m *ListRequest) XXX_Size() int + func (m *ListRequest) XXX_Unmarshal(b []byte) error + type ListResponse struct + Nodes []*Node + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (m *ListResponse) GetNodes() []*Node + func (m *ListResponse) Reset() + func (m *ListResponse) String() string + func (m *ListResponse) XXX_DiscardUnknown() + func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListResponse) XXX_Merge(src proto.Message) + func (m *ListResponse) XXX_Size() int + func (m *ListResponse) XXX_Unmarshal(b []byte) error + type Neighbour struct + Neighbours []*Node + Node *Node + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Neighbour) Descriptor() ([]byte, []int) + func (*Neighbour) ProtoMessage() + func (m *Neighbour) GetNeighbours() []*Node + func (m *Neighbour) GetNode() *Node + func (m *Neighbour) Reset() + func (m *Neighbour) String() string + func (m *Neighbour) XXX_DiscardUnknown() + func (m *Neighbour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Neighbour) XXX_Merge(src proto.Message) + func (m *Neighbour) XXX_Size() int + func (m *Neighbour) XXX_Unmarshal(b []byte) error + type NetworkHandler interface + ListNeighbours func(context.Context, *ListRequest, *ListResponse) error + ListNodes func(context.Context, *ListRequest, *ListResponse) error + ListRoutes func(context.Context, *proto1.Request, *proto1.ListResponse) error + type NetworkService interface + ListNeighbours func(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) + ListNodes func(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) + ListRoutes func(ctx context.Context, in *proto1.Request, opts ...client.CallOption) (*proto1.ListResponse, error) + func NewNetworkService(name string, c client.Client) NetworkService + type Node struct + Address string + Id string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Node) Descriptor() ([]byte, []int) + func (*Node) ProtoMessage() + func (m *Node) GetAddress() string + func (m *Node) GetId() string + func (m *Node) Reset() + func (m *Node) String() string + func (m *Node) XXX_DiscardUnknown() + func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Node) XXX_Merge(src proto.Message) + func (m *Node) XXX_Size() int + func (m *Node) XXX_Unmarshal(b []byte) error