Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActiveSessionForAddressKey(address sdk.AccAddress, id uint64) []byte
- func GetActiveSessionForAddressKeyPrefix(address sdk.AccAddress) []byte
- func GetInactiveSessionAtKeyPrefix(at time.Time) []byte
- func GetInactiveSessionForAddressKeyPrefix(address sdk.AccAddress) []byte
- func GetSessionForNodeKeyPrefix(address hubtypes.NodeAddress) []byte
- func GetSessionForSubscriptionKeyPrefix(id uint64) []byte
- func IDFromActiveSessionAtKey(key []byte) uint64
- func IDFromSessionForNodeKey(key []byte) uint64
- func IDFromSessionForSubscriptionKey(key []byte) uint64
- func IDFromStatusSessionForAddressKey(key []byte) uint64
- func InactiveSessionAtKey(at time.Time, id uint64) []byte
- func InactiveSessionForAddressKey(address sdk.AccAddress, id uint64) []byte
- func ParamsKeyTable() params.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- func SessionForNodeKey(address hubtypes.NodeAddress, id uint64) []byte
- func SessionForSubscriptionKey(subscription, id uint64) []byte
- func SessionKey(id uint64) []byte
- func ValidateGenesis(state *GenesisState) error
- type EventEndSession
- func (*EventEndSession) Descriptor() ([]byte, []int)
- func (m *EventEndSession) Marshal() (dAtA []byte, err error)
- func (m *EventEndSession) MarshalTo(dAtA []byte) (int, error)
- func (m *EventEndSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventEndSession) ProtoMessage()
- func (m *EventEndSession) Reset()
- func (m *EventEndSession) Size() (n int)
- func (m *EventEndSession) String() string
- func (m *EventEndSession) Unmarshal(dAtA []byte) error
- func (m *EventEndSession) XXX_DiscardUnknown()
- func (m *EventEndSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventEndSession) XXX_Merge(src proto.Message)
- func (m *EventEndSession) XXX_Size() int
- func (m *EventEndSession) XXX_Unmarshal(b []byte) error
- type EventModule
- func (*EventModule) Descriptor() ([]byte, []int)
- func (m *EventModule) Marshal() (dAtA []byte, err error)
- func (m *EventModule) MarshalTo(dAtA []byte) (int, error)
- func (m *EventModule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventModule) ProtoMessage()
- func (m *EventModule) Reset()
- func (m *EventModule) Size() (n int)
- func (m *EventModule) String() string
- func (m *EventModule) Unmarshal(dAtA []byte) error
- func (m *EventModule) XXX_DiscardUnknown()
- func (m *EventModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventModule) XXX_Merge(src proto.Message)
- func (m *EventModule) XXX_Size() int
- func (m *EventModule) XXX_Unmarshal(b []byte) error
- type EventSetSessionCount
- func (*EventSetSessionCount) Descriptor() ([]byte, []int)
- func (m *EventSetSessionCount) Marshal() (dAtA []byte, err error)
- func (m *EventSetSessionCount) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSetSessionCount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSetSessionCount) ProtoMessage()
- func (m *EventSetSessionCount) Reset()
- func (m *EventSetSessionCount) Size() (n int)
- func (m *EventSetSessionCount) String() string
- func (m *EventSetSessionCount) Unmarshal(dAtA []byte) error
- func (m *EventSetSessionCount) XXX_DiscardUnknown()
- func (m *EventSetSessionCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSetSessionCount) XXX_Merge(src proto.Message)
- func (m *EventSetSessionCount) XXX_Size() int
- func (m *EventSetSessionCount) XXX_Unmarshal(b []byte) error
- type EventStartSession
- func (*EventStartSession) Descriptor() ([]byte, []int)
- func (m *EventStartSession) Marshal() (dAtA []byte, err error)
- func (m *EventStartSession) MarshalTo(dAtA []byte) (int, error)
- func (m *EventStartSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventStartSession) ProtoMessage()
- func (m *EventStartSession) Reset()
- func (m *EventStartSession) Size() (n int)
- func (m *EventStartSession) String() string
- func (m *EventStartSession) Unmarshal(dAtA []byte) error
- func (m *EventStartSession) XXX_DiscardUnknown()
- func (m *EventStartSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventStartSession) XXX_Merge(src proto.Message)
- func (m *EventStartSession) XXX_Size() int
- func (m *EventStartSession) XXX_Unmarshal(b []byte) error
- type EventUpdateSession
- func (*EventUpdateSession) Descriptor() ([]byte, []int)
- func (m *EventUpdateSession) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateSession) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateSession) ProtoMessage()
- func (m *EventUpdateSession) Reset()
- func (m *EventUpdateSession) Size() (n int)
- func (m *EventUpdateSession) String() string
- func (m *EventUpdateSession) Unmarshal(dAtA []byte) error
- func (m *EventUpdateSession) XXX_DiscardUnknown()
- func (m *EventUpdateSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateSession) XXX_Merge(src proto.Message)
- func (m *EventUpdateSession) XXX_Size() int
- func (m *EventUpdateSession) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgEndRequest
- func (*MsgEndRequest) Descriptor() ([]byte, []int)
- func (m *MsgEndRequest) GetSignBytes() []byte
- func (m *MsgEndRequest) GetSigners() []sdk.AccAddress
- func (m *MsgEndRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgEndRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEndRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEndRequest) ProtoMessage()
- func (m *MsgEndRequest) Reset()
- func (m *MsgEndRequest) Route() string
- func (m *MsgEndRequest) Size() (n int)
- func (m *MsgEndRequest) String() string
- func (m *MsgEndRequest) Type() string
- func (m *MsgEndRequest) Unmarshal(dAtA []byte) error
- func (m *MsgEndRequest) ValidateBasic() error
- func (m *MsgEndRequest) XXX_DiscardUnknown()
- func (m *MsgEndRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEndRequest) XXX_Merge(src proto.Message)
- func (m *MsgEndRequest) XXX_Size() int
- func (m *MsgEndRequest) XXX_Unmarshal(b []byte) error
- type MsgEndResponse
- func (*MsgEndResponse) Descriptor() ([]byte, []int)
- func (m *MsgEndResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEndResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEndResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEndResponse) ProtoMessage()
- func (m *MsgEndResponse) Reset()
- func (m *MsgEndResponse) Size() (n int)
- func (m *MsgEndResponse) String() string
- func (m *MsgEndResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEndResponse) XXX_DiscardUnknown()
- func (m *MsgEndResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEndResponse) XXX_Merge(src proto.Message)
- func (m *MsgEndResponse) XXX_Size() int
- func (m *MsgEndResponse) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type MsgStartRequest
- func (*MsgStartRequest) Descriptor() ([]byte, []int)
- func (m *MsgStartRequest) GetSignBytes() []byte
- func (m *MsgStartRequest) GetSigners() []sdk.AccAddress
- func (m *MsgStartRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgStartRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStartRequest) ProtoMessage()
- func (m *MsgStartRequest) Reset()
- func (m *MsgStartRequest) Route() string
- func (m *MsgStartRequest) Size() (n int)
- func (m *MsgStartRequest) String() string
- func (m *MsgStartRequest) Type() string
- func (m *MsgStartRequest) Unmarshal(dAtA []byte) error
- func (m *MsgStartRequest) ValidateBasic() error
- func (m *MsgStartRequest) XXX_DiscardUnknown()
- func (m *MsgStartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStartRequest) XXX_Merge(src proto.Message)
- func (m *MsgStartRequest) XXX_Size() int
- func (m *MsgStartRequest) XXX_Unmarshal(b []byte) error
- type MsgStartResponse
- func (*MsgStartResponse) Descriptor() ([]byte, []int)
- func (m *MsgStartResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStartResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStartResponse) ProtoMessage()
- func (m *MsgStartResponse) Reset()
- func (m *MsgStartResponse) Size() (n int)
- func (m *MsgStartResponse) String() string
- func (m *MsgStartResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStartResponse) XXX_DiscardUnknown()
- func (m *MsgStartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStartResponse) XXX_Merge(src proto.Message)
- func (m *MsgStartResponse) XXX_Size() int
- func (m *MsgStartResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateRequest
- func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateRequest) GetSignBytes() []byte
- func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateRequest) ProtoMessage()
- func (m *MsgUpdateRequest) Reset()
- func (m *MsgUpdateRequest) Route() string
- func (m *MsgUpdateRequest) Size() (n int)
- func (m *MsgUpdateRequest) String() string
- func (m *MsgUpdateRequest) Type() string
- func (m *MsgUpdateRequest) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateRequest) ValidateBasic() error
- func (m *MsgUpdateRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateRequest) XXX_Size() int
- func (m *MsgUpdateRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateResponse
- func (*MsgUpdateResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateResponse) ProtoMessage()
- func (m *MsgUpdateResponse) Reset()
- func (m *MsgUpdateResponse) Size() (n int)
- func (m *MsgUpdateResponse) String() string
- func (m *MsgUpdateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateResponse) XXX_Size() int
- func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() params.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type QuerySessionRequest
- func (*QuerySessionRequest) Descriptor() ([]byte, []int)
- func (m *QuerySessionRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionRequest) ProtoMessage()
- func (m *QuerySessionRequest) Reset()
- func (m *QuerySessionRequest) Size() (n int)
- func (m *QuerySessionRequest) String() string
- func (m *QuerySessionRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySessionRequest) XXX_DiscardUnknown()
- func (m *QuerySessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionRequest) XXX_Merge(src proto.Message)
- func (m *QuerySessionRequest) XXX_Size() int
- func (m *QuerySessionRequest) XXX_Unmarshal(b []byte) error
- type QuerySessionResponse
- func (*QuerySessionResponse) Descriptor() ([]byte, []int)
- func (m *QuerySessionResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionResponse) ProtoMessage()
- func (m *QuerySessionResponse) Reset()
- func (m *QuerySessionResponse) Size() (n int)
- func (m *QuerySessionResponse) String() string
- func (m *QuerySessionResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySessionResponse) XXX_DiscardUnknown()
- func (m *QuerySessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionResponse) XXX_Merge(src proto.Message)
- func (m *QuerySessionResponse) XXX_Size() int
- func (m *QuerySessionResponse) XXX_Unmarshal(b []byte) error
- type QuerySessionsForAddressRequest
- func (*QuerySessionsForAddressRequest) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForAddressRequest) ProtoMessage()
- func (m *QuerySessionsForAddressRequest) Reset()
- func (m *QuerySessionsForAddressRequest) Size() (n int)
- func (m *QuerySessionsForAddressRequest) String() string
- func (m *QuerySessionsForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForAddressRequest) XXX_DiscardUnknown()
- func (m *QuerySessionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForAddressRequest) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForAddressRequest) XXX_Size() int
- func (m *QuerySessionsForAddressRequest) XXX_Unmarshal(b []byte) error
- type QuerySessionsForAddressResponse
- func (*QuerySessionsForAddressResponse) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForAddressResponse) ProtoMessage()
- func (m *QuerySessionsForAddressResponse) Reset()
- func (m *QuerySessionsForAddressResponse) Size() (n int)
- func (m *QuerySessionsForAddressResponse) String() string
- func (m *QuerySessionsForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForAddressResponse) XXX_DiscardUnknown()
- func (m *QuerySessionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForAddressResponse) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForAddressResponse) XXX_Size() int
- func (m *QuerySessionsForAddressResponse) XXX_Unmarshal(b []byte) error
- type QuerySessionsForNodeRequest
- func (*QuerySessionsForNodeRequest) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForNodeRequest) ProtoMessage()
- func (m *QuerySessionsForNodeRequest) Reset()
- func (m *QuerySessionsForNodeRequest) Size() (n int)
- func (m *QuerySessionsForNodeRequest) String() string
- func (m *QuerySessionsForNodeRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForNodeRequest) XXX_DiscardUnknown()
- func (m *QuerySessionsForNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForNodeRequest) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForNodeRequest) XXX_Size() int
- func (m *QuerySessionsForNodeRequest) XXX_Unmarshal(b []byte) error
- type QuerySessionsForNodeResponse
- func (*QuerySessionsForNodeResponse) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForNodeResponse) ProtoMessage()
- func (m *QuerySessionsForNodeResponse) Reset()
- func (m *QuerySessionsForNodeResponse) Size() (n int)
- func (m *QuerySessionsForNodeResponse) String() string
- func (m *QuerySessionsForNodeResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForNodeResponse) XXX_DiscardUnknown()
- func (m *QuerySessionsForNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForNodeResponse) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForNodeResponse) XXX_Size() int
- func (m *QuerySessionsForNodeResponse) XXX_Unmarshal(b []byte) error
- type QuerySessionsForSubscriptionRequest
- func (*QuerySessionsForSubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForSubscriptionRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForSubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForSubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForSubscriptionRequest) ProtoMessage()
- func (m *QuerySessionsForSubscriptionRequest) Reset()
- func (m *QuerySessionsForSubscriptionRequest) Size() (n int)
- func (m *QuerySessionsForSubscriptionRequest) String() string
- func (m *QuerySessionsForSubscriptionRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForSubscriptionRequest) XXX_DiscardUnknown()
- func (m *QuerySessionsForSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForSubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForSubscriptionRequest) XXX_Size() int
- func (m *QuerySessionsForSubscriptionRequest) XXX_Unmarshal(b []byte) error
- type QuerySessionsForSubscriptionResponse
- func (*QuerySessionsForSubscriptionResponse) Descriptor() ([]byte, []int)
- func (m *QuerySessionsForSubscriptionResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsForSubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsForSubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsForSubscriptionResponse) ProtoMessage()
- func (m *QuerySessionsForSubscriptionResponse) Reset()
- func (m *QuerySessionsForSubscriptionResponse) Size() (n int)
- func (m *QuerySessionsForSubscriptionResponse) String() string
- func (m *QuerySessionsForSubscriptionResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsForSubscriptionResponse) XXX_DiscardUnknown()
- func (m *QuerySessionsForSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsForSubscriptionResponse) XXX_Merge(src proto.Message)
- func (m *QuerySessionsForSubscriptionResponse) XXX_Size() int
- func (m *QuerySessionsForSubscriptionResponse) XXX_Unmarshal(b []byte) error
- type QuerySessionsRequest
- func (*QuerySessionsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySessionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsRequest) ProtoMessage()
- func (m *QuerySessionsRequest) Reset()
- func (m *QuerySessionsRequest) Size() (n int)
- func (m *QuerySessionsRequest) String() string
- func (m *QuerySessionsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsRequest) XXX_DiscardUnknown()
- func (m *QuerySessionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySessionsRequest) XXX_Size() int
- func (m *QuerySessionsRequest) XXX_Unmarshal(b []byte) error
- type QuerySessionsResponse
- func (*QuerySessionsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySessionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySessionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySessionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySessionsResponse) ProtoMessage()
- func (m *QuerySessionsResponse) Reset()
- func (m *QuerySessionsResponse) Size() (n int)
- func (m *QuerySessionsResponse) String() string
- func (m *QuerySessionsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySessionsResponse) XXX_DiscardUnknown()
- func (m *QuerySessionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySessionsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySessionsResponse) XXX_Size() int
- func (m *QuerySessionsResponse) XXX_Unmarshal(b []byte) error
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (s *Session) GetAddress() sdk.AccAddress
- func (s *Session) GetNode() hubtypes.NodeAddress
- func (m *Session) Marshal() (dAtA []byte, err error)
- func (m *Session) MarshalTo(dAtA []byte) (int, error)
- func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) Size() (n int)
- func (m *Session) String() string
- func (m *Session) Unmarshal(dAtA []byte) error
- func (s *Session) Validate() error
- func (m *Session) XXX_DiscardUnknown()
- func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Session) XXX_Merge(src proto.Message)
- func (m *Session) XXX_Size() int
- func (m *Session) XXX_Unmarshal(b []byte) error
- type Sessions
- type UnimplementedMsgServiceServer
- func (*UnimplementedMsgServiceServer) MsgEnd(ctx context.Context, req *MsgEndRequest) (*MsgEndResponse, error)
- func (*UnimplementedMsgServiceServer) MsgStart(ctx context.Context, req *MsgStartRequest) (*MsgStartResponse, error)
- func (*UnimplementedMsgServiceServer) MsgUpdate(ctx context.Context, req *MsgUpdateRequest) (*MsgUpdateResponse, error)
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySession(ctx context.Context, req *QuerySessionRequest) (*QuerySessionResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySessions(ctx context.Context, req *QuerySessionsRequest) (*QuerySessionsResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySessionsForAddress(ctx context.Context, req *QuerySessionsForAddressRequest) (*QuerySessionsForAddressResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySessionsForNode(ctx context.Context, req *QuerySessionsForNodeRequest) (*QuerySessionsForNodeResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySessionsForSubscription(ctx context.Context, req *QuerySessionsForSubscriptionRequest) (*QuerySessionsForSubscriptionResponse, error)
Constants ¶
const ( ModuleName = "session" QuerierRoute = ModuleName )
const ( DefaultInactiveDuration = 5 * time.Minute DefaultProofVerificationEnabled = false )
Variables ¶
var ( ErrorInvalidField = errors.Register(ModuleName, 101, "invalid field") ErrorSubscriptionDoesNotExit = errors.Register(ModuleName, 102, "subscription does not exist") ErrorInvalidSubscriptionStatus = errors.Register(ModuleName, 103, "invalid subscription status") ErrorQuotaDoesNotExist = errors.Register(ModuleName, 105, "quota does not exist") ErrorFailedToVerifyProof = errors.Register(ModuleName, 106, "failed to verify proof") ErrorNotEnoughQuota = errors.Register(ModuleName, 107, "not enough quota") ErrorNodeDoesNotExist = errors.Register(ModuleName, 108, "node does not exist") ErrorInvalidNodeStatus = errors.Register(ModuleName, 109, "invalid node status") ErrorSessionDoesNotExist = errors.Register(ModuleName, 110, "session does not exist") ErrorInvalidSessionStatus = errors.Register(ModuleName, 111, "invalid session status") ErrorAccountDoesNotExist = errors.Register(ModuleName, 112, "account does not exist") ErrorPublicKeyDoesNotExist = errors.Register(ModuleName, 113, "public key does not exist") ErrorInvalidSignature = errors.Register(ModuleName, 114, "invalid signature") ErrorNodeAddressMismatch = errors.Register(ModuleName, 115, "node address mismatch") ErrorNodeDoesNotExistForPlan = errors.Register(ModuleName, 116, "node does not exist for plan") ErrorDuplicateSession = errors.Register(ModuleName, 117, "duplicate session") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsSubspace = ModuleName RouterKey = ModuleName StoreKey = ModuleName )
var ( CountKey = []byte{0x00} SessionKeyPrefix = []byte{0x11} SessionForSubscriptionKeyPrefix = []byte{0x20} SessionForNodeKeyPrefix = []byte{0x21} InactiveSessionForAddressKeyPrefix = []byte{0x30} ActiveSessionForAddressKeyPrefix = []byte{0x31} InactiveSessionAtKeyPrefix = []byte{0x40} )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
var ( KeyInactiveDuration = []byte("InactiveDuration") KeyProofVerificationEnabled = []byte("ProofVerificationEnabled") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProof = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProof = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProof = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuerier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuerier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSession = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSession = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSession = fmt.Errorf("proto: unexpected end of group") )
var (
EventModuleName = EventModule{Name: ModuleName}
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ActiveSessionForAddressKey ¶ added in v0.5.0
func ActiveSessionForAddressKey(address sdk.AccAddress, id uint64) []byte
func GetActiveSessionForAddressKeyPrefix ¶ added in v0.5.0
func GetActiveSessionForAddressKeyPrefix(address sdk.AccAddress) []byte
func GetInactiveSessionAtKeyPrefix ¶ added in v0.7.0
func GetInactiveSessionForAddressKeyPrefix ¶ added in v0.6.1
func GetInactiveSessionForAddressKeyPrefix(address sdk.AccAddress) []byte
func GetSessionForNodeKeyPrefix ¶
func GetSessionForNodeKeyPrefix(address hubtypes.NodeAddress) []byte
func IDFromActiveSessionAtKey ¶ added in v0.4.0
func IDFromSessionForNodeKey ¶ added in v0.4.0
func IDFromSessionForSubscriptionKey ¶ added in v0.4.0
func IDFromStatusSessionForAddressKey ¶ added in v0.6.1
func InactiveSessionAtKey ¶ added in v0.7.0
func InactiveSessionForAddressKey ¶ added in v0.6.1
func InactiveSessionForAddressKey(address sdk.AccAddress, id uint64) []byte
func ParamsKeyTable ¶
func RegisterInterfaces ¶ added in v0.6.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.6.0
func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
func RegisterMsgServiceServer ¶ added in v0.6.0
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶ added in v0.6.0
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶ added in v0.6.0
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶ added in v0.6.0
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶ added in v0.6.0
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶ added in v0.6.0
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
func SessionForNodeKey ¶
func SessionForNodeKey(address hubtypes.NodeAddress, id uint64) []byte
func SessionKey ¶
func ValidateGenesis ¶ added in v0.6.0
func ValidateGenesis(state *GenesisState) error
Types ¶
type EventEndSession ¶ added in v0.6.1
type EventEndSession struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Subscription uint64 `protobuf:"varint,3,opt,name=subscription,proto3" json:"subscription,omitempty"` Node string `protobuf:"bytes,4,opt,name=node,proto3" json:"node,omitempty"` }
func (*EventEndSession) Descriptor ¶ added in v0.6.1
func (*EventEndSession) Descriptor() ([]byte, []int)
func (*EventEndSession) Marshal ¶ added in v0.6.1
func (m *EventEndSession) Marshal() (dAtA []byte, err error)
func (*EventEndSession) MarshalTo ¶ added in v0.6.1
func (m *EventEndSession) MarshalTo(dAtA []byte) (int, error)
func (*EventEndSession) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *EventEndSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventEndSession) ProtoMessage ¶ added in v0.6.1
func (*EventEndSession) ProtoMessage()
func (*EventEndSession) Reset ¶ added in v0.6.1
func (m *EventEndSession) Reset()
func (*EventEndSession) Size ¶ added in v0.6.1
func (m *EventEndSession) Size() (n int)
func (*EventEndSession) String ¶ added in v0.6.1
func (m *EventEndSession) String() string
func (*EventEndSession) Unmarshal ¶ added in v0.6.1
func (m *EventEndSession) Unmarshal(dAtA []byte) error
func (*EventEndSession) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *EventEndSession) XXX_DiscardUnknown()
func (*EventEndSession) XXX_Marshal ¶ added in v0.6.1
func (m *EventEndSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventEndSession) XXX_Merge ¶ added in v0.6.1
func (m *EventEndSession) XXX_Merge(src proto.Message)
func (*EventEndSession) XXX_Size ¶ added in v0.6.1
func (m *EventEndSession) XXX_Size() int
func (*EventEndSession) XXX_Unmarshal ¶ added in v0.6.1
func (m *EventEndSession) XXX_Unmarshal(b []byte) error
type EventModule ¶ added in v0.6.0
type EventModule struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*EventModule) Descriptor ¶ added in v0.6.0
func (*EventModule) Descriptor() ([]byte, []int)
func (*EventModule) Marshal ¶ added in v0.6.0
func (m *EventModule) Marshal() (dAtA []byte, err error)
func (*EventModule) MarshalTo ¶ added in v0.6.0
func (m *EventModule) MarshalTo(dAtA []byte) (int, error)
func (*EventModule) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventModule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventModule) ProtoMessage ¶ added in v0.6.0
func (*EventModule) ProtoMessage()
func (*EventModule) Reset ¶ added in v0.6.0
func (m *EventModule) Reset()
func (*EventModule) Size ¶ added in v0.6.0
func (m *EventModule) Size() (n int)
func (*EventModule) String ¶ added in v0.6.0
func (m *EventModule) String() string
func (*EventModule) Unmarshal ¶ added in v0.6.0
func (m *EventModule) Unmarshal(dAtA []byte) error
func (*EventModule) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventModule) XXX_DiscardUnknown()
func (*EventModule) XXX_Marshal ¶ added in v0.6.0
func (m *EventModule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventModule) XXX_Merge ¶ added in v0.6.0
func (m *EventModule) XXX_Merge(src proto.Message)
func (*EventModule) XXX_Size ¶ added in v0.6.0
func (m *EventModule) XXX_Size() int
func (*EventModule) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventModule) XXX_Unmarshal(b []byte) error
type EventSetSessionCount ¶ added in v0.6.0
type EventSetSessionCount struct {
Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*EventSetSessionCount) Descriptor ¶ added in v0.6.0
func (*EventSetSessionCount) Descriptor() ([]byte, []int)
func (*EventSetSessionCount) Marshal ¶ added in v0.6.0
func (m *EventSetSessionCount) Marshal() (dAtA []byte, err error)
func (*EventSetSessionCount) MarshalTo ¶ added in v0.6.0
func (m *EventSetSessionCount) MarshalTo(dAtA []byte) (int, error)
func (*EventSetSessionCount) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventSetSessionCount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSetSessionCount) ProtoMessage ¶ added in v0.6.0
func (*EventSetSessionCount) ProtoMessage()
func (*EventSetSessionCount) Reset ¶ added in v0.6.0
func (m *EventSetSessionCount) Reset()
func (*EventSetSessionCount) Size ¶ added in v0.6.0
func (m *EventSetSessionCount) Size() (n int)
func (*EventSetSessionCount) String ¶ added in v0.6.0
func (m *EventSetSessionCount) String() string
func (*EventSetSessionCount) Unmarshal ¶ added in v0.6.0
func (m *EventSetSessionCount) Unmarshal(dAtA []byte) error
func (*EventSetSessionCount) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventSetSessionCount) XXX_DiscardUnknown()
func (*EventSetSessionCount) XXX_Marshal ¶ added in v0.6.0
func (m *EventSetSessionCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSetSessionCount) XXX_Merge ¶ added in v0.6.0
func (m *EventSetSessionCount) XXX_Merge(src proto.Message)
func (*EventSetSessionCount) XXX_Size ¶ added in v0.6.0
func (m *EventSetSessionCount) XXX_Size() int
func (*EventSetSessionCount) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventSetSessionCount) XXX_Unmarshal(b []byte) error
type EventStartSession ¶ added in v0.6.1
type EventStartSession struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Subscription uint64 `protobuf:"varint,3,opt,name=subscription,proto3" json:"subscription,omitempty"` Node string `protobuf:"bytes,4,opt,name=node,proto3" json:"node,omitempty"` }
func (*EventStartSession) Descriptor ¶ added in v0.6.1
func (*EventStartSession) Descriptor() ([]byte, []int)
func (*EventStartSession) Marshal ¶ added in v0.6.1
func (m *EventStartSession) Marshal() (dAtA []byte, err error)
func (*EventStartSession) MarshalTo ¶ added in v0.6.1
func (m *EventStartSession) MarshalTo(dAtA []byte) (int, error)
func (*EventStartSession) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *EventStartSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventStartSession) ProtoMessage ¶ added in v0.6.1
func (*EventStartSession) ProtoMessage()
func (*EventStartSession) Reset ¶ added in v0.6.1
func (m *EventStartSession) Reset()
func (*EventStartSession) Size ¶ added in v0.6.1
func (m *EventStartSession) Size() (n int)
func (*EventStartSession) String ¶ added in v0.6.1
func (m *EventStartSession) String() string
func (*EventStartSession) Unmarshal ¶ added in v0.6.1
func (m *EventStartSession) Unmarshal(dAtA []byte) error
func (*EventStartSession) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *EventStartSession) XXX_DiscardUnknown()
func (*EventStartSession) XXX_Marshal ¶ added in v0.6.1
func (m *EventStartSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventStartSession) XXX_Merge ¶ added in v0.6.1
func (m *EventStartSession) XXX_Merge(src proto.Message)
func (*EventStartSession) XXX_Size ¶ added in v0.6.1
func (m *EventStartSession) XXX_Size() int
func (*EventStartSession) XXX_Unmarshal ¶ added in v0.6.1
func (m *EventStartSession) XXX_Unmarshal(b []byte) error
type EventUpdateSession ¶ added in v0.6.0
type EventUpdateSession struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Subscription uint64 `protobuf:"varint,3,opt,name=subscription,proto3" json:"subscription,omitempty"` Node string `protobuf:"bytes,4,opt,name=node,proto3" json:"node,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Duration time.Duration `protobuf:"bytes,6,opt,name=duration,proto3,stdduration" json:"duration"` Bandwidth types.Bandwidth `protobuf:"bytes,7,opt,name=bandwidth,proto3" json:"bandwidth"` }
func (*EventUpdateSession) Descriptor ¶ added in v0.6.0
func (*EventUpdateSession) Descriptor() ([]byte, []int)
func (*EventUpdateSession) Marshal ¶ added in v0.6.0
func (m *EventUpdateSession) Marshal() (dAtA []byte, err error)
func (*EventUpdateSession) MarshalTo ¶ added in v0.6.0
func (m *EventUpdateSession) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateSession) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *EventUpdateSession) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateSession) ProtoMessage ¶ added in v0.6.0
func (*EventUpdateSession) ProtoMessage()
func (*EventUpdateSession) Reset ¶ added in v0.6.0
func (m *EventUpdateSession) Reset()
func (*EventUpdateSession) Size ¶ added in v0.6.0
func (m *EventUpdateSession) Size() (n int)
func (*EventUpdateSession) String ¶ added in v0.6.0
func (m *EventUpdateSession) String() string
func (*EventUpdateSession) Unmarshal ¶ added in v0.6.0
func (m *EventUpdateSession) Unmarshal(dAtA []byte) error
func (*EventUpdateSession) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *EventUpdateSession) XXX_DiscardUnknown()
func (*EventUpdateSession) XXX_Marshal ¶ added in v0.6.0
func (m *EventUpdateSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateSession) XXX_Merge ¶ added in v0.6.0
func (m *EventUpdateSession) XXX_Merge(src proto.Message)
func (*EventUpdateSession) XXX_Size ¶ added in v0.6.0
func (m *EventUpdateSession) XXX_Size() int
func (*EventUpdateSession) XXX_Unmarshal ¶ added in v0.6.0
func (m *EventUpdateSession) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Sessions []Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"_,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(sessions Sessions, params Params) *GenesisState
func (*GenesisState) Descriptor ¶ added in v0.6.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶ added in v0.6.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.6.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.6.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.6.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.6.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.6.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.6.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.6.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.6.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgEndRequest ¶ added in v0.6.1
type MsgEndRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Rating uint64 `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"` }
MsgEndRequest defines the SDK message for ending a session
func NewMsgEndRequest ¶ added in v0.6.1
func NewMsgEndRequest(from sdk.AccAddress, id uint64, rating uint64) *MsgEndRequest
func (*MsgEndRequest) Descriptor ¶ added in v0.6.1
func (*MsgEndRequest) Descriptor() ([]byte, []int)
func (*MsgEndRequest) GetSignBytes ¶ added in v0.6.1
func (m *MsgEndRequest) GetSignBytes() []byte
func (*MsgEndRequest) GetSigners ¶ added in v0.6.1
func (m *MsgEndRequest) GetSigners() []sdk.AccAddress
func (*MsgEndRequest) Marshal ¶ added in v0.6.1
func (m *MsgEndRequest) Marshal() (dAtA []byte, err error)
func (*MsgEndRequest) MarshalTo ¶ added in v0.6.1
func (m *MsgEndRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgEndRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgEndRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEndRequest) ProtoMessage ¶ added in v0.6.1
func (*MsgEndRequest) ProtoMessage()
func (*MsgEndRequest) Reset ¶ added in v0.6.1
func (m *MsgEndRequest) Reset()
func (*MsgEndRequest) Route ¶ added in v0.6.1
func (m *MsgEndRequest) Route() string
func (*MsgEndRequest) Size ¶ added in v0.6.1
func (m *MsgEndRequest) Size() (n int)
func (*MsgEndRequest) String ¶ added in v0.6.1
func (m *MsgEndRequest) String() string
func (*MsgEndRequest) Type ¶ added in v0.6.1
func (m *MsgEndRequest) Type() string
func (*MsgEndRequest) Unmarshal ¶ added in v0.6.1
func (m *MsgEndRequest) Unmarshal(dAtA []byte) error
func (*MsgEndRequest) ValidateBasic ¶ added in v0.6.1
func (m *MsgEndRequest) ValidateBasic() error
func (*MsgEndRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgEndRequest) XXX_DiscardUnknown()
func (*MsgEndRequest) XXX_Marshal ¶ added in v0.6.1
func (m *MsgEndRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEndRequest) XXX_Merge ¶ added in v0.6.1
func (m *MsgEndRequest) XXX_Merge(src proto.Message)
func (*MsgEndRequest) XXX_Size ¶ added in v0.6.1
func (m *MsgEndRequest) XXX_Size() int
func (*MsgEndRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgEndRequest) XXX_Unmarshal(b []byte) error
type MsgEndResponse ¶ added in v0.6.1
type MsgEndResponse struct { }
MsgEndResponse defines the response of message MsgEndRequest
func (*MsgEndResponse) Descriptor ¶ added in v0.6.1
func (*MsgEndResponse) Descriptor() ([]byte, []int)
func (*MsgEndResponse) Marshal ¶ added in v0.6.1
func (m *MsgEndResponse) Marshal() (dAtA []byte, err error)
func (*MsgEndResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgEndResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEndResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgEndResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEndResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgEndResponse) ProtoMessage()
func (*MsgEndResponse) Reset ¶ added in v0.6.1
func (m *MsgEndResponse) Reset()
func (*MsgEndResponse) Size ¶ added in v0.6.1
func (m *MsgEndResponse) Size() (n int)
func (*MsgEndResponse) String ¶ added in v0.6.1
func (m *MsgEndResponse) String() string
func (*MsgEndResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgEndResponse) Unmarshal(dAtA []byte) error
func (*MsgEndResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgEndResponse) XXX_DiscardUnknown()
func (*MsgEndResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgEndResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEndResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgEndResponse) XXX_Merge(src proto.Message)
func (*MsgEndResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgEndResponse) XXX_Size() int
func (*MsgEndResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgEndResponse) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶ added in v0.6.0
type MsgServiceClient interface { MsgStart(ctx context.Context, in *MsgStartRequest, opts ...grpc.CallOption) (*MsgStartResponse, error) MsgUpdate(ctx context.Context, in *MsgUpdateRequest, opts ...grpc.CallOption) (*MsgUpdateResponse, error) MsgEnd(ctx context.Context, in *MsgEndRequest, opts ...grpc.CallOption) (*MsgEndResponse, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶ added in v0.6.0
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶ added in v0.6.0
type MsgServiceServer interface { MsgStart(context.Context, *MsgStartRequest) (*MsgStartResponse, error) MsgUpdate(context.Context, *MsgUpdateRequest) (*MsgUpdateResponse, error) MsgEnd(context.Context, *MsgEndRequest) (*MsgEndResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgStartRequest ¶ added in v0.6.1
type MsgStartRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` }
MsgStartRequest defines the SDK message for starting a session
func NewMsgStartRequest ¶ added in v0.6.1
func NewMsgStartRequest(from sdk.AccAddress, id uint64, node hubtypes.NodeAddress) *MsgStartRequest
func (*MsgStartRequest) Descriptor ¶ added in v0.6.1
func (*MsgStartRequest) Descriptor() ([]byte, []int)
func (*MsgStartRequest) GetSignBytes ¶ added in v0.6.1
func (m *MsgStartRequest) GetSignBytes() []byte
func (*MsgStartRequest) GetSigners ¶ added in v0.6.1
func (m *MsgStartRequest) GetSigners() []sdk.AccAddress
func (*MsgStartRequest) Marshal ¶ added in v0.6.1
func (m *MsgStartRequest) Marshal() (dAtA []byte, err error)
func (*MsgStartRequest) MarshalTo ¶ added in v0.6.1
func (m *MsgStartRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgStartRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgStartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStartRequest) ProtoMessage ¶ added in v0.6.1
func (*MsgStartRequest) ProtoMessage()
func (*MsgStartRequest) Reset ¶ added in v0.6.1
func (m *MsgStartRequest) Reset()
func (*MsgStartRequest) Route ¶ added in v0.6.1
func (m *MsgStartRequest) Route() string
func (*MsgStartRequest) Size ¶ added in v0.6.1
func (m *MsgStartRequest) Size() (n int)
func (*MsgStartRequest) String ¶ added in v0.6.1
func (m *MsgStartRequest) String() string
func (*MsgStartRequest) Type ¶ added in v0.6.1
func (m *MsgStartRequest) Type() string
func (*MsgStartRequest) Unmarshal ¶ added in v0.6.1
func (m *MsgStartRequest) Unmarshal(dAtA []byte) error
func (*MsgStartRequest) ValidateBasic ¶ added in v0.6.1
func (m *MsgStartRequest) ValidateBasic() error
func (*MsgStartRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgStartRequest) XXX_DiscardUnknown()
func (*MsgStartRequest) XXX_Marshal ¶ added in v0.6.1
func (m *MsgStartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStartRequest) XXX_Merge ¶ added in v0.6.1
func (m *MsgStartRequest) XXX_Merge(src proto.Message)
func (*MsgStartRequest) XXX_Size ¶ added in v0.6.1
func (m *MsgStartRequest) XXX_Size() int
func (*MsgStartRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgStartRequest) XXX_Unmarshal(b []byte) error
type MsgStartResponse ¶ added in v0.6.1
type MsgStartResponse struct { }
MsgStartResponse defines the response of message MsgStartRequest
func (*MsgStartResponse) Descriptor ¶ added in v0.6.1
func (*MsgStartResponse) Descriptor() ([]byte, []int)
func (*MsgStartResponse) Marshal ¶ added in v0.6.1
func (m *MsgStartResponse) Marshal() (dAtA []byte, err error)
func (*MsgStartResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgStartResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStartResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgStartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStartResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgStartResponse) ProtoMessage()
func (*MsgStartResponse) Reset ¶ added in v0.6.1
func (m *MsgStartResponse) Reset()
func (*MsgStartResponse) Size ¶ added in v0.6.1
func (m *MsgStartResponse) Size() (n int)
func (*MsgStartResponse) String ¶ added in v0.6.1
func (m *MsgStartResponse) String() string
func (*MsgStartResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgStartResponse) Unmarshal(dAtA []byte) error
func (*MsgStartResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgStartResponse) XXX_DiscardUnknown()
func (*MsgStartResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgStartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStartResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgStartResponse) XXX_Merge(src proto.Message)
func (*MsgStartResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgStartResponse) XXX_Size() int
func (*MsgStartResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgStartResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateRequest ¶ added in v0.6.1
type MsgUpdateRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Proof Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` }
MsgUpdateRequest defines the SDK message for updating a session
func NewMsgUpdateRequest ¶ added in v0.6.1
func NewMsgUpdateRequest(from hubtypes.NodeAddress, proof Proof, signature []byte) *MsgUpdateRequest
func (*MsgUpdateRequest) Descriptor ¶ added in v0.6.1
func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateRequest) GetSignBytes ¶ added in v0.6.1
func (m *MsgUpdateRequest) GetSignBytes() []byte
func (*MsgUpdateRequest) GetSigners ¶ added in v0.6.1
func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress
func (*MsgUpdateRequest) Marshal ¶ added in v0.6.1
func (m *MsgUpdateRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateRequest) MarshalTo ¶ added in v0.6.1
func (m *MsgUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateRequest) ProtoMessage ¶ added in v0.6.1
func (*MsgUpdateRequest) ProtoMessage()
func (*MsgUpdateRequest) Reset ¶ added in v0.6.1
func (m *MsgUpdateRequest) Reset()
func (*MsgUpdateRequest) Route ¶ added in v0.6.1
func (m *MsgUpdateRequest) Route() string
func (*MsgUpdateRequest) Size ¶ added in v0.6.1
func (m *MsgUpdateRequest) Size() (n int)
func (*MsgUpdateRequest) String ¶ added in v0.6.1
func (m *MsgUpdateRequest) String() string
func (*MsgUpdateRequest) Type ¶ added in v0.6.1
func (m *MsgUpdateRequest) Type() string
func (*MsgUpdateRequest) Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateRequest) ValidateBasic ¶ added in v0.6.1
func (m *MsgUpdateRequest) ValidateBasic() error
func (*MsgUpdateRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgUpdateRequest) XXX_DiscardUnknown()
func (*MsgUpdateRequest) XXX_Marshal ¶ added in v0.6.1
func (m *MsgUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateRequest) XXX_Merge ¶ added in v0.6.1
func (m *MsgUpdateRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateRequest) XXX_Size ¶ added in v0.6.1
func (m *MsgUpdateRequest) XXX_Size() int
func (*MsgUpdateRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateResponse ¶ added in v0.6.1
type MsgUpdateResponse struct { }
MsgUpdateResponse defines the response of message MsgUpdateRequest
func (*MsgUpdateResponse) Descriptor ¶ added in v0.6.1
func (*MsgUpdateResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateResponse) Marshal ¶ added in v0.6.1
func (m *MsgUpdateResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgUpdateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgUpdateResponse) ProtoMessage()
func (*MsgUpdateResponse) Reset ¶ added in v0.6.1
func (m *MsgUpdateResponse) Reset()
func (*MsgUpdateResponse) Size ¶ added in v0.6.1
func (m *MsgUpdateResponse) Size() (n int)
func (*MsgUpdateResponse) String ¶ added in v0.6.1
func (m *MsgUpdateResponse) String() string
func (*MsgUpdateResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgUpdateResponse) XXX_DiscardUnknown()
func (*MsgUpdateResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgUpdateResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgUpdateResponse) XXX_Size() int
func (*MsgUpdateResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { InactiveDuration time.Duration `protobuf:"bytes,1,opt,name=inactive_duration,json=inactiveDuration,proto3,stdduration" json:"inactive_duration"` ProofVerificationEnabled bool `` /* 136-byte string literal not displayed */ }
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.6.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v0.6.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.6.0
func (*Params) XXX_Unmarshal ¶ added in v0.6.0
type Proof ¶ added in v0.5.0
type Proof struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Duration time.Duration `protobuf:"bytes,2,opt,name=duration,proto3,stdduration" json:"duration"` Bandwidth types.Bandwidth `protobuf:"bytes,3,opt,name=bandwidth,proto3" json:"bandwidth"` }
func (*Proof) Descriptor ¶ added in v0.6.0
func (*Proof) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Proof) ProtoMessage ¶ added in v0.6.0
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶ added in v0.6.0
func (*Proof) XXX_Unmarshal ¶ added in v0.6.0
type QueryParamsRequest ¶ added in v0.6.1
type QueryParamsRequest struct { }
func NewQueryParamsRequest ¶ added in v0.6.1
func NewQueryParamsRequest() *QueryParamsRequest
func (*QueryParamsRequest) Descriptor ¶ added in v0.6.1
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.6.1
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.6.1
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.6.1
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.6.1
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.6.1
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.6.1
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.6.1
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.6.1
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶ added in v0.6.1
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶ added in v0.6.1
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.6.1
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.6.1
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.6.1
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.6.1
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.6.1
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.6.1
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶ added in v0.6.0
type QueryServiceClient interface { QuerySessions(ctx context.Context, in *QuerySessionsRequest, opts ...grpc.CallOption) (*QuerySessionsResponse, error) QuerySessionsForNode(ctx context.Context, in *QuerySessionsForNodeRequest, opts ...grpc.CallOption) (*QuerySessionsForNodeResponse, error) QuerySessionsForSubscription(ctx context.Context, in *QuerySessionsForSubscriptionRequest, opts ...grpc.CallOption) (*QuerySessionsForSubscriptionResponse, error) QuerySessionsForAddress(ctx context.Context, in *QuerySessionsForAddressRequest, opts ...grpc.CallOption) (*QuerySessionsForAddressResponse, error) QuerySession(ctx context.Context, in *QuerySessionRequest, opts ...grpc.CallOption) (*QuerySessionResponse, error) QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶ added in v0.6.0
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶ added in v0.6.0
type QueryServiceServer interface { QuerySessions(context.Context, *QuerySessionsRequest) (*QuerySessionsResponse, error) QuerySessionsForNode(context.Context, *QuerySessionsForNodeRequest) (*QuerySessionsForNodeResponse, error) QuerySessionsForSubscription(context.Context, *QuerySessionsForSubscriptionRequest) (*QuerySessionsForSubscriptionResponse, error) QuerySessionsForAddress(context.Context, *QuerySessionsForAddressRequest) (*QuerySessionsForAddressResponse, error) QuerySession(context.Context, *QuerySessionRequest) (*QuerySessionResponse, error) QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type QuerySessionRequest ¶ added in v0.6.0
type QuerySessionRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func NewQuerySessionRequest ¶ added in v0.6.0
func NewQuerySessionRequest(id uint64) *QuerySessionRequest
func (*QuerySessionRequest) Descriptor ¶ added in v0.6.0
func (*QuerySessionRequest) Descriptor() ([]byte, []int)
func (*QuerySessionRequest) Marshal ¶ added in v0.6.0
func (m *QuerySessionRequest) Marshal() (dAtA []byte, err error)
func (*QuerySessionRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionRequest) ProtoMessage()
func (*QuerySessionRequest) Reset ¶ added in v0.6.0
func (m *QuerySessionRequest) Reset()
func (*QuerySessionRequest) Size ¶ added in v0.6.0
func (m *QuerySessionRequest) Size() (n int)
func (*QuerySessionRequest) String ¶ added in v0.6.0
func (m *QuerySessionRequest) String() string
func (*QuerySessionRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionRequest) Unmarshal(dAtA []byte) error
func (*QuerySessionRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionRequest) XXX_DiscardUnknown()
func (*QuerySessionRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionRequest) XXX_Merge(src proto.Message)
func (*QuerySessionRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionRequest) XXX_Size() int
func (*QuerySessionRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionRequest) XXX_Unmarshal(b []byte) error
type QuerySessionResponse ¶ added in v0.6.0
type QuerySessionResponse struct {
Session Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session"`
}
func (*QuerySessionResponse) Descriptor ¶ added in v0.6.0
func (*QuerySessionResponse) Descriptor() ([]byte, []int)
func (*QuerySessionResponse) Marshal ¶ added in v0.6.0
func (m *QuerySessionResponse) Marshal() (dAtA []byte, err error)
func (*QuerySessionResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionResponse) ProtoMessage()
func (*QuerySessionResponse) Reset ¶ added in v0.6.0
func (m *QuerySessionResponse) Reset()
func (*QuerySessionResponse) Size ¶ added in v0.6.0
func (m *QuerySessionResponse) Size() (n int)
func (*QuerySessionResponse) String ¶ added in v0.6.0
func (m *QuerySessionResponse) String() string
func (*QuerySessionResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionResponse) Unmarshal(dAtA []byte) error
func (*QuerySessionResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionResponse) XXX_DiscardUnknown()
func (*QuerySessionResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionResponse) XXX_Merge(src proto.Message)
func (*QuerySessionResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionResponse) XXX_Size() int
func (*QuerySessionResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionResponse) XXX_Unmarshal(b []byte) error
type QuerySessionsForAddressRequest ¶ added in v0.6.0
type QuerySessionsForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Status types.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySessionsForAddressRequest ¶ added in v0.6.0
func NewQuerySessionsForAddressRequest(address sdk.AccAddress, status hubtypes.Status, pagination *query.PageRequest) *QuerySessionsForAddressRequest
func (*QuerySessionsForAddressRequest) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForAddressRequest) Descriptor() ([]byte, []int)
func (*QuerySessionsForAddressRequest) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForAddressRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForAddressRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForAddressRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForAddressRequest) ProtoMessage()
func (*QuerySessionsForAddressRequest) Reset ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) Reset()
func (*QuerySessionsForAddressRequest) Size ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) Size() (n int)
func (*QuerySessionsForAddressRequest) String ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) String() string
func (*QuerySessionsForAddressRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) Unmarshal(dAtA []byte) error
func (*QuerySessionsForAddressRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) XXX_DiscardUnknown()
func (*QuerySessionsForAddressRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForAddressRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) XXX_Merge(src proto.Message)
func (*QuerySessionsForAddressRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) XXX_Size() int
func (*QuerySessionsForAddressRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressRequest) XXX_Unmarshal(b []byte) error
type QuerySessionsForAddressResponse ¶ added in v0.6.0
type QuerySessionsForAddressResponse struct { Sessions []Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySessionsForAddressResponse) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForAddressResponse) Descriptor() ([]byte, []int)
func (*QuerySessionsForAddressResponse) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForAddressResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForAddressResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForAddressResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForAddressResponse) ProtoMessage()
func (*QuerySessionsForAddressResponse) Reset ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) Reset()
func (*QuerySessionsForAddressResponse) Size ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) Size() (n int)
func (*QuerySessionsForAddressResponse) String ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) String() string
func (*QuerySessionsForAddressResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) Unmarshal(dAtA []byte) error
func (*QuerySessionsForAddressResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) XXX_DiscardUnknown()
func (*QuerySessionsForAddressResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForAddressResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) XXX_Merge(src proto.Message)
func (*QuerySessionsForAddressResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) XXX_Size() int
func (*QuerySessionsForAddressResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForAddressResponse) XXX_Unmarshal(b []byte) error
type QuerySessionsForNodeRequest ¶ added in v0.6.0
type QuerySessionsForNodeRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySessionsForNodeRequest ¶ added in v0.6.0
func NewQuerySessionsForNodeRequest(address hubtypes.NodeAddress, pagination *query.PageRequest) *QuerySessionsForNodeRequest
func (*QuerySessionsForNodeRequest) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForNodeRequest) Descriptor() ([]byte, []int)
func (*QuerySessionsForNodeRequest) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForNodeRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForNodeRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForNodeRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForNodeRequest) ProtoMessage()
func (*QuerySessionsForNodeRequest) Reset ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) Reset()
func (*QuerySessionsForNodeRequest) Size ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) Size() (n int)
func (*QuerySessionsForNodeRequest) String ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) String() string
func (*QuerySessionsForNodeRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) Unmarshal(dAtA []byte) error
func (*QuerySessionsForNodeRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) XXX_DiscardUnknown()
func (*QuerySessionsForNodeRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForNodeRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) XXX_Merge(src proto.Message)
func (*QuerySessionsForNodeRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) XXX_Size() int
func (*QuerySessionsForNodeRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeRequest) XXX_Unmarshal(b []byte) error
type QuerySessionsForNodeResponse ¶ added in v0.6.0
type QuerySessionsForNodeResponse struct { Sessions []Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySessionsForNodeResponse) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForNodeResponse) Descriptor() ([]byte, []int)
func (*QuerySessionsForNodeResponse) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForNodeResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForNodeResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForNodeResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForNodeResponse) ProtoMessage()
func (*QuerySessionsForNodeResponse) Reset ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) Reset()
func (*QuerySessionsForNodeResponse) Size ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) Size() (n int)
func (*QuerySessionsForNodeResponse) String ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) String() string
func (*QuerySessionsForNodeResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) Unmarshal(dAtA []byte) error
func (*QuerySessionsForNodeResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) XXX_DiscardUnknown()
func (*QuerySessionsForNodeResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForNodeResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) XXX_Merge(src proto.Message)
func (*QuerySessionsForNodeResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) XXX_Size() int
func (*QuerySessionsForNodeResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForNodeResponse) XXX_Unmarshal(b []byte) error
type QuerySessionsForSubscriptionRequest ¶ added in v0.6.0
type QuerySessionsForSubscriptionRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySessionsForSubscriptionRequest ¶ added in v0.6.0
func NewQuerySessionsForSubscriptionRequest(id uint64, pagination *query.PageRequest) *QuerySessionsForSubscriptionRequest
func (*QuerySessionsForSubscriptionRequest) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForSubscriptionRequest) Descriptor() ([]byte, []int)
func (*QuerySessionsForSubscriptionRequest) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForSubscriptionRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForSubscriptionRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForSubscriptionRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForSubscriptionRequest) ProtoMessage()
func (*QuerySessionsForSubscriptionRequest) Reset ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) Reset()
func (*QuerySessionsForSubscriptionRequest) Size ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) Size() (n int)
func (*QuerySessionsForSubscriptionRequest) String ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) String() string
func (*QuerySessionsForSubscriptionRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) Unmarshal(dAtA []byte) error
func (*QuerySessionsForSubscriptionRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) XXX_DiscardUnknown()
func (*QuerySessionsForSubscriptionRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForSubscriptionRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) XXX_Merge(src proto.Message)
func (*QuerySessionsForSubscriptionRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) XXX_Size() int
func (*QuerySessionsForSubscriptionRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionRequest) XXX_Unmarshal(b []byte) error
type QuerySessionsForSubscriptionResponse ¶ added in v0.6.0
type QuerySessionsForSubscriptionResponse struct { Sessions []Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySessionsForSubscriptionResponse) Descriptor ¶ added in v0.6.0
func (*QuerySessionsForSubscriptionResponse) Descriptor() ([]byte, []int)
func (*QuerySessionsForSubscriptionResponse) Marshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) Marshal() (dAtA []byte, err error)
func (*QuerySessionsForSubscriptionResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsForSubscriptionResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsForSubscriptionResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsForSubscriptionResponse) ProtoMessage()
func (*QuerySessionsForSubscriptionResponse) Reset ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) Reset()
func (*QuerySessionsForSubscriptionResponse) Size ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) Size() (n int)
func (*QuerySessionsForSubscriptionResponse) String ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) String() string
func (*QuerySessionsForSubscriptionResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) Unmarshal(dAtA []byte) error
func (*QuerySessionsForSubscriptionResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) XXX_DiscardUnknown()
func (*QuerySessionsForSubscriptionResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsForSubscriptionResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) XXX_Merge(src proto.Message)
func (*QuerySessionsForSubscriptionResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) XXX_Size() int
func (*QuerySessionsForSubscriptionResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsForSubscriptionResponse) XXX_Unmarshal(b []byte) error
type QuerySessionsRequest ¶ added in v0.6.0
type QuerySessionsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func NewQuerySessionsRequest ¶ added in v0.6.0
func NewQuerySessionsRequest(pagination *query.PageRequest) *QuerySessionsRequest
func (*QuerySessionsRequest) Descriptor ¶ added in v0.6.0
func (*QuerySessionsRequest) Descriptor() ([]byte, []int)
func (*QuerySessionsRequest) Marshal ¶ added in v0.6.0
func (m *QuerySessionsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySessionsRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsRequest) ProtoMessage()
func (*QuerySessionsRequest) Reset ¶ added in v0.6.0
func (m *QuerySessionsRequest) Reset()
func (*QuerySessionsRequest) Size ¶ added in v0.6.0
func (m *QuerySessionsRequest) Size() (n int)
func (*QuerySessionsRequest) String ¶ added in v0.6.0
func (m *QuerySessionsRequest) String() string
func (*QuerySessionsRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsRequest) Unmarshal(dAtA []byte) error
func (*QuerySessionsRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsRequest) XXX_DiscardUnknown()
func (*QuerySessionsRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsRequest) XXX_Merge(src proto.Message)
func (*QuerySessionsRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsRequest) XXX_Size() int
func (*QuerySessionsRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsRequest) XXX_Unmarshal(b []byte) error
type QuerySessionsResponse ¶ added in v0.6.0
type QuerySessionsResponse struct { Sessions []Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySessionsResponse) Descriptor ¶ added in v0.6.0
func (*QuerySessionsResponse) Descriptor() ([]byte, []int)
func (*QuerySessionsResponse) Marshal ¶ added in v0.6.0
func (m *QuerySessionsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySessionsResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySessionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySessionsResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySessionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySessionsResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySessionsResponse) ProtoMessage()
func (*QuerySessionsResponse) Reset ¶ added in v0.6.0
func (m *QuerySessionsResponse) Reset()
func (*QuerySessionsResponse) Size ¶ added in v0.6.0
func (m *QuerySessionsResponse) Size() (n int)
func (*QuerySessionsResponse) String ¶ added in v0.6.0
func (m *QuerySessionsResponse) String() string
func (*QuerySessionsResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsResponse) Unmarshal(dAtA []byte) error
func (*QuerySessionsResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySessionsResponse) XXX_DiscardUnknown()
func (*QuerySessionsResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySessionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySessionsResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySessionsResponse) XXX_Merge(src proto.Message)
func (*QuerySessionsResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySessionsResponse) XXX_Size() int
func (*QuerySessionsResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySessionsResponse) XXX_Unmarshal(b []byte) error
type Session ¶
type Session struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Subscription uint64 `protobuf:"varint,2,opt,name=subscription,proto3" json:"subscription,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` Duration time.Duration `protobuf:"bytes,5,opt,name=duration,proto3,stdduration" json:"duration"` Bandwidth types.Bandwidth `protobuf:"bytes,6,opt,name=bandwidth,proto3" json:"bandwidth"` Status types.Status `protobuf:"varint,7,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` StatusAt time.Time `protobuf:"bytes,8,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"` }
func (*Session) Descriptor ¶ added in v0.6.0
func (*Session) GetAddress ¶ added in v0.6.0
func (s *Session) GetAddress() sdk.AccAddress
func (*Session) GetNode ¶ added in v0.6.0
func (s *Session) GetNode() hubtypes.NodeAddress
func (*Session) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Session) ProtoMessage ¶ added in v0.6.0
func (*Session) ProtoMessage()
func (*Session) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶ added in v0.6.0
func (*Session) XXX_Unmarshal ¶ added in v0.6.0
type UnimplementedMsgServiceServer ¶ added in v0.6.0
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgEnd ¶ added in v0.6.1
func (*UnimplementedMsgServiceServer) MsgEnd(ctx context.Context, req *MsgEndRequest) (*MsgEndResponse, error)
func (*UnimplementedMsgServiceServer) MsgStart ¶ added in v0.6.1
func (*UnimplementedMsgServiceServer) MsgStart(ctx context.Context, req *MsgStartRequest) (*MsgStartResponse, error)
func (*UnimplementedMsgServiceServer) MsgUpdate ¶ added in v0.6.1
func (*UnimplementedMsgServiceServer) MsgUpdate(ctx context.Context, req *MsgUpdateRequest) (*MsgUpdateResponse, error)
type UnimplementedQueryServiceServer ¶ added in v0.6.0
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryParams ¶ added in v0.6.1
func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServiceServer) QuerySession ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySession(ctx context.Context, req *QuerySessionRequest) (*QuerySessionResponse, error)
func (*UnimplementedQueryServiceServer) QuerySessions ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySessions(ctx context.Context, req *QuerySessionsRequest) (*QuerySessionsResponse, error)
func (*UnimplementedQueryServiceServer) QuerySessionsForAddress ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySessionsForAddress(ctx context.Context, req *QuerySessionsForAddressRequest) (*QuerySessionsForAddressResponse, error)
func (*UnimplementedQueryServiceServer) QuerySessionsForNode ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySessionsForNode(ctx context.Context, req *QuerySessionsForNodeRequest) (*QuerySessionsForNodeResponse, error)
func (*UnimplementedQueryServiceServer) QuerySessionsForSubscription ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySessionsForSubscription(ctx context.Context, req *QuerySessionsForSubscriptionRequest) (*QuerySessionsForSubscriptionResponse, error)