Documentation ¶
Index ¶
- Variables
- func NewNetworkEndpoints() []*api.Endpoint
- func RegisterNetworkHandler(s server.Server, hdlr NetworkHandler, opts ...server.HandlerOption) error
- func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)
- type Close
- func (*Close) Descriptor() ([]byte, []int)
- func (m *Close) GetNode() *Node
- func (m *Close) Marshal() (dAtA []byte, err error)
- func (m *Close) MarshalTo(dAtA []byte) (int, error)
- func (m *Close) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Close) ProtoMessage()
- func (m *Close) Reset()
- func (m *Close) Size() (n int)
- func (m *Close) String() string
- func (m *Close) Unmarshal(dAtA []byte) error
- 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
- func (*Connect) Descriptor() ([]byte, []int)
- func (m *Connect) GetNode() *Node
- func (m *Connect) Marshal() (dAtA []byte, err error)
- func (m *Connect) MarshalTo(dAtA []byte) (int, error)
- func (m *Connect) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Connect) ProtoMessage()
- func (m *Connect) Reset()
- func (m *Connect) Size() (n int)
- func (m *Connect) String() string
- func (m *Connect) Unmarshal(dAtA []byte) error
- 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 ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)
- func (m *ConnectRequest) GetNodes() []*Node
- func (m *ConnectRequest) Marshal() (dAtA []byte, err error)
- func (m *ConnectRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ConnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConnectRequest) ProtoMessage()
- func (m *ConnectRequest) Reset()
- func (m *ConnectRequest) Size() (n int)
- func (m *ConnectRequest) String() string
- func (m *ConnectRequest) Unmarshal(dAtA []byte) error
- func (m *ConnectRequest) XXX_DiscardUnknown()
- func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectRequest) XXX_Merge(src proto.Message)
- func (m *ConnectRequest) XXX_Size() int
- func (m *ConnectRequest) XXX_Unmarshal(b []byte) error
- type ConnectResponse
- func (*ConnectResponse) Descriptor() ([]byte, []int)
- func (m *ConnectResponse) Marshal() (dAtA []byte, err error)
- func (m *ConnectResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ConnectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConnectResponse) ProtoMessage()
- func (m *ConnectResponse) Reset()
- func (m *ConnectResponse) Size() (n int)
- func (m *ConnectResponse) String() string
- func (m *ConnectResponse) Unmarshal(dAtA []byte) error
- func (m *ConnectResponse) XXX_DiscardUnknown()
- func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectResponse) XXX_Merge(src proto.Message)
- func (m *ConnectResponse) XXX_Size() int
- func (m *ConnectResponse) XXX_Unmarshal(b []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCount() uint32
- func (m *Error) GetMsg() string
- func (m *Error) Marshal() (dAtA []byte, err error)
- func (m *Error) MarshalTo(dAtA []byte) (int, error)
- func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) Size() (n int)
- func (m *Error) String() string
- func (m *Error) Unmarshal(dAtA []byte) error
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type GraphRequest
- func (*GraphRequest) Descriptor() ([]byte, []int)
- func (m *GraphRequest) GetDepth() uint32
- func (m *GraphRequest) Marshal() (dAtA []byte, err error)
- func (m *GraphRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GraphRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GraphRequest) ProtoMessage()
- func (m *GraphRequest) Reset()
- func (m *GraphRequest) Size() (n int)
- func (m *GraphRequest) String() string
- func (m *GraphRequest) Unmarshal(dAtA []byte) error
- func (m *GraphRequest) XXX_DiscardUnknown()
- func (m *GraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphRequest) XXX_Merge(src proto.Message)
- func (m *GraphRequest) XXX_Size() int
- func (m *GraphRequest) XXX_Unmarshal(b []byte) error
- type GraphResponse
- func (*GraphResponse) Descriptor() ([]byte, []int)
- func (m *GraphResponse) GetRoot() *Peer
- func (m *GraphResponse) Marshal() (dAtA []byte, err error)
- func (m *GraphResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GraphResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GraphResponse) ProtoMessage()
- func (m *GraphResponse) Reset()
- func (m *GraphResponse) Size() (n int)
- func (m *GraphResponse) String() string
- func (m *GraphResponse) Unmarshal(dAtA []byte) error
- func (m *GraphResponse) XXX_DiscardUnknown()
- func (m *GraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphResponse) XXX_Merge(src proto.Message)
- func (m *GraphResponse) XXX_Size() int
- func (m *GraphResponse) XXX_Unmarshal(b []byte) error
- type NetworkClient
- type NetworkHandler
- type NetworkServer
- type NetworkService
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAddress() string
- func (m *Node) GetId() string
- func (m *Node) GetMetadata() map[string]string
- func (m *Node) GetNetwork() string
- func (m *Node) GetStatus() *Status
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- 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
- type NodesRequest
- func (*NodesRequest) Descriptor() ([]byte, []int)
- func (m *NodesRequest) GetDepth() uint32
- func (m *NodesRequest) Marshal() (dAtA []byte, err error)
- func (m *NodesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *NodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodesRequest) ProtoMessage()
- func (m *NodesRequest) Reset()
- func (m *NodesRequest) Size() (n int)
- func (m *NodesRequest) String() string
- func (m *NodesRequest) Unmarshal(dAtA []byte) error
- func (m *NodesRequest) XXX_DiscardUnknown()
- func (m *NodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodesRequest) XXX_Merge(src proto.Message)
- func (m *NodesRequest) XXX_Size() int
- func (m *NodesRequest) XXX_Unmarshal(b []byte) error
- type NodesResponse
- func (*NodesResponse) Descriptor() ([]byte, []int)
- func (m *NodesResponse) GetNodes() []*Node
- func (m *NodesResponse) Marshal() (dAtA []byte, err error)
- func (m *NodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *NodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodesResponse) ProtoMessage()
- func (m *NodesResponse) Reset()
- func (m *NodesResponse) Size() (n int)
- func (m *NodesResponse) String() string
- func (m *NodesResponse) Unmarshal(dAtA []byte) error
- func (m *NodesResponse) XXX_DiscardUnknown()
- func (m *NodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodesResponse) XXX_Merge(src proto.Message)
- func (m *NodesResponse) XXX_Size() int
- func (m *NodesResponse) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetNode() *Node
- func (m *Peer) GetPeers() []*Peer
- func (m *Peer) Marshal() (dAtA []byte, err error)
- func (m *Peer) MarshalTo(dAtA []byte) (int, error)
- func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) Size() (n int)
- func (m *Peer) String() string
- func (m *Peer) Unmarshal(dAtA []byte) error
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetAddress() string
- func (m *Query) GetGateway() string
- func (m *Query) GetNetwork() string
- func (m *Query) GetRouter() string
- func (m *Query) GetService() string
- func (m *Query) Marshal() (dAtA []byte, err error)
- func (m *Query) MarshalTo(dAtA []byte) (int, error)
- func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) Size() (n int)
- func (m *Query) String() string
- func (m *Query) Unmarshal(dAtA []byte) error
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type RoutesRequest
- func (*RoutesRequest) Descriptor() ([]byte, []int)
- func (m *RoutesRequest) GetQuery() *Query
- func (m *RoutesRequest) Marshal() (dAtA []byte, err error)
- func (m *RoutesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoutesRequest) ProtoMessage()
- func (m *RoutesRequest) Reset()
- func (m *RoutesRequest) Size() (n int)
- func (m *RoutesRequest) String() string
- func (m *RoutesRequest) Unmarshal(dAtA []byte) error
- func (m *RoutesRequest) XXX_DiscardUnknown()
- func (m *RoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoutesRequest) XXX_Merge(src proto.Message)
- func (m *RoutesRequest) XXX_Size() int
- func (m *RoutesRequest) XXX_Unmarshal(b []byte) error
- type RoutesResponse
- func (*RoutesResponse) Descriptor() ([]byte, []int)
- func (m *RoutesResponse) GetRoutes() []*router.Route
- func (m *RoutesResponse) Marshal() (dAtA []byte, err error)
- func (m *RoutesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RoutesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoutesResponse) ProtoMessage()
- func (m *RoutesResponse) Reset()
- func (m *RoutesResponse) Size() (n int)
- func (m *RoutesResponse) String() string
- func (m *RoutesResponse) Unmarshal(dAtA []byte) error
- func (m *RoutesResponse) XXX_DiscardUnknown()
- func (m *RoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoutesResponse) XXX_Merge(src proto.Message)
- func (m *RoutesResponse) XXX_Size() int
- func (m *RoutesResponse) XXX_Unmarshal(b []byte) error
- type ServicesRequest
- func (*ServicesRequest) Descriptor() ([]byte, []int)
- func (m *ServicesRequest) Marshal() (dAtA []byte, err error)
- func (m *ServicesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ServicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ServicesRequest) ProtoMessage()
- func (m *ServicesRequest) Reset()
- func (m *ServicesRequest) Size() (n int)
- func (m *ServicesRequest) String() string
- func (m *ServicesRequest) Unmarshal(dAtA []byte) error
- func (m *ServicesRequest) XXX_DiscardUnknown()
- func (m *ServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServicesRequest) XXX_Merge(src proto.Message)
- func (m *ServicesRequest) XXX_Size() int
- func (m *ServicesRequest) XXX_Unmarshal(b []byte) error
- type ServicesResponse
- func (*ServicesResponse) Descriptor() ([]byte, []int)
- func (m *ServicesResponse) GetServices() []string
- func (m *ServicesResponse) Marshal() (dAtA []byte, err error)
- func (m *ServicesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ServicesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ServicesResponse) ProtoMessage()
- func (m *ServicesResponse) Reset()
- func (m *ServicesResponse) Size() (n int)
- func (m *ServicesResponse) String() string
- func (m *ServicesResponse) Unmarshal(dAtA []byte) error
- func (m *ServicesResponse) XXX_DiscardUnknown()
- func (m *ServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ServicesResponse) XXX_Merge(src proto.Message)
- func (m *ServicesResponse) XXX_Size() int
- func (m *ServicesResponse) XXX_Unmarshal(b []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetError() *Error
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (m *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type StatusRequest
- func (*StatusRequest) Descriptor() ([]byte, []int)
- func (m *StatusRequest) Marshal() (dAtA []byte, err error)
- func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatusRequest) ProtoMessage()
- func (m *StatusRequest) Reset()
- func (m *StatusRequest) Size() (n int)
- func (m *StatusRequest) String() string
- func (m *StatusRequest) Unmarshal(dAtA []byte) error
- func (m *StatusRequest) XXX_DiscardUnknown()
- func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusRequest) XXX_Merge(src proto.Message)
- func (m *StatusRequest) XXX_Size() int
- func (m *StatusRequest) XXX_Unmarshal(b []byte) error
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)
- func (m *StatusResponse) GetStatus() *Status
- func (m *StatusResponse) Marshal() (dAtA []byte, err error)
- func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StatusResponse) ProtoMessage()
- func (m *StatusResponse) Reset()
- func (m *StatusResponse) Size() (n int)
- func (m *StatusResponse) String() string
- func (m *StatusResponse) Unmarshal(dAtA []byte) error
- func (m *StatusResponse) XXX_DiscardUnknown()
- func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusResponse) XXX_Merge(src proto.Message)
- func (m *StatusResponse) XXX_Size() int
- func (m *StatusResponse) XXX_Unmarshal(b []byte) error
- type Sync
- func (*Sync) Descriptor() ([]byte, []int)
- func (m *Sync) GetPeer() *Peer
- func (m *Sync) GetRoutes() []*router.Route
- func (m *Sync) Marshal() (dAtA []byte, err error)
- func (m *Sync) MarshalTo(dAtA []byte) (int, error)
- func (m *Sync) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sync) ProtoMessage()
- func (m *Sync) Reset()
- func (m *Sync) Size() (n int)
- func (m *Sync) String() string
- func (m *Sync) Unmarshal(dAtA []byte) error
- func (m *Sync) XXX_DiscardUnknown()
- func (m *Sync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sync) XXX_Merge(src proto.Message)
- func (m *Sync) XXX_Size() int
- func (m *Sync) XXX_Unmarshal(b []byte) error
- type UnimplementedNetworkServer
- func (*UnimplementedNetworkServer) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error)
- func (*UnimplementedNetworkServer) Graph(ctx context.Context, req *GraphRequest) (*GraphResponse, error)
- func (*UnimplementedNetworkServer) Nodes(ctx context.Context, req *NodesRequest) (*NodesResponse, error)
- func (*UnimplementedNetworkServer) Routes(ctx context.Context, req *RoutesRequest) (*RoutesResponse, error)
- func (*UnimplementedNetworkServer) Services(ctx context.Context, req *ServicesRequest) (*ServicesResponse, error)
- func (*UnimplementedNetworkServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewNetworkEndpoints ¶
Api Endpoints for Network service
func RegisterNetworkHandler ¶
func RegisterNetworkHandler(s server.Server, hdlr NetworkHandler, opts ...server.HandlerOption) error
func RegisterNetworkServer ¶
func RegisterNetworkServer(s *grpc.Server, srv NetworkServer)
Types ¶
type Close ¶
type Close struct { // network node Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` }
Close is sent when the node disconnects from the network
func (*Close) Descriptor ¶
func (*Close) ProtoMessage ¶
func (*Close) ProtoMessage()
func (*Close) XXX_DiscardUnknown ¶
func (m *Close) XXX_DiscardUnknown()
func (*Close) XXX_Marshal ¶
func (*Close) XXX_Unmarshal ¶
type Connect ¶
type Connect struct { // network mode Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` }
Connect is sent when the node connects to the network
func (*Connect) Descriptor ¶
func (*Connect) MarshalToSizedBuffer ¶
func (*Connect) ProtoMessage ¶
func (*Connect) ProtoMessage()
func (*Connect) XXX_DiscardUnknown ¶
func (m *Connect) XXX_DiscardUnknown()
func (*Connect) XXX_Marshal ¶
func (*Connect) XXX_Unmarshal ¶
type ConnectRequest ¶
type ConnectRequest struct {
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
}
func (*ConnectRequest) Descriptor ¶
func (*ConnectRequest) Descriptor() ([]byte, []int)
func (*ConnectRequest) GetNodes ¶
func (m *ConnectRequest) GetNodes() []*Node
func (*ConnectRequest) Marshal ¶
func (m *ConnectRequest) Marshal() (dAtA []byte, err error)
func (*ConnectRequest) MarshalToSizedBuffer ¶
func (m *ConnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) Reset ¶
func (m *ConnectRequest) Reset()
func (*ConnectRequest) Size ¶
func (m *ConnectRequest) Size() (n int)
func (*ConnectRequest) String ¶
func (m *ConnectRequest) String() string
func (*ConnectRequest) Unmarshal ¶
func (m *ConnectRequest) Unmarshal(dAtA []byte) error
func (*ConnectRequest) XXX_DiscardUnknown ¶
func (m *ConnectRequest) XXX_DiscardUnknown()
func (*ConnectRequest) XXX_Marshal ¶
func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectRequest) XXX_Merge ¶
func (m *ConnectRequest) XXX_Merge(src proto.Message)
func (*ConnectRequest) XXX_Size ¶
func (m *ConnectRequest) XXX_Size() int
func (*ConnectRequest) XXX_Unmarshal ¶
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error
type ConnectResponse ¶
type ConnectResponse struct { }
func (*ConnectResponse) Descriptor ¶
func (*ConnectResponse) Descriptor() ([]byte, []int)
func (*ConnectResponse) Marshal ¶
func (m *ConnectResponse) Marshal() (dAtA []byte, err error)
func (*ConnectResponse) MarshalToSizedBuffer ¶
func (m *ConnectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) Reset ¶
func (m *ConnectResponse) Reset()
func (*ConnectResponse) Size ¶
func (m *ConnectResponse) Size() (n int)
func (*ConnectResponse) String ¶
func (m *ConnectResponse) String() string
func (*ConnectResponse) Unmarshal ¶
func (m *ConnectResponse) Unmarshal(dAtA []byte) error
func (*ConnectResponse) XXX_DiscardUnknown ¶
func (m *ConnectResponse) XXX_DiscardUnknown()
func (*ConnectResponse) XXX_Marshal ¶
func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectResponse) XXX_Merge ¶
func (m *ConnectResponse) XXX_Merge(src proto.Message)
func (*ConnectResponse) XXX_Size ¶
func (m *ConnectResponse) XXX_Size() int
func (*ConnectResponse) XXX_Unmarshal ¶
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error
type Error ¶
type Error struct { Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
Error tracks network errors
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type GraphRequest ¶
type GraphRequest struct { // node topology depth Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"` }
func (*GraphRequest) Descriptor ¶
func (*GraphRequest) Descriptor() ([]byte, []int)
func (*GraphRequest) GetDepth ¶
func (m *GraphRequest) GetDepth() uint32
func (*GraphRequest) Marshal ¶
func (m *GraphRequest) Marshal() (dAtA []byte, err error)
func (*GraphRequest) MarshalToSizedBuffer ¶
func (m *GraphRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GraphRequest) ProtoMessage ¶
func (*GraphRequest) ProtoMessage()
func (*GraphRequest) Reset ¶
func (m *GraphRequest) Reset()
func (*GraphRequest) Size ¶
func (m *GraphRequest) Size() (n int)
func (*GraphRequest) String ¶
func (m *GraphRequest) String() string
func (*GraphRequest) Unmarshal ¶
func (m *GraphRequest) Unmarshal(dAtA []byte) error
func (*GraphRequest) XXX_DiscardUnknown ¶
func (m *GraphRequest) XXX_DiscardUnknown()
func (*GraphRequest) XXX_Marshal ¶
func (m *GraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphRequest) XXX_Merge ¶
func (m *GraphRequest) XXX_Merge(src proto.Message)
func (*GraphRequest) XXX_Size ¶
func (m *GraphRequest) XXX_Size() int
func (*GraphRequest) XXX_Unmarshal ¶
func (m *GraphRequest) XXX_Unmarshal(b []byte) error
type GraphResponse ¶
type GraphResponse struct {
Root *Peer `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
}
func (*GraphResponse) Descriptor ¶
func (*GraphResponse) Descriptor() ([]byte, []int)
func (*GraphResponse) GetRoot ¶
func (m *GraphResponse) GetRoot() *Peer
func (*GraphResponse) Marshal ¶
func (m *GraphResponse) Marshal() (dAtA []byte, err error)
func (*GraphResponse) MarshalToSizedBuffer ¶
func (m *GraphResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GraphResponse) ProtoMessage ¶
func (*GraphResponse) ProtoMessage()
func (*GraphResponse) Reset ¶
func (m *GraphResponse) Reset()
func (*GraphResponse) Size ¶
func (m *GraphResponse) Size() (n int)
func (*GraphResponse) String ¶
func (m *GraphResponse) String() string
func (*GraphResponse) Unmarshal ¶
func (m *GraphResponse) Unmarshal(dAtA []byte) error
func (*GraphResponse) XXX_DiscardUnknown ¶
func (m *GraphResponse) XXX_DiscardUnknown()
func (*GraphResponse) XXX_Marshal ¶
func (m *GraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphResponse) XXX_Merge ¶
func (m *GraphResponse) XXX_Merge(src proto.Message)
func (*GraphResponse) XXX_Size ¶
func (m *GraphResponse) XXX_Size() int
func (*GraphResponse) XXX_Unmarshal ¶
func (m *GraphResponse) XXX_Unmarshal(b []byte) error
type NetworkClient ¶
type NetworkClient interface { // Connect to the network Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error) // Returns the entire network graph Graph(ctx context.Context, in *GraphRequest, opts ...grpc.CallOption) (*GraphResponse, error) // Returns a list of known nodes in the network Nodes(ctx context.Context, in *NodesRequest, opts ...grpc.CallOption) (*NodesResponse, error) // Returns a list of known routes in the network Routes(ctx context.Context, in *RoutesRequest, opts ...grpc.CallOption) (*RoutesResponse, error) // Returns a list of known services based on routes Services(ctx context.Context, in *ServicesRequest, opts ...grpc.CallOption) (*ServicesResponse, error) // Status returns network status Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) }
NetworkClient is the client API for Network service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkClient ¶
func NewNetworkClient(cc *grpc.ClientConn) NetworkClient
type NetworkHandler ¶
type NetworkHandler interface { // Connect to the network Connect(context.Context, *ConnectRequest, *ConnectResponse) error // Returns the entire network graph Graph(context.Context, *GraphRequest, *GraphResponse) error // Returns a list of known nodes in the network Nodes(context.Context, *NodesRequest, *NodesResponse) error // Returns a list of known routes in the network Routes(context.Context, *RoutesRequest, *RoutesResponse) error // Returns a list of known services based on routes Services(context.Context, *ServicesRequest, *ServicesResponse) error // Status returns network status Status(context.Context, *StatusRequest, *StatusResponse) error }
Server API for Network service
type NetworkServer ¶
type NetworkServer interface { // Connect to the network Connect(context.Context, *ConnectRequest) (*ConnectResponse, error) // Returns the entire network graph Graph(context.Context, *GraphRequest) (*GraphResponse, error) // Returns a list of known nodes in the network Nodes(context.Context, *NodesRequest) (*NodesResponse, error) // Returns a list of known routes in the network Routes(context.Context, *RoutesRequest) (*RoutesResponse, error) // Returns a list of known services based on routes Services(context.Context, *ServicesRequest) (*ServicesResponse, error) // Status returns network status Status(context.Context, *StatusRequest) (*StatusResponse, error) }
NetworkServer is the server API for Network service.
type NetworkService ¶
type NetworkService interface { // Connect to the network Connect(ctx context.Context, in *ConnectRequest, opts ...client.CallOption) (*ConnectResponse, error) // Returns the entire network graph Graph(ctx context.Context, in *GraphRequest, opts ...client.CallOption) (*GraphResponse, error) // Returns a list of known nodes in the network Nodes(ctx context.Context, in *NodesRequest, opts ...client.CallOption) (*NodesResponse, error) // Returns a list of known routes in the network Routes(ctx context.Context, in *RoutesRequest, opts ...client.CallOption) (*RoutesResponse, error) // Returns a list of known services based on routes Services(ctx context.Context, in *ServicesRequest, opts ...client.CallOption) (*ServicesResponse, error) // Status returns network status Status(ctx context.Context, in *StatusRequest, opts ...client.CallOption) (*StatusResponse, error) }
Client API for Network service
func NewNetworkService ¶
func NewNetworkService(name string, c client.Client) NetworkService
type Node ¶
type Node struct { // node id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // node address Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // the network Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"` // associated metadata Metadata map[string]string `` /* 157-byte string literal not displayed */ // node status Status *Status `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` }
Node is network node
func (*Node) Descriptor ¶
func (*Node) GetAddress ¶
func (*Node) GetMetadata ¶
func (*Node) GetNetwork ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type NodesRequest ¶
type NodesRequest struct { // node topology depth Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"` }
PeerRequest requests list of peers
func (*NodesRequest) Descriptor ¶
func (*NodesRequest) Descriptor() ([]byte, []int)
func (*NodesRequest) GetDepth ¶
func (m *NodesRequest) GetDepth() uint32
func (*NodesRequest) Marshal ¶
func (m *NodesRequest) Marshal() (dAtA []byte, err error)
func (*NodesRequest) MarshalToSizedBuffer ¶
func (m *NodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NodesRequest) ProtoMessage ¶
func (*NodesRequest) ProtoMessage()
func (*NodesRequest) Reset ¶
func (m *NodesRequest) Reset()
func (*NodesRequest) Size ¶
func (m *NodesRequest) Size() (n int)
func (*NodesRequest) String ¶
func (m *NodesRequest) String() string
func (*NodesRequest) Unmarshal ¶
func (m *NodesRequest) Unmarshal(dAtA []byte) error
func (*NodesRequest) XXX_DiscardUnknown ¶
func (m *NodesRequest) XXX_DiscardUnknown()
func (*NodesRequest) XXX_Marshal ¶
func (m *NodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodesRequest) XXX_Merge ¶
func (m *NodesRequest) XXX_Merge(src proto.Message)
func (*NodesRequest) XXX_Size ¶
func (m *NodesRequest) XXX_Size() int
func (*NodesRequest) XXX_Unmarshal ¶
func (m *NodesRequest) XXX_Unmarshal(b []byte) error
type NodesResponse ¶
type NodesResponse struct { // return peer topology Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` }
PeerResponse is returned by ListPeers
func (*NodesResponse) Descriptor ¶
func (*NodesResponse) Descriptor() ([]byte, []int)
func (*NodesResponse) GetNodes ¶
func (m *NodesResponse) GetNodes() []*Node
func (*NodesResponse) Marshal ¶
func (m *NodesResponse) Marshal() (dAtA []byte, err error)
func (*NodesResponse) MarshalToSizedBuffer ¶
func (m *NodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NodesResponse) ProtoMessage ¶
func (*NodesResponse) ProtoMessage()
func (*NodesResponse) Reset ¶
func (m *NodesResponse) Reset()
func (*NodesResponse) Size ¶
func (m *NodesResponse) Size() (n int)
func (*NodesResponse) String ¶
func (m *NodesResponse) String() string
func (*NodesResponse) Unmarshal ¶
func (m *NodesResponse) Unmarshal(dAtA []byte) error
func (*NodesResponse) XXX_DiscardUnknown ¶
func (m *NodesResponse) XXX_DiscardUnknown()
func (*NodesResponse) XXX_Marshal ¶
func (m *NodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodesResponse) XXX_Merge ¶
func (m *NodesResponse) XXX_Merge(src proto.Message)
func (*NodesResponse) XXX_Size ¶
func (m *NodesResponse) XXX_Size() int
func (*NodesResponse) XXX_Unmarshal ¶
func (m *NodesResponse) XXX_Unmarshal(b []byte) error
type Peer ¶
type Peer struct { // network node Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // node peers Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` }
Peer is used to advertise node peers
func (*Peer) Descriptor ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Query ¶
type Query struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"` Router string `protobuf:"bytes,4,opt,name=router,proto3" json:"router,omitempty"` Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"` }
Query is passed in a LookupRequest
func (*Query) Descriptor ¶
func (*Query) GetAddress ¶
func (*Query) GetGateway ¶
func (*Query) GetNetwork ¶
func (*Query) GetService ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
type RoutesRequest ¶
type RoutesRequest struct { // filter based on Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` }
func (*RoutesRequest) Descriptor ¶
func (*RoutesRequest) Descriptor() ([]byte, []int)
func (*RoutesRequest) GetQuery ¶
func (m *RoutesRequest) GetQuery() *Query
func (*RoutesRequest) Marshal ¶
func (m *RoutesRequest) Marshal() (dAtA []byte, err error)
func (*RoutesRequest) MarshalToSizedBuffer ¶
func (m *RoutesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoutesRequest) ProtoMessage ¶
func (*RoutesRequest) ProtoMessage()
func (*RoutesRequest) Reset ¶
func (m *RoutesRequest) Reset()
func (*RoutesRequest) Size ¶
func (m *RoutesRequest) Size() (n int)
func (*RoutesRequest) String ¶
func (m *RoutesRequest) String() string
func (*RoutesRequest) Unmarshal ¶
func (m *RoutesRequest) Unmarshal(dAtA []byte) error
func (*RoutesRequest) XXX_DiscardUnknown ¶
func (m *RoutesRequest) XXX_DiscardUnknown()
func (*RoutesRequest) XXX_Marshal ¶
func (m *RoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoutesRequest) XXX_Merge ¶
func (m *RoutesRequest) XXX_Merge(src proto.Message)
func (*RoutesRequest) XXX_Size ¶
func (m *RoutesRequest) XXX_Size() int
func (*RoutesRequest) XXX_Unmarshal ¶
func (m *RoutesRequest) XXX_Unmarshal(b []byte) error
type RoutesResponse ¶
type RoutesResponse struct {
Routes []*router.Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
}
func (*RoutesResponse) Descriptor ¶
func (*RoutesResponse) Descriptor() ([]byte, []int)
func (*RoutesResponse) GetRoutes ¶
func (m *RoutesResponse) GetRoutes() []*router.Route
func (*RoutesResponse) Marshal ¶
func (m *RoutesResponse) Marshal() (dAtA []byte, err error)
func (*RoutesResponse) MarshalToSizedBuffer ¶
func (m *RoutesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoutesResponse) ProtoMessage ¶
func (*RoutesResponse) ProtoMessage()
func (*RoutesResponse) Reset ¶
func (m *RoutesResponse) Reset()
func (*RoutesResponse) Size ¶
func (m *RoutesResponse) Size() (n int)
func (*RoutesResponse) String ¶
func (m *RoutesResponse) String() string
func (*RoutesResponse) Unmarshal ¶
func (m *RoutesResponse) Unmarshal(dAtA []byte) error
func (*RoutesResponse) XXX_DiscardUnknown ¶
func (m *RoutesResponse) XXX_DiscardUnknown()
func (*RoutesResponse) XXX_Marshal ¶
func (m *RoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoutesResponse) XXX_Merge ¶
func (m *RoutesResponse) XXX_Merge(src proto.Message)
func (*RoutesResponse) XXX_Size ¶
func (m *RoutesResponse) XXX_Size() int
func (*RoutesResponse) XXX_Unmarshal ¶
func (m *RoutesResponse) XXX_Unmarshal(b []byte) error
type ServicesRequest ¶
type ServicesRequest struct { }
func (*ServicesRequest) Descriptor ¶
func (*ServicesRequest) Descriptor() ([]byte, []int)
func (*ServicesRequest) Marshal ¶
func (m *ServicesRequest) Marshal() (dAtA []byte, err error)
func (*ServicesRequest) MarshalToSizedBuffer ¶
func (m *ServicesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServicesRequest) ProtoMessage ¶
func (*ServicesRequest) ProtoMessage()
func (*ServicesRequest) Reset ¶
func (m *ServicesRequest) Reset()
func (*ServicesRequest) Size ¶
func (m *ServicesRequest) Size() (n int)
func (*ServicesRequest) String ¶
func (m *ServicesRequest) String() string
func (*ServicesRequest) Unmarshal ¶
func (m *ServicesRequest) Unmarshal(dAtA []byte) error
func (*ServicesRequest) XXX_DiscardUnknown ¶
func (m *ServicesRequest) XXX_DiscardUnknown()
func (*ServicesRequest) XXX_Marshal ¶
func (m *ServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesRequest) XXX_Merge ¶
func (m *ServicesRequest) XXX_Merge(src proto.Message)
func (*ServicesRequest) XXX_Size ¶
func (m *ServicesRequest) XXX_Size() int
func (*ServicesRequest) XXX_Unmarshal ¶
func (m *ServicesRequest) XXX_Unmarshal(b []byte) error
type ServicesResponse ¶
type ServicesResponse struct {
Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
}
func (*ServicesResponse) Descriptor ¶
func (*ServicesResponse) Descriptor() ([]byte, []int)
func (*ServicesResponse) GetServices ¶
func (m *ServicesResponse) GetServices() []string
func (*ServicesResponse) Marshal ¶
func (m *ServicesResponse) Marshal() (dAtA []byte, err error)
func (*ServicesResponse) MarshalToSizedBuffer ¶
func (m *ServicesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ServicesResponse) ProtoMessage ¶
func (*ServicesResponse) ProtoMessage()
func (*ServicesResponse) Reset ¶
func (m *ServicesResponse) Reset()
func (*ServicesResponse) Size ¶
func (m *ServicesResponse) Size() (n int)
func (*ServicesResponse) String ¶
func (m *ServicesResponse) String() string
func (*ServicesResponse) Unmarshal ¶
func (m *ServicesResponse) Unmarshal(dAtA []byte) error
func (*ServicesResponse) XXX_DiscardUnknown ¶
func (m *ServicesResponse) XXX_DiscardUnknown()
func (*ServicesResponse) XXX_Marshal ¶
func (m *ServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServicesResponse) XXX_Merge ¶
func (m *ServicesResponse) XXX_Merge(src proto.Message)
func (*ServicesResponse) XXX_Size ¶
func (m *ServicesResponse) XXX_Size() int
func (*ServicesResponse) XXX_Unmarshal ¶
func (m *ServicesResponse) XXX_Unmarshal(b []byte) error
type Status ¶
type Status struct {
Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
}
Status is node status
func (*Status) Descriptor ¶
func (*Status) MarshalToSizedBuffer ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type StatusRequest ¶
type StatusRequest struct { }
func (*StatusRequest) Descriptor ¶
func (*StatusRequest) Descriptor() ([]byte, []int)
func (*StatusRequest) Marshal ¶
func (m *StatusRequest) Marshal() (dAtA []byte, err error)
func (*StatusRequest) MarshalToSizedBuffer ¶
func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) Reset ¶
func (m *StatusRequest) Reset()
func (*StatusRequest) Size ¶
func (m *StatusRequest) Size() (n int)
func (*StatusRequest) String ¶
func (m *StatusRequest) String() string
func (*StatusRequest) Unmarshal ¶
func (m *StatusRequest) Unmarshal(dAtA []byte) error
func (*StatusRequest) XXX_DiscardUnknown ¶
func (m *StatusRequest) XXX_DiscardUnknown()
func (*StatusRequest) XXX_Marshal ¶
func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusRequest) XXX_Merge ¶
func (m *StatusRequest) XXX_Merge(src proto.Message)
func (*StatusRequest) XXX_Size ¶
func (m *StatusRequest) XXX_Size() int
func (*StatusRequest) XXX_Unmarshal ¶
func (m *StatusRequest) XXX_Unmarshal(b []byte) error
type StatusResponse ¶
type StatusResponse struct {
Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (*StatusResponse) Descriptor ¶
func (*StatusResponse) Descriptor() ([]byte, []int)
func (*StatusResponse) GetStatus ¶
func (m *StatusResponse) GetStatus() *Status
func (*StatusResponse) Marshal ¶
func (m *StatusResponse) Marshal() (dAtA []byte, err error)
func (*StatusResponse) MarshalToSizedBuffer ¶
func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) Reset ¶
func (m *StatusResponse) Reset()
func (*StatusResponse) Size ¶
func (m *StatusResponse) Size() (n int)
func (*StatusResponse) String ¶
func (m *StatusResponse) String() string
func (*StatusResponse) Unmarshal ¶
func (m *StatusResponse) Unmarshal(dAtA []byte) error
func (*StatusResponse) XXX_DiscardUnknown ¶
func (m *StatusResponse) XXX_DiscardUnknown()
func (*StatusResponse) XXX_Marshal ¶
func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusResponse) XXX_Merge ¶
func (m *StatusResponse) XXX_Merge(src proto.Message)
func (*StatusResponse) XXX_Size ¶
func (m *StatusResponse) XXX_Size() int
func (*StatusResponse) XXX_Unmarshal ¶
func (m *StatusResponse) XXX_Unmarshal(b []byte) error
type Sync ¶
type Sync struct { // peer origin Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` // node routes Routes []*router.Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` }
Sync is network sync message
func (*Sync) Descriptor ¶
func (*Sync) ProtoMessage ¶
func (*Sync) ProtoMessage()
func (*Sync) XXX_DiscardUnknown ¶
func (m *Sync) XXX_DiscardUnknown()
func (*Sync) XXX_Unmarshal ¶
type UnimplementedNetworkServer ¶
type UnimplementedNetworkServer struct { }
UnimplementedNetworkServer can be embedded to have forward compatible implementations.
func (*UnimplementedNetworkServer) Connect ¶
func (*UnimplementedNetworkServer) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error)
func (*UnimplementedNetworkServer) Graph ¶
func (*UnimplementedNetworkServer) Graph(ctx context.Context, req *GraphRequest) (*GraphResponse, error)
func (*UnimplementedNetworkServer) Nodes ¶
func (*UnimplementedNetworkServer) Nodes(ctx context.Context, req *NodesRequest) (*NodesResponse, error)
func (*UnimplementedNetworkServer) Routes ¶
func (*UnimplementedNetworkServer) Routes(ctx context.Context, req *RoutesRequest) (*RoutesResponse, error)
func (*UnimplementedNetworkServer) Services ¶
func (*UnimplementedNetworkServer) Services(ctx context.Context, req *ServicesRequest) (*ServicesResponse, error)
func (*UnimplementedNetworkServer) Status ¶
func (*UnimplementedNetworkServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error)