Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type NetworkRequest
- func (*NetworkRequest) Descriptor() ([]byte, []int)
- func (m *NetworkRequest) GetId() uint64
- func (m *NetworkRequest) GetLatest() bool
- func (m *NetworkRequest) Marshal() (dAtA []byte, err error)
- func (m *NetworkRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *NetworkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NetworkRequest) ProtoMessage()
- func (m *NetworkRequest) Reset()
- func (m *NetworkRequest) Size() (n int)
- func (m *NetworkRequest) String() string
- func (m *NetworkRequest) Unmarshal(dAtA []byte) error
- func (m *NetworkRequest) XXX_DiscardUnknown()
- func (m *NetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetworkRequest) XXX_Merge(src proto.Message)
- func (m *NetworkRequest) XXX_Size() int
- func (m *NetworkRequest) XXX_Unmarshal(b []byte) error
- type NetworkResponse
- func (*NetworkResponse) Descriptor() ([]byte, []int)
- func (m *NetworkResponse) GetCreatedHeight() uint64
- func (m *NetworkResponse) GetId() uint64
- func (m *NetworkResponse) GetPortals() []*Portal
- func (m *NetworkResponse) Marshal() (dAtA []byte, err error)
- func (m *NetworkResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *NetworkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NetworkResponse) ProtoMessage()
- func (m *NetworkResponse) Reset()
- func (m *NetworkResponse) Size() (n int)
- func (m *NetworkResponse) String() string
- func (m *NetworkResponse) Unmarshal(dAtA []byte) error
- func (m *NetworkResponse) XXX_DiscardUnknown()
- func (m *NetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetworkResponse) XXX_Merge(src proto.Message)
- func (m *NetworkResponse) XXX_Size() int
- func (m *NetworkResponse) XXX_Unmarshal(b []byte) error
- type Portal
- func (*Portal) Descriptor() ([]byte, []int)
- func (m *Portal) GetAddress() []byte
- func (m *Portal) GetChainId() uint64
- func (m *Portal) GetDeployHeight() uint64
- func (m *Portal) GetShardIds() []uint64
- func (m *Portal) Marshal() (dAtA []byte, err error)
- func (m *Portal) MarshalTo(dAtA []byte) (int, error)
- func (m *Portal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Portal) ProtoMessage()
- func (m *Portal) Reset()
- func (m *Portal) Size() (n int)
- func (m *Portal) String() string
- func (m *Portal) Unmarshal(dAtA []byte) error
- func (m *Portal) XXX_DiscardUnknown()
- func (m *Portal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Portal) XXX_Merge(src proto.Message)
- func (m *Portal) XXX_Size() int
- func (m *Portal) XXX_Unmarshal(b []byte) error
- type PortalRegistry
- type QueryClient
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
View Source
const (
// ModuleName defines the module name.
ModuleName = "registry"
)
Variables ¶
Functions ¶
func RegisterQueryServer ¶ added in v0.1.10
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type NetworkRequest ¶ added in v0.1.10
type NetworkRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Latest bool `protobuf:"varint,2,opt,name=latest,proto3" json:"latest,omitempty"` }
func (*NetworkRequest) Descriptor ¶ added in v0.1.10
func (*NetworkRequest) Descriptor() ([]byte, []int)
func (*NetworkRequest) GetId ¶ added in v0.1.10
func (m *NetworkRequest) GetId() uint64
func (*NetworkRequest) GetLatest ¶ added in v0.1.10
func (m *NetworkRequest) GetLatest() bool
func (*NetworkRequest) Marshal ¶ added in v0.1.10
func (m *NetworkRequest) Marshal() (dAtA []byte, err error)
func (*NetworkRequest) MarshalTo ¶ added in v0.1.10
func (m *NetworkRequest) MarshalTo(dAtA []byte) (int, error)
func (*NetworkRequest) MarshalToSizedBuffer ¶ added in v0.1.10
func (m *NetworkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NetworkRequest) ProtoMessage ¶ added in v0.1.10
func (*NetworkRequest) ProtoMessage()
func (*NetworkRequest) Reset ¶ added in v0.1.10
func (m *NetworkRequest) Reset()
func (*NetworkRequest) Size ¶ added in v0.1.10
func (m *NetworkRequest) Size() (n int)
func (*NetworkRequest) String ¶ added in v0.1.10
func (m *NetworkRequest) String() string
func (*NetworkRequest) Unmarshal ¶ added in v0.1.10
func (m *NetworkRequest) Unmarshal(dAtA []byte) error
func (*NetworkRequest) XXX_DiscardUnknown ¶ added in v0.1.10
func (m *NetworkRequest) XXX_DiscardUnknown()
func (*NetworkRequest) XXX_Marshal ¶ added in v0.1.10
func (m *NetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkRequest) XXX_Merge ¶ added in v0.1.10
func (m *NetworkRequest) XXX_Merge(src proto.Message)
func (*NetworkRequest) XXX_Size ¶ added in v0.1.10
func (m *NetworkRequest) XXX_Size() int
func (*NetworkRequest) XXX_Unmarshal ¶ added in v0.1.10
func (m *NetworkRequest) XXX_Unmarshal(b []byte) error
type NetworkResponse ¶ added in v0.1.10
type NetworkResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedHeight uint64 `protobuf:"varint,2,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"` Portals []*Portal `protobuf:"bytes,3,rep,name=portals,proto3" json:"portals,omitempty"` }
func (*NetworkResponse) Descriptor ¶ added in v0.1.10
func (*NetworkResponse) Descriptor() ([]byte, []int)
func (*NetworkResponse) GetCreatedHeight ¶ added in v0.1.10
func (m *NetworkResponse) GetCreatedHeight() uint64
func (*NetworkResponse) GetId ¶ added in v0.1.10
func (m *NetworkResponse) GetId() uint64
func (*NetworkResponse) GetPortals ¶ added in v0.1.10
func (m *NetworkResponse) GetPortals() []*Portal
func (*NetworkResponse) Marshal ¶ added in v0.1.10
func (m *NetworkResponse) Marshal() (dAtA []byte, err error)
func (*NetworkResponse) MarshalTo ¶ added in v0.1.10
func (m *NetworkResponse) MarshalTo(dAtA []byte) (int, error)
func (*NetworkResponse) MarshalToSizedBuffer ¶ added in v0.1.10
func (m *NetworkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NetworkResponse) ProtoMessage ¶ added in v0.1.10
func (*NetworkResponse) ProtoMessage()
func (*NetworkResponse) Reset ¶ added in v0.1.10
func (m *NetworkResponse) Reset()
func (*NetworkResponse) Size ¶ added in v0.1.10
func (m *NetworkResponse) Size() (n int)
func (*NetworkResponse) String ¶ added in v0.1.10
func (m *NetworkResponse) String() string
func (*NetworkResponse) Unmarshal ¶ added in v0.1.10
func (m *NetworkResponse) Unmarshal(dAtA []byte) error
func (*NetworkResponse) XXX_DiscardUnknown ¶ added in v0.1.10
func (m *NetworkResponse) XXX_DiscardUnknown()
func (*NetworkResponse) XXX_Marshal ¶ added in v0.1.10
func (m *NetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkResponse) XXX_Merge ¶ added in v0.1.10
func (m *NetworkResponse) XXX_Merge(src proto.Message)
func (*NetworkResponse) XXX_Size ¶ added in v0.1.10
func (m *NetworkResponse) XXX_Size() int
func (*NetworkResponse) XXX_Unmarshal ¶ added in v0.1.10
func (m *NetworkResponse) XXX_Unmarshal(b []byte) error
type Portal ¶ added in v0.1.10
type Portal struct { ChainId uint64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` DeployHeight uint64 `protobuf:"varint,3,opt,name=deploy_height,json=deployHeight,proto3" json:"deploy_height,omitempty"` ShardIds []uint64 `protobuf:"varint,4,rep,packed,name=shard_ids,json=shardIds,proto3" json:"shard_ids,omitempty"` }
func (*Portal) Descriptor ¶ added in v0.1.10
func (*Portal) GetAddress ¶ added in v0.1.10
func (*Portal) GetChainId ¶ added in v0.1.10
func (*Portal) GetDeployHeight ¶ added in v0.1.10
func (*Portal) GetShardIds ¶ added in v0.1.10
func (*Portal) MarshalToSizedBuffer ¶ added in v0.1.10
func (*Portal) ProtoMessage ¶ added in v0.1.10
func (*Portal) ProtoMessage()
func (*Portal) XXX_DiscardUnknown ¶ added in v0.1.10
func (m *Portal) XXX_DiscardUnknown()
func (*Portal) XXX_Marshal ¶ added in v0.1.10
func (*Portal) XXX_Unmarshal ¶ added in v0.1.10
type PortalRegistry ¶
type QueryClient ¶ added in v0.1.10
type QueryClient interface {
Network(ctx context.Context, in *NetworkRequest, opts ...grpc.CallOption) (*NetworkResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.1.10
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶ added in v0.1.10
type QueryServer interface {
Network(context.Context, *NetworkRequest) (*NetworkResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶ added in v0.1.10
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Network ¶ added in v0.1.10
func (*UnimplementedQueryServer) Network(ctx context.Context, req *NetworkRequest) (*NetworkResponse, error)
Click to show internal directories.
Click to hide internal directories.