Documentation ¶
Index ¶
- func RegisterRelayServer(s *grpc.Server, srv RelayServer)
- func Run()
- type DistributedHashTable
- type RelayClient
- type RelayServer
- type UnimplementedRelayServer
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetAddressFrom() string
- func (m *Version) GetBestHeight() uint64
- func (m *Version) GetVersion() int32
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRelayServer ¶
func RegisterRelayServer(s *grpc.Server, srv RelayServer)
Types ¶
type DistributedHashTable ¶
type RelayClient ¶
type RelayClient interface {
ExchangeVersion(ctx context.Context, in *Version, opts ...grpc.CallOption) (*Version, error)
}
RelayClient is the client API for relay service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRelayClient ¶
func NewRelayClient(cc grpc.ClientConnInterface) RelayClient
type RelayServer ¶
RelayServer is the server API for relay service.
type UnimplementedRelayServer ¶
type UnimplementedRelayServer struct { }
UnimplementedRelayServer can be embedded to have forward compatible implementations.
func (*UnimplementedRelayServer) ExchangeVersion ¶
type Version ¶
type Version struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` BestHeight uint64 `protobuf:"varint,2,opt,name=bestHeight,proto3" json:"bestHeight,omitempty"` AddressFrom string `protobuf:"bytes,3,opt,name=addressFrom,proto3" json:"addressFrom,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Version) Descriptor ¶
func (*Version) GetAddressFrom ¶
func (*Version) GetBestHeight ¶
func (*Version) GetVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.