Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActiveNodeKey(addr hubtypes.NodeAddress) []byte
- func AddressFromNodeForInactiveAtKey(key []byte) hubtypes.NodeAddress
- func AddressFromNodeForPlanKey(key []byte) hubtypes.NodeAddress
- func GetNodeForInactiveAtKeyPrefix(at time.Time) []byte
- func GetNodeForPlanKeyPrefix(id uint64) []byte
- func InactiveNodeKey(addr hubtypes.NodeAddress) []byte
- func NewErrorDuplicateNode(addr interface{}) error
- func NewErrorInvalidGigabytes(gigabytes int64) error
- func NewErrorInvalidHours(hours int64) error
- func NewErrorInvalidPrices(prices sdk.Coins) error
- func NewErrorNodeNotFound(addr interface{}) error
- func NodeForInactiveAtKey(at time.Time, addr hubtypes.NodeAddress) []byte
- func NodeForPlanKey(id uint64, addr hubtypes.NodeAddress) []byte
- func ParamsKeyTable() params.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- 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 ValidateGenesis(state *GenesisState) error
- type EventCreateSubscription
- func (*EventCreateSubscription) Descriptor() ([]byte, []int)
- func (m *EventCreateSubscription) Marshal() (dAtA []byte, err error)
- func (m *EventCreateSubscription) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateSubscription) ProtoMessage()
- func (m *EventCreateSubscription) Reset()
- func (m *EventCreateSubscription) Size() (n int)
- func (m *EventCreateSubscription) String() string
- func (m *EventCreateSubscription) Unmarshal(dAtA []byte) error
- func (m *EventCreateSubscription) XXX_DiscardUnknown()
- func (m *EventCreateSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateSubscription) XXX_Merge(src proto.Message)
- func (m *EventCreateSubscription) XXX_Size() int
- func (m *EventCreateSubscription) XXX_Unmarshal(b []byte) error
- type EventRegister
- func (*EventRegister) Descriptor() ([]byte, []int)
- func (m *EventRegister) Marshal() (dAtA []byte, err error)
- func (m *EventRegister) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRegister) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRegister) ProtoMessage()
- func (m *EventRegister) Reset()
- func (m *EventRegister) Size() (n int)
- func (m *EventRegister) String() string
- func (m *EventRegister) Unmarshal(dAtA []byte) error
- func (m *EventRegister) XXX_DiscardUnknown()
- func (m *EventRegister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRegister) XXX_Merge(src proto.Message)
- func (m *EventRegister) XXX_Size() int
- func (m *EventRegister) XXX_Unmarshal(b []byte) error
- type EventUpdateDetails
- func (*EventUpdateDetails) Descriptor() ([]byte, []int)
- func (m *EventUpdateDetails) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateDetails) ProtoMessage()
- func (m *EventUpdateDetails) Reset()
- func (m *EventUpdateDetails) Size() (n int)
- func (m *EventUpdateDetails) String() string
- func (m *EventUpdateDetails) Unmarshal(dAtA []byte) error
- func (m *EventUpdateDetails) XXX_DiscardUnknown()
- func (m *EventUpdateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateDetails) XXX_Merge(src proto.Message)
- func (m *EventUpdateDetails) XXX_Size() int
- func (m *EventUpdateDetails) XXX_Unmarshal(b []byte) error
- type EventUpdateStatus
- func (*EventUpdateStatus) Descriptor() ([]byte, []int)
- func (m *EventUpdateStatus) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateStatus) ProtoMessage()
- func (m *EventUpdateStatus) Reset()
- func (m *EventUpdateStatus) Size() (n int)
- func (m *EventUpdateStatus) String() string
- func (m *EventUpdateStatus) Unmarshal(dAtA []byte) error
- func (m *EventUpdateStatus) XXX_DiscardUnknown()
- func (m *EventUpdateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateStatus) XXX_Merge(src proto.Message)
- func (m *EventUpdateStatus) XXX_Size() int
- func (m *EventUpdateStatus) 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 MsgRegisterRequest
- func (*MsgRegisterRequest) Descriptor() ([]byte, []int)
- func (m *MsgRegisterRequest) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterRequest) ProtoMessage()
- func (m *MsgRegisterRequest) Reset()
- func (m *MsgRegisterRequest) Size() (n int)
- func (m *MsgRegisterRequest) String() string
- func (m *MsgRegisterRequest) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterRequest) ValidateBasic() error
- func (m *MsgRegisterRequest) XXX_DiscardUnknown()
- func (m *MsgRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterRequest) XXX_Merge(src proto.Message)
- func (m *MsgRegisterRequest) XXX_Size() int
- func (m *MsgRegisterRequest) XXX_Unmarshal(b []byte) error
- type MsgRegisterResponse
- func (*MsgRegisterResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterResponse) ProtoMessage()
- func (m *MsgRegisterResponse) Reset()
- func (m *MsgRegisterResponse) Size() (n int)
- func (m *MsgRegisterResponse) String() string
- func (m *MsgRegisterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterResponse) XXX_Size() int
- func (m *MsgRegisterResponse) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type MsgSubscribeRequest
- func (*MsgSubscribeRequest) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeRequest) ProtoMessage()
- func (m *MsgSubscribeRequest) Reset()
- func (m *MsgSubscribeRequest) Size() (n int)
- func (m *MsgSubscribeRequest) String() string
- func (m *MsgSubscribeRequest) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeRequest) ValidateBasic() error
- func (m *MsgSubscribeRequest) XXX_DiscardUnknown()
- func (m *MsgSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeRequest) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeRequest) XXX_Size() int
- func (m *MsgSubscribeRequest) XXX_Unmarshal(b []byte) error
- type MsgSubscribeResponse
- func (*MsgSubscribeResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeResponse) ProtoMessage()
- func (m *MsgSubscribeResponse) Reset()
- func (m *MsgSubscribeResponse) Size() (n int)
- func (m *MsgSubscribeResponse) String() string
- func (m *MsgSubscribeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeResponse) XXX_DiscardUnknown()
- func (m *MsgSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeResponse) XXX_Size() int
- func (m *MsgSubscribeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateDetailsRequest
- func (*MsgUpdateDetailsRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDetailsRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateDetailsRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDetailsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDetailsRequest) ProtoMessage()
- func (m *MsgUpdateDetailsRequest) Reset()
- func (m *MsgUpdateDetailsRequest) Size() (n int)
- func (m *MsgUpdateDetailsRequest) String() string
- func (m *MsgUpdateDetailsRequest) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDetailsRequest) ValidateBasic() error
- func (m *MsgUpdateDetailsRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDetailsRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDetailsRequest) XXX_Size() int
- func (m *MsgUpdateDetailsRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateDetailsResponse
- func (*MsgUpdateDetailsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDetailsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDetailsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDetailsResponse) ProtoMessage()
- func (m *MsgUpdateDetailsResponse) Reset()
- func (m *MsgUpdateDetailsResponse) Size() (n int)
- func (m *MsgUpdateDetailsResponse) String() string
- func (m *MsgUpdateDetailsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDetailsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDetailsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDetailsResponse) XXX_Size() int
- func (m *MsgUpdateDetailsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateStatusRequest
- func (*MsgUpdateStatusRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateStatusRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateStatusRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateStatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateStatusRequest) ProtoMessage()
- func (m *MsgUpdateStatusRequest) Reset()
- func (m *MsgUpdateStatusRequest) Size() (n int)
- func (m *MsgUpdateStatusRequest) String() string
- func (m *MsgUpdateStatusRequest) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateStatusRequest) ValidateBasic() error
- func (m *MsgUpdateStatusRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateStatusRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateStatusRequest) XXX_Size() int
- func (m *MsgUpdateStatusRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateStatusResponse
- func (*MsgUpdateStatusResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateStatusResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateStatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateStatusResponse) ProtoMessage()
- func (m *MsgUpdateStatusResponse) Reset()
- func (m *MsgUpdateStatusResponse) Size() (n int)
- func (m *MsgUpdateStatusResponse) String() string
- func (m *MsgUpdateStatusResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateStatusResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateStatusResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateStatusResponse) XXX_Size() int
- func (m *MsgUpdateStatusResponse) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAddress() hubtypes.NodeAddress
- func (m *Node) GigabytePrice(denom string) (sdk.Coin, bool)
- func (m *Node) HourlyPrice(denom string) (sdk.Coin, bool)
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) Validate() error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Nodes
- 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 (m *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 (m *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 QueryNodeRequest
- func (*QueryNodeRequest) Descriptor() ([]byte, []int)
- func (m *QueryNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodeRequest) ProtoMessage()
- func (m *QueryNodeRequest) Reset()
- func (m *QueryNodeRequest) Size() (n int)
- func (m *QueryNodeRequest) String() string
- func (m *QueryNodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNodeRequest) XXX_DiscardUnknown()
- func (m *QueryNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryNodeRequest) XXX_Size() int
- func (m *QueryNodeRequest) XXX_Unmarshal(b []byte) error
- type QueryNodeResponse
- func (*QueryNodeResponse) Descriptor() ([]byte, []int)
- func (m *QueryNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodeResponse) ProtoMessage()
- func (m *QueryNodeResponse) Reset()
- func (m *QueryNodeResponse) Size() (n int)
- func (m *QueryNodeResponse) String() string
- func (m *QueryNodeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNodeResponse) XXX_DiscardUnknown()
- func (m *QueryNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodeResponse) XXX_Merge(src proto.Message)
- func (m *QueryNodeResponse) XXX_Size() int
- func (m *QueryNodeResponse) XXX_Unmarshal(b []byte) error
- type QueryNodesForPlanRequest
- func (*QueryNodesForPlanRequest) Descriptor() ([]byte, []int)
- func (m *QueryNodesForPlanRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesForPlanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesForPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesForPlanRequest) ProtoMessage()
- func (m *QueryNodesForPlanRequest) Reset()
- func (m *QueryNodesForPlanRequest) Size() (n int)
- func (m *QueryNodesForPlanRequest) String() string
- func (m *QueryNodesForPlanRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNodesForPlanRequest) XXX_DiscardUnknown()
- func (m *QueryNodesForPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesForPlanRequest) XXX_Merge(src proto.Message)
- func (m *QueryNodesForPlanRequest) XXX_Size() int
- func (m *QueryNodesForPlanRequest) XXX_Unmarshal(b []byte) error
- type QueryNodesForPlanResponse
- func (*QueryNodesForPlanResponse) Descriptor() ([]byte, []int)
- func (m *QueryNodesForPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesForPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesForPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesForPlanResponse) ProtoMessage()
- func (m *QueryNodesForPlanResponse) Reset()
- func (m *QueryNodesForPlanResponse) Size() (n int)
- func (m *QueryNodesForPlanResponse) String() string
- func (m *QueryNodesForPlanResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNodesForPlanResponse) XXX_DiscardUnknown()
- func (m *QueryNodesForPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesForPlanResponse) XXX_Merge(src proto.Message)
- func (m *QueryNodesForPlanResponse) XXX_Size() int
- func (m *QueryNodesForPlanResponse) XXX_Unmarshal(b []byte) error
- type QueryNodesRequest
- func (*QueryNodesRequest) Descriptor() ([]byte, []int)
- func (m *QueryNodesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesRequest) ProtoMessage()
- func (m *QueryNodesRequest) Reset()
- func (m *QueryNodesRequest) Size() (n int)
- func (m *QueryNodesRequest) String() string
- func (m *QueryNodesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNodesRequest) XXX_DiscardUnknown()
- func (m *QueryNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesRequest) XXX_Merge(src proto.Message)
- func (m *QueryNodesRequest) XXX_Size() int
- func (m *QueryNodesRequest) XXX_Unmarshal(b []byte) error
- type QueryNodesResponse
- func (*QueryNodesResponse) Descriptor() ([]byte, []int)
- func (m *QueryNodesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNodesResponse) ProtoMessage()
- func (m *QueryNodesResponse) Reset()
- func (m *QueryNodesResponse) Size() (n int)
- func (m *QueryNodesResponse) String() string
- func (m *QueryNodesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNodesResponse) XXX_DiscardUnknown()
- func (m *QueryNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNodesResponse) XXX_Merge(src proto.Message)
- func (m *QueryNodesResponse) XXX_Size() int
- func (m *QueryNodesResponse) 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 UnimplementedMsgServiceServer
- func (*UnimplementedMsgServiceServer) MsgRegister(ctx context.Context, req *MsgRegisterRequest) (*MsgRegisterResponse, error)
- func (*UnimplementedMsgServiceServer) MsgSubscribe(ctx context.Context, req *MsgSubscribeRequest) (*MsgSubscribeResponse, error)
- func (*UnimplementedMsgServiceServer) MsgUpdateDetails(ctx context.Context, req *MsgUpdateDetailsRequest) (*MsgUpdateDetailsResponse, error)
- func (*UnimplementedMsgServiceServer) MsgUpdateStatus(ctx context.Context, req *MsgUpdateStatusRequest) (*MsgUpdateStatusResponse, error)
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryNode(ctx context.Context, req *QueryNodeRequest) (*QueryNodeResponse, error)
- func (*UnimplementedQueryServiceServer) QueryNodes(ctx context.Context, req *QueryNodesRequest) (*QueryNodesResponse, error)
- func (*UnimplementedQueryServiceServer) QueryNodesForPlan(ctx context.Context, req *QueryNodesForPlanRequest) (*QueryNodesForPlanResponse, error)
- func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const (
ModuleName = "node"
)
Variables ¶
var ( ErrorInvalidMessage = errors.Register(ModuleName, 101, "invalid message") ErrorDuplicateNode = errors.Register(ModuleName, 201, "duplicate node") ErrorInvalidGigabytes = errors.Register(ModuleName, 202, "invalid gigabytes") ErrorInvalidHours = errors.Register(ModuleName, 203, "invalid hours") ErrorInvalidPrices = errors.Register(ModuleName, 204, "invalid prices") ErrorNodeNotFound = errors.Register(ModuleName, 205, "node not found") )
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 ( NodeKeyPrefix = []byte{0x10} ActiveNodeKeyPrefix = append(NodeKeyPrefix, 0x01) InactiveNodeKeyPrefix = append(NodeKeyPrefix, 0x02) NodeForInactiveAtKeyPrefix = []byte{0x11} NodeForPlanKeyPrefix = []byte{0x12} )
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 ( ErrInvalidLengthNode = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNode = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultDeposit = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(10)) DefaultActiveDuration = 30 * time.Second DefaultMaxGigabytePrices = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))) DefaultMinGigabytePrices = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1))) DefaultMaxHourlyPrices = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))) DefaultMinHourlyPrices = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1))) DefaultMaxSubscriptionGigabytes int64 = 10 DefaultMinSubscriptionGigabytes int64 = 1 DefaultMaxSubscriptionHours int64 = 10 DefaultMinSubscriptionHours int64 = 1 )
var ( KeyDeposit = []byte("Deposit") KeyActiveDuration = []byte("ActiveDuration") KeyMaxGigabytePrices = []byte("MaxGigabytePrices") KeyMinGigabytePrices = []byte("MinGigabytePrices") KeyMaxHourlyPrices = []byte("MaxHourlyPrices") KeyMinHourlyPrices = []byte("MinHourlyPrices") KeyMaxSubscriptionGigabytes = []byte("MaxSubscriptionGigabytes") KeyMinSubscriptionGigabytes = []byte("MinSubscriptionGigabytes") KeyMaxSubscriptionHours = []byte("MaxSubscriptionHours") KeyMinSubscriptionHours = []byte("MinSubscriptionHours") )
Functions ¶
func ActiveNodeKey ¶ added in v0.4.0
func ActiveNodeKey(addr hubtypes.NodeAddress) []byte
func AddressFromNodeForInactiveAtKey ¶ added in v0.11.0
func AddressFromNodeForInactiveAtKey(key []byte) hubtypes.NodeAddress
func AddressFromNodeForPlanKey ¶ added in v0.11.0
func AddressFromNodeForPlanKey(key []byte) hubtypes.NodeAddress
func GetNodeForInactiveAtKeyPrefix ¶ added in v0.11.0
func GetNodeForPlanKeyPrefix ¶ added in v0.11.0
func InactiveNodeKey ¶ added in v0.4.0
func InactiveNodeKey(addr hubtypes.NodeAddress) []byte
func NewErrorDuplicateNode ¶ added in v0.11.0
func NewErrorDuplicateNode(addr interface{}) error
func NewErrorInvalidGigabytes ¶ added in v0.11.0
func NewErrorInvalidHours ¶ added in v0.11.0
func NewErrorInvalidPrices ¶ added in v0.11.0
func NewErrorNodeNotFound ¶ added in v0.11.0
func NewErrorNodeNotFound(addr interface{}) error
func NodeForInactiveAtKey ¶ added in v0.11.0
func NodeForInactiveAtKey(at time.Time, addr hubtypes.NodeAddress) []byte
func NodeForPlanKey ¶ added in v0.11.0
func NodeForPlanKey(id uint64, addr hubtypes.NodeAddress) []byte
func ParamsKeyTable ¶
func RegisterInterfaces ¶ added in v0.6.0
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
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 ValidateGenesis ¶ added in v0.6.0
func ValidateGenesis(state *GenesisState) error
Types ¶
type EventCreateSubscription ¶ added in v0.11.0
type EventCreateSubscription struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty" yaml:"node_address"` ID uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` }
func (*EventCreateSubscription) Descriptor ¶ added in v0.11.0
func (*EventCreateSubscription) Descriptor() ([]byte, []int)
func (*EventCreateSubscription) Marshal ¶ added in v0.11.0
func (m *EventCreateSubscription) Marshal() (dAtA []byte, err error)
func (*EventCreateSubscription) MarshalTo ¶ added in v0.11.0
func (m *EventCreateSubscription) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateSubscription) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *EventCreateSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateSubscription) ProtoMessage ¶ added in v0.11.0
func (*EventCreateSubscription) ProtoMessage()
func (*EventCreateSubscription) Reset ¶ added in v0.11.0
func (m *EventCreateSubscription) Reset()
func (*EventCreateSubscription) Size ¶ added in v0.11.0
func (m *EventCreateSubscription) Size() (n int)
func (*EventCreateSubscription) String ¶ added in v0.11.0
func (m *EventCreateSubscription) String() string
func (*EventCreateSubscription) Unmarshal ¶ added in v0.11.0
func (m *EventCreateSubscription) Unmarshal(dAtA []byte) error
func (*EventCreateSubscription) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *EventCreateSubscription) XXX_DiscardUnknown()
func (*EventCreateSubscription) XXX_Marshal ¶ added in v0.11.0
func (m *EventCreateSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateSubscription) XXX_Merge ¶ added in v0.11.0
func (m *EventCreateSubscription) XXX_Merge(src proto.Message)
func (*EventCreateSubscription) XXX_Size ¶ added in v0.11.0
func (m *EventCreateSubscription) XXX_Size() int
func (*EventCreateSubscription) XXX_Unmarshal ¶ added in v0.11.0
func (m *EventCreateSubscription) XXX_Unmarshal(b []byte) error
type EventRegister ¶ added in v0.8.0
type EventRegister struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*EventRegister) Descriptor ¶ added in v0.8.0
func (*EventRegister) Descriptor() ([]byte, []int)
func (*EventRegister) Marshal ¶ added in v0.8.0
func (m *EventRegister) Marshal() (dAtA []byte, err error)
func (*EventRegister) MarshalTo ¶ added in v0.8.0
func (m *EventRegister) MarshalTo(dAtA []byte) (int, error)
func (*EventRegister) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *EventRegister) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRegister) ProtoMessage ¶ added in v0.8.0
func (*EventRegister) ProtoMessage()
func (*EventRegister) Reset ¶ added in v0.8.0
func (m *EventRegister) Reset()
func (*EventRegister) Size ¶ added in v0.8.0
func (m *EventRegister) Size() (n int)
func (*EventRegister) String ¶ added in v0.8.0
func (m *EventRegister) String() string
func (*EventRegister) Unmarshal ¶ added in v0.8.0
func (m *EventRegister) Unmarshal(dAtA []byte) error
func (*EventRegister) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *EventRegister) XXX_DiscardUnknown()
func (*EventRegister) XXX_Marshal ¶ added in v0.8.0
func (m *EventRegister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRegister) XXX_Merge ¶ added in v0.8.0
func (m *EventRegister) XXX_Merge(src proto.Message)
func (*EventRegister) XXX_Size ¶ added in v0.8.0
func (m *EventRegister) XXX_Size() int
func (*EventRegister) XXX_Unmarshal ¶ added in v0.8.0
func (m *EventRegister) XXX_Unmarshal(b []byte) error
type EventUpdateDetails ¶ added in v0.11.0
type EventUpdateDetails struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` GigabytePrices string `` /* 126-byte string literal not displayed */ HourlyPrices string `protobuf:"bytes,3,opt,name=hourly_prices,json=hourlyPrices,proto3" json:"hourly_prices,omitempty" yaml:"hourly_prices"` RemoteURL string `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` }
func (*EventUpdateDetails) Descriptor ¶ added in v0.11.0
func (*EventUpdateDetails) Descriptor() ([]byte, []int)
func (*EventUpdateDetails) Marshal ¶ added in v0.11.0
func (m *EventUpdateDetails) Marshal() (dAtA []byte, err error)
func (*EventUpdateDetails) MarshalTo ¶ added in v0.11.0
func (m *EventUpdateDetails) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateDetails) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *EventUpdateDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateDetails) ProtoMessage ¶ added in v0.11.0
func (*EventUpdateDetails) ProtoMessage()
func (*EventUpdateDetails) Reset ¶ added in v0.11.0
func (m *EventUpdateDetails) Reset()
func (*EventUpdateDetails) Size ¶ added in v0.11.0
func (m *EventUpdateDetails) Size() (n int)
func (*EventUpdateDetails) String ¶ added in v0.11.0
func (m *EventUpdateDetails) String() string
func (*EventUpdateDetails) Unmarshal ¶ added in v0.11.0
func (m *EventUpdateDetails) Unmarshal(dAtA []byte) error
func (*EventUpdateDetails) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *EventUpdateDetails) XXX_DiscardUnknown()
func (*EventUpdateDetails) XXX_Marshal ¶ added in v0.11.0
func (m *EventUpdateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateDetails) XXX_Merge ¶ added in v0.11.0
func (m *EventUpdateDetails) XXX_Merge(src proto.Message)
func (*EventUpdateDetails) XXX_Size ¶ added in v0.11.0
func (m *EventUpdateDetails) XXX_Size() int
func (*EventUpdateDetails) XXX_Unmarshal ¶ added in v0.11.0
func (m *EventUpdateDetails) XXX_Unmarshal(b []byte) error
type EventUpdateStatus ¶ added in v0.11.0
type EventUpdateStatus struct { Status types.Status `protobuf:"varint,1,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty" yaml:"status"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` }
func (*EventUpdateStatus) Descriptor ¶ added in v0.11.0
func (*EventUpdateStatus) Descriptor() ([]byte, []int)
func (*EventUpdateStatus) Marshal ¶ added in v0.11.0
func (m *EventUpdateStatus) Marshal() (dAtA []byte, err error)
func (*EventUpdateStatus) MarshalTo ¶ added in v0.11.0
func (m *EventUpdateStatus) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateStatus) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *EventUpdateStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateStatus) ProtoMessage ¶ added in v0.11.0
func (*EventUpdateStatus) ProtoMessage()
func (*EventUpdateStatus) Reset ¶ added in v0.11.0
func (m *EventUpdateStatus) Reset()
func (*EventUpdateStatus) Size ¶ added in v0.11.0
func (m *EventUpdateStatus) Size() (n int)
func (*EventUpdateStatus) String ¶ added in v0.11.0
func (m *EventUpdateStatus) String() string
func (*EventUpdateStatus) Unmarshal ¶ added in v0.11.0
func (m *EventUpdateStatus) Unmarshal(dAtA []byte) error
func (*EventUpdateStatus) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *EventUpdateStatus) XXX_DiscardUnknown()
func (*EventUpdateStatus) XXX_Marshal ¶ added in v0.11.0
func (m *EventUpdateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateStatus) XXX_Merge ¶ added in v0.11.0
func (m *EventUpdateStatus) XXX_Merge(src proto.Message)
func (*EventUpdateStatus) XXX_Size ¶ added in v0.11.0
func (m *EventUpdateStatus) XXX_Size() int
func (*EventUpdateStatus) XXX_Unmarshal ¶ added in v0.11.0
func (m *EventUpdateStatus) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Nodes []Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(nodes Nodes, 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 MsgRegisterRequest ¶ added in v0.6.0
type MsgRegisterRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` GigabytePrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */ HourlyPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ RemoteURL string `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` }
MsgRegisterRequest defines the SDK message for registering a node
func NewMsgRegisterRequest ¶ added in v0.6.0
func NewMsgRegisterRequest(from sdk.AccAddress, gigabytePrices, hourlyPrices sdk.Coins, remoteURL string) *MsgRegisterRequest
NewMsgRegisterRequest creates a new MsgRegisterRequest instance with the given parameters.
func (*MsgRegisterRequest) Descriptor ¶ added in v0.6.0
func (*MsgRegisterRequest) Descriptor() ([]byte, []int)
func (*MsgRegisterRequest) GetSigners ¶ added in v0.6.0
func (m *MsgRegisterRequest) GetSigners() []sdk.AccAddress
GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgRegisterRequest.
func (*MsgRegisterRequest) Marshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) Marshal() (dAtA []byte, err error)
func (*MsgRegisterRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgRegisterRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgRegisterRequest) ProtoMessage()
func (*MsgRegisterRequest) Reset ¶ added in v0.6.0
func (m *MsgRegisterRequest) Reset()
func (*MsgRegisterRequest) Size ¶ added in v0.6.0
func (m *MsgRegisterRequest) Size() (n int)
func (*MsgRegisterRequest) String ¶ added in v0.6.0
func (m *MsgRegisterRequest) String() string
func (*MsgRegisterRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) Unmarshal(dAtA []byte) error
func (*MsgRegisterRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgRegisterRequest) ValidateBasic() error
ValidateBasic performs basic validation checks on the MsgRegisterRequest fields. It checks if the 'From' field is not empty and represents a valid account address, if the 'GigabytePrices' and 'HourlyPrices' fields are valid coins (not empty, not containing nil coins, and having valid coin denominations), and if the 'RemoteURL' field is valid (not empty, not longer than 64 characters, and has a valid "https" scheme and non-empty port).
func (*MsgRegisterRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_DiscardUnknown()
func (*MsgRegisterRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Merge(src proto.Message)
func (*MsgRegisterRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Size() int
func (*MsgRegisterRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterRequest) XXX_Unmarshal(b []byte) error
type MsgRegisterResponse ¶ added in v0.6.0
type MsgRegisterResponse struct { }
MsgRegisterResponse defines the response of message MsgRegisterRequest
func (*MsgRegisterResponse) Descriptor ¶ added in v0.6.0
func (*MsgRegisterResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterResponse) Marshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgRegisterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgRegisterResponse) ProtoMessage()
func (*MsgRegisterResponse) Reset ¶ added in v0.6.0
func (m *MsgRegisterResponse) Reset()
func (*MsgRegisterResponse) Size ¶ added in v0.6.0
func (m *MsgRegisterResponse) Size() (n int)
func (*MsgRegisterResponse) String ¶ added in v0.6.0
func (m *MsgRegisterResponse) String() string
func (*MsgRegisterResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_DiscardUnknown()
func (*MsgRegisterResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Size() int
func (*MsgRegisterResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgRegisterResponse) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶ added in v0.6.0
type MsgServiceClient interface { MsgRegister(ctx context.Context, in *MsgRegisterRequest, opts ...grpc.CallOption) (*MsgRegisterResponse, error) MsgUpdateDetails(ctx context.Context, in *MsgUpdateDetailsRequest, opts ...grpc.CallOption) (*MsgUpdateDetailsResponse, error) MsgUpdateStatus(ctx context.Context, in *MsgUpdateStatusRequest, opts ...grpc.CallOption) (*MsgUpdateStatusResponse, error) MsgSubscribe(ctx context.Context, in *MsgSubscribeRequest, opts ...grpc.CallOption) (*MsgSubscribeResponse, 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 { MsgRegister(context.Context, *MsgRegisterRequest) (*MsgRegisterResponse, error) MsgUpdateDetails(context.Context, *MsgUpdateDetailsRequest) (*MsgUpdateDetailsResponse, error) MsgUpdateStatus(context.Context, *MsgUpdateStatusRequest) (*MsgUpdateStatusResponse, error) MsgSubscribe(context.Context, *MsgSubscribeRequest) (*MsgSubscribeResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgSubscribeRequest ¶ added in v0.11.0
type MsgSubscribeRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` Gigabytes int64 `protobuf:"varint,3,opt,name=gigabytes,proto3" json:"gigabytes,omitempty"` Hours int64 `protobuf:"varint,4,opt,name=hours,proto3" json:"hours,omitempty"` Denom string `protobuf:"bytes,5,opt,name=denom,proto3" json:"denom,omitempty"` }
MsgSubscribeRequest defines the SDK message for subscribe to a node
func NewMsgSubscribeRequest ¶ added in v0.11.0
func NewMsgSubscribeRequest(from sdk.AccAddress, addr hubtypes.NodeAddress, gigabytes, hours int64, denom string) *MsgSubscribeRequest
NewMsgSubscribeRequest creates a new MsgSubscribeRequest instance with the given parameters.
func (*MsgSubscribeRequest) Descriptor ¶ added in v0.11.0
func (*MsgSubscribeRequest) Descriptor() ([]byte, []int)
func (*MsgSubscribeRequest) GetSigners ¶ added in v0.11.0
func (m *MsgSubscribeRequest) GetSigners() []sdk.AccAddress
GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgSubscribeRequest.
func (*MsgSubscribeRequest) Marshal ¶ added in v0.11.0
func (m *MsgSubscribeRequest) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeRequest) MarshalTo ¶ added in v0.11.0
func (m *MsgSubscribeRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeRequest) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeRequest) ProtoMessage ¶ added in v0.11.0
func (*MsgSubscribeRequest) ProtoMessage()
func (*MsgSubscribeRequest) Reset ¶ added in v0.11.0
func (m *MsgSubscribeRequest) Reset()
func (*MsgSubscribeRequest) Size ¶ added in v0.11.0
func (m *MsgSubscribeRequest) Size() (n int)
func (*MsgSubscribeRequest) String ¶ added in v0.11.0
func (m *MsgSubscribeRequest) String() string
func (*MsgSubscribeRequest) Unmarshal ¶ added in v0.11.0
func (m *MsgSubscribeRequest) Unmarshal(dAtA []byte) error
func (*MsgSubscribeRequest) ValidateBasic ¶ added in v0.11.0
func (m *MsgSubscribeRequest) ValidateBasic() error
ValidateBasic performs basic validation checks on the MsgSubscribeRequest fields. It checks if the 'From' field is not empty and represents a valid account address, if the 'NodeAddress' field is not empty and represents a valid node address, if either 'Gigabytes' or 'Hours' field (but not both) are non-zero and non-negative, and if the 'Denom' field is valid according to the Cosmos SDK's ValidateDenom function.
func (*MsgSubscribeRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgSubscribeRequest) XXX_DiscardUnknown()
func (*MsgSubscribeRequest) XXX_Marshal ¶ added in v0.11.0
func (m *MsgSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeRequest) XXX_Merge ¶ added in v0.11.0
func (m *MsgSubscribeRequest) XXX_Merge(src proto.Message)
func (*MsgSubscribeRequest) XXX_Size ¶ added in v0.11.0
func (m *MsgSubscribeRequest) XXX_Size() int
func (*MsgSubscribeRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgSubscribeRequest) XXX_Unmarshal(b []byte) error
type MsgSubscribeResponse ¶ added in v0.11.0
type MsgSubscribeResponse struct { }
MsgSubscribeResponse defines the response of message MsgSubscribeRequest
func (*MsgSubscribeResponse) Descriptor ¶ added in v0.11.0
func (*MsgSubscribeResponse) Descriptor() ([]byte, []int)
func (*MsgSubscribeResponse) Marshal ¶ added in v0.11.0
func (m *MsgSubscribeResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeResponse) MarshalTo ¶ added in v0.11.0
func (m *MsgSubscribeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeResponse) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeResponse) ProtoMessage ¶ added in v0.11.0
func (*MsgSubscribeResponse) ProtoMessage()
func (*MsgSubscribeResponse) Reset ¶ added in v0.11.0
func (m *MsgSubscribeResponse) Reset()
func (*MsgSubscribeResponse) Size ¶ added in v0.11.0
func (m *MsgSubscribeResponse) Size() (n int)
func (*MsgSubscribeResponse) String ¶ added in v0.11.0
func (m *MsgSubscribeResponse) String() string
func (*MsgSubscribeResponse) Unmarshal ¶ added in v0.11.0
func (m *MsgSubscribeResponse) Unmarshal(dAtA []byte) error
func (*MsgSubscribeResponse) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgSubscribeResponse) XXX_DiscardUnknown()
func (*MsgSubscribeResponse) XXX_Marshal ¶ added in v0.11.0
func (m *MsgSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeResponse) XXX_Merge ¶ added in v0.11.0
func (m *MsgSubscribeResponse) XXX_Merge(src proto.Message)
func (*MsgSubscribeResponse) XXX_Size ¶ added in v0.11.0
func (m *MsgSubscribeResponse) XXX_Size() int
func (*MsgSubscribeResponse) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgSubscribeResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateDetailsRequest ¶ added in v0.11.0
type MsgUpdateDetailsRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` GigabytePrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */ HourlyPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ RemoteURL string `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` }
MsgUpdateDetailsRequest defines the SDK message for updating the node details
func NewMsgUpdateDetailsRequest ¶ added in v0.11.0
func NewMsgUpdateDetailsRequest(from hubtypes.NodeAddress, gigabytePrices, hourlyPrices sdk.Coins, remoteURL string) *MsgUpdateDetailsRequest
NewMsgUpdateDetailsRequest creates a new MsgUpdateDetailsRequest instance with the given parameters.
func (*MsgUpdateDetailsRequest) Descriptor ¶ added in v0.11.0
func (*MsgUpdateDetailsRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateDetailsRequest) GetSigners ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) GetSigners() []sdk.AccAddress
GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgUpdateDetailsRequest.
func (*MsgUpdateDetailsRequest) Marshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDetailsRequest) MarshalTo ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDetailsRequest) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDetailsRequest) ProtoMessage ¶ added in v0.11.0
func (*MsgUpdateDetailsRequest) ProtoMessage()
func (*MsgUpdateDetailsRequest) Reset ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) Reset()
func (*MsgUpdateDetailsRequest) Size ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) Size() (n int)
func (*MsgUpdateDetailsRequest) String ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) String() string
func (*MsgUpdateDetailsRequest) Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateDetailsRequest) ValidateBasic ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) ValidateBasic() error
ValidateBasic performs basic validation checks on the MsgUpdateDetailsRequest fields. It checks if the 'From' field is not empty and represents a valid node address, if the 'GigabytePrices' and 'HourlyPrices' fields are valid coins (not empty, not containing nil coins, and having valid coin denominations), and if the 'RemoteURL' field is valid (not empty, not longer than 64 characters, and has a valid "https" scheme and non-empty port).
func (*MsgUpdateDetailsRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) XXX_DiscardUnknown()
func (*MsgUpdateDetailsRequest) XXX_Marshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDetailsRequest) XXX_Merge ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateDetailsRequest) XXX_Size ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) XXX_Size() int
func (*MsgUpdateDetailsRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateDetailsResponse ¶ added in v0.11.0
type MsgUpdateDetailsResponse struct { }
MsgUpdateDetailsResponse defines the response of message MsgUpdateDetailsRequest
func (*MsgUpdateDetailsResponse) Descriptor ¶ added in v0.11.0
func (*MsgUpdateDetailsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateDetailsResponse) Marshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDetailsResponse) MarshalTo ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDetailsResponse) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDetailsResponse) ProtoMessage ¶ added in v0.11.0
func (*MsgUpdateDetailsResponse) ProtoMessage()
func (*MsgUpdateDetailsResponse) Reset ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) Reset()
func (*MsgUpdateDetailsResponse) Size ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) Size() (n int)
func (*MsgUpdateDetailsResponse) String ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) String() string
func (*MsgUpdateDetailsResponse) Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateDetailsResponse) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) XXX_DiscardUnknown()
func (*MsgUpdateDetailsResponse) XXX_Marshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDetailsResponse) XXX_Merge ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateDetailsResponse) XXX_Size ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) XXX_Size() int
func (*MsgUpdateDetailsResponse) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateDetailsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateStatusRequest ¶ added in v0.11.0
type MsgUpdateStatusRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Status types1.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` }
MsgUpdateStatusRequest defines the SDK message for updating the node status
func NewMsgUpdateStatusRequest ¶ added in v0.11.0
func NewMsgUpdateStatusRequest(from hubtypes.NodeAddress, status hubtypes.Status) *MsgUpdateStatusRequest
NewMsgUpdateStatusRequest creates a new MsgUpdateStatusRequest instance with the given parameters.
func (*MsgUpdateStatusRequest) Descriptor ¶ added in v0.11.0
func (*MsgUpdateStatusRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateStatusRequest) GetSigners ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) GetSigners() []sdk.AccAddress
GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgUpdateStatusRequest.
func (*MsgUpdateStatusRequest) Marshal ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateStatusRequest) MarshalTo ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateStatusRequest) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateStatusRequest) ProtoMessage ¶ added in v0.11.0
func (*MsgUpdateStatusRequest) ProtoMessage()
func (*MsgUpdateStatusRequest) Reset ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) Reset()
func (*MsgUpdateStatusRequest) Size ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) Size() (n int)
func (*MsgUpdateStatusRequest) String ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) String() string
func (*MsgUpdateStatusRequest) Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateStatusRequest) ValidateBasic ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) ValidateBasic() error
ValidateBasic performs basic validation checks on the MsgUpdateStatusRequest fields. It checks if the 'From' field is not empty and represents a valid node address, and if the 'Status' field is one of the allowed values [active, inactive].
func (*MsgUpdateStatusRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) XXX_DiscardUnknown()
func (*MsgUpdateStatusRequest) XXX_Marshal ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateStatusRequest) XXX_Merge ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateStatusRequest) XXX_Size ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) XXX_Size() int
func (*MsgUpdateStatusRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateStatusRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateStatusResponse ¶ added in v0.11.0
type MsgUpdateStatusResponse struct { }
MsgUpdateStatusResponse defines the response of message MsgUpdateStatusRequest
func (*MsgUpdateStatusResponse) Descriptor ¶ added in v0.11.0
func (*MsgUpdateStatusResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateStatusResponse) Marshal ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateStatusResponse) MarshalTo ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateStatusResponse) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateStatusResponse) ProtoMessage ¶ added in v0.11.0
func (*MsgUpdateStatusResponse) ProtoMessage()
func (*MsgUpdateStatusResponse) Reset ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) Reset()
func (*MsgUpdateStatusResponse) Size ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) Size() (n int)
func (*MsgUpdateStatusResponse) String ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) String() string
func (*MsgUpdateStatusResponse) Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateStatusResponse) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) XXX_DiscardUnknown()
func (*MsgUpdateStatusResponse) XXX_Marshal ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateStatusResponse) XXX_Merge ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateStatusResponse) XXX_Size ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) XXX_Size() int
func (*MsgUpdateStatusResponse) XXX_Unmarshal ¶ added in v0.11.0
func (m *MsgUpdateStatusResponse) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` GigabytePrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */ HourlyPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ RemoteURL string `protobuf:"bytes,4,opt,name=remote_url,json=remoteUrl,proto3" json:"remote_url,omitempty"` InactiveAt time.Time `protobuf:"bytes,5,opt,name=inactive_at,json=inactiveAt,proto3,stdtime" json:"inactive_at"` Status types1.Status `protobuf:"varint,6,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` StatusAt time.Time `protobuf:"bytes,7,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"` }
func (*Node) Descriptor ¶ added in v0.6.0
func (*Node) GetAddress ¶ added in v0.6.0
func (m *Node) GetAddress() hubtypes.NodeAddress
func (*Node) GigabytePrice ¶ added in v0.11.0
func (*Node) HourlyPrice ¶ added in v0.11.0
func (*Node) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Node) ProtoMessage ¶ added in v0.6.0
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Marshal ¶ added in v0.6.0
func (*Node) XXX_Unmarshal ¶ added in v0.6.0
type Params ¶
type Params struct { Deposit types.Coin `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"` ActiveDuration time.Duration `protobuf:"bytes,2,opt,name=active_duration,json=activeDuration,proto3,stdduration" json:"active_duration"` MaxGigabytePrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ MinGigabytePrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ MaxHourlyPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 152-byte string literal not displayed */ MinHourlyPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 152-byte string literal not displayed */ MaxSubscriptionGigabytes int64 `` /* 136-byte string literal not displayed */ MinSubscriptionGigabytes int64 `` /* 136-byte string literal not displayed */ MaxSubscriptionHours int64 `protobuf:"varint,9,opt,name=max_subscription_hours,json=maxSubscriptionHours,proto3" json:"max_subscription_hours,omitempty"` MinSubscriptionHours int64 `protobuf:"varint,10,opt,name=min_subscription_hours,json=minSubscriptionHours,proto3" json:"min_subscription_hours,omitempty"` }
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 (m *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 QueryNodeRequest ¶ added in v0.6.0
type QueryNodeRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func NewQueryNodeRequest ¶ added in v0.6.0
func NewQueryNodeRequest(addr hubtypes.NodeAddress) *QueryNodeRequest
func (*QueryNodeRequest) Descriptor ¶ added in v0.6.0
func (*QueryNodeRequest) Descriptor() ([]byte, []int)
func (*QueryNodeRequest) Marshal ¶ added in v0.6.0
func (m *QueryNodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryNodeRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryNodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodeRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodeRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryNodeRequest) ProtoMessage()
func (*QueryNodeRequest) Reset ¶ added in v0.6.0
func (m *QueryNodeRequest) Reset()
func (*QueryNodeRequest) Size ¶ added in v0.6.0
func (m *QueryNodeRequest) Size() (n int)
func (*QueryNodeRequest) String ¶ added in v0.6.0
func (m *QueryNodeRequest) String() string
func (*QueryNodeRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryNodeRequest) Unmarshal(dAtA []byte) error
func (*QueryNodeRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryNodeRequest) XXX_DiscardUnknown()
func (*QueryNodeRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodeRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryNodeRequest) XXX_Merge(src proto.Message)
func (*QueryNodeRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryNodeRequest) XXX_Size() int
func (*QueryNodeRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryNodeRequest) XXX_Unmarshal(b []byte) error
type QueryNodeResponse ¶ added in v0.6.0
type QueryNodeResponse struct {
Node Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node"`
}
func (*QueryNodeResponse) Descriptor ¶ added in v0.6.0
func (*QueryNodeResponse) Descriptor() ([]byte, []int)
func (*QueryNodeResponse) Marshal ¶ added in v0.6.0
func (m *QueryNodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryNodeResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodeResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodeResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryNodeResponse) ProtoMessage()
func (*QueryNodeResponse) Reset ¶ added in v0.6.0
func (m *QueryNodeResponse) Reset()
func (*QueryNodeResponse) Size ¶ added in v0.6.0
func (m *QueryNodeResponse) Size() (n int)
func (*QueryNodeResponse) String ¶ added in v0.6.0
func (m *QueryNodeResponse) String() string
func (*QueryNodeResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryNodeResponse) Unmarshal(dAtA []byte) error
func (*QueryNodeResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryNodeResponse) XXX_DiscardUnknown()
func (*QueryNodeResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodeResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryNodeResponse) XXX_Merge(src proto.Message)
func (*QueryNodeResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryNodeResponse) XXX_Size() int
func (*QueryNodeResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryNodeResponse) XXX_Unmarshal(b []byte) error
type QueryNodesForPlanRequest ¶ added in v0.11.0
type QueryNodesForPlanRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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 NewQueryNodesForPlanRequest ¶ added in v0.11.0
func NewQueryNodesForPlanRequest(id uint64, status hubtypes.Status, pagination *query.PageRequest) *QueryNodesForPlanRequest
func (*QueryNodesForPlanRequest) Descriptor ¶ added in v0.11.0
func (*QueryNodesForPlanRequest) Descriptor() ([]byte, []int)
func (*QueryNodesForPlanRequest) Marshal ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) Marshal() (dAtA []byte, err error)
func (*QueryNodesForPlanRequest) MarshalTo ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesForPlanRequest) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesForPlanRequest) ProtoMessage ¶ added in v0.11.0
func (*QueryNodesForPlanRequest) ProtoMessage()
func (*QueryNodesForPlanRequest) Reset ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) Reset()
func (*QueryNodesForPlanRequest) Size ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) Size() (n int)
func (*QueryNodesForPlanRequest) String ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) String() string
func (*QueryNodesForPlanRequest) Unmarshal ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) Unmarshal(dAtA []byte) error
func (*QueryNodesForPlanRequest) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) XXX_DiscardUnknown()
func (*QueryNodesForPlanRequest) XXX_Marshal ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesForPlanRequest) XXX_Merge ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) XXX_Merge(src proto.Message)
func (*QueryNodesForPlanRequest) XXX_Size ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) XXX_Size() int
func (*QueryNodesForPlanRequest) XXX_Unmarshal ¶ added in v0.11.0
func (m *QueryNodesForPlanRequest) XXX_Unmarshal(b []byte) error
type QueryNodesForPlanResponse ¶ added in v0.11.0
type QueryNodesForPlanResponse struct { Nodes []Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryNodesForPlanResponse) Descriptor ¶ added in v0.11.0
func (*QueryNodesForPlanResponse) Descriptor() ([]byte, []int)
func (*QueryNodesForPlanResponse) Marshal ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) Marshal() (dAtA []byte, err error)
func (*QueryNodesForPlanResponse) MarshalTo ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesForPlanResponse) MarshalToSizedBuffer ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesForPlanResponse) ProtoMessage ¶ added in v0.11.0
func (*QueryNodesForPlanResponse) ProtoMessage()
func (*QueryNodesForPlanResponse) Reset ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) Reset()
func (*QueryNodesForPlanResponse) Size ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) Size() (n int)
func (*QueryNodesForPlanResponse) String ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) String() string
func (*QueryNodesForPlanResponse) Unmarshal ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) Unmarshal(dAtA []byte) error
func (*QueryNodesForPlanResponse) XXX_DiscardUnknown ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) XXX_DiscardUnknown()
func (*QueryNodesForPlanResponse) XXX_Marshal ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesForPlanResponse) XXX_Merge ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) XXX_Merge(src proto.Message)
func (*QueryNodesForPlanResponse) XXX_Size ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) XXX_Size() int
func (*QueryNodesForPlanResponse) XXX_Unmarshal ¶ added in v0.11.0
func (m *QueryNodesForPlanResponse) XXX_Unmarshal(b []byte) error
type QueryNodesRequest ¶ added in v0.6.0
type QueryNodesRequest struct { Status types.Status `protobuf:"varint,1,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQueryNodesRequest ¶ added in v0.6.0
func NewQueryNodesRequest(status hubtypes.Status, pagination *query.PageRequest) *QueryNodesRequest
func (*QueryNodesRequest) Descriptor ¶ added in v0.6.0
func (*QueryNodesRequest) Descriptor() ([]byte, []int)
func (*QueryNodesRequest) Marshal ¶ added in v0.6.0
func (m *QueryNodesRequest) Marshal() (dAtA []byte, err error)
func (*QueryNodesRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryNodesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryNodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryNodesRequest) ProtoMessage()
func (*QueryNodesRequest) Reset ¶ added in v0.6.0
func (m *QueryNodesRequest) Reset()
func (*QueryNodesRequest) Size ¶ added in v0.6.0
func (m *QueryNodesRequest) Size() (n int)
func (*QueryNodesRequest) String ¶ added in v0.6.0
func (m *QueryNodesRequest) String() string
func (*QueryNodesRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryNodesRequest) Unmarshal(dAtA []byte) error
func (*QueryNodesRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryNodesRequest) XXX_DiscardUnknown()
func (*QueryNodesRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryNodesRequest) XXX_Merge(src proto.Message)
func (*QueryNodesRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryNodesRequest) XXX_Size() int
func (*QueryNodesRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryNodesRequest) XXX_Unmarshal(b []byte) error
type QueryNodesResponse ¶ added in v0.6.0
type QueryNodesResponse struct { Nodes []Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryNodesResponse) Descriptor ¶ added in v0.6.0
func (*QueryNodesResponse) Descriptor() ([]byte, []int)
func (*QueryNodesResponse) Marshal ¶ added in v0.6.0
func (m *QueryNodesResponse) Marshal() (dAtA []byte, err error)
func (*QueryNodesResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryNodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNodesResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryNodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNodesResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryNodesResponse) ProtoMessage()
func (*QueryNodesResponse) Reset ¶ added in v0.6.0
func (m *QueryNodesResponse) Reset()
func (*QueryNodesResponse) Size ¶ added in v0.6.0
func (m *QueryNodesResponse) Size() (n int)
func (*QueryNodesResponse) String ¶ added in v0.6.0
func (m *QueryNodesResponse) String() string
func (*QueryNodesResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryNodesResponse) Unmarshal(dAtA []byte) error
func (*QueryNodesResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryNodesResponse) XXX_DiscardUnknown()
func (*QueryNodesResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNodesResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryNodesResponse) XXX_Merge(src proto.Message)
func (*QueryNodesResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryNodesResponse) XXX_Size() int
func (*QueryNodesResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryNodesResponse) XXX_Unmarshal(b []byte) error
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 { QueryNodes(ctx context.Context, in *QueryNodesRequest, opts ...grpc.CallOption) (*QueryNodesResponse, error) QueryNodesForPlan(ctx context.Context, in *QueryNodesForPlanRequest, opts ...grpc.CallOption) (*QueryNodesForPlanResponse, error) QueryNode(ctx context.Context, in *QueryNodeRequest, opts ...grpc.CallOption) (*QueryNodeResponse, 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 { QueryNodes(context.Context, *QueryNodesRequest) (*QueryNodesResponse, error) QueryNodesForPlan(context.Context, *QueryNodesForPlanRequest) (*QueryNodesForPlanResponse, error) QueryNode(context.Context, *QueryNodeRequest) (*QueryNodeResponse, error) QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type UnimplementedMsgServiceServer ¶ added in v0.6.0
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgRegister ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgRegister(ctx context.Context, req *MsgRegisterRequest) (*MsgRegisterResponse, error)
func (*UnimplementedMsgServiceServer) MsgSubscribe ¶ added in v0.11.0
func (*UnimplementedMsgServiceServer) MsgSubscribe(ctx context.Context, req *MsgSubscribeRequest) (*MsgSubscribeResponse, error)
func (*UnimplementedMsgServiceServer) MsgUpdateDetails ¶ added in v0.11.0
func (*UnimplementedMsgServiceServer) MsgUpdateDetails(ctx context.Context, req *MsgUpdateDetailsRequest) (*MsgUpdateDetailsResponse, error)
func (*UnimplementedMsgServiceServer) MsgUpdateStatus ¶ added in v0.11.0
func (*UnimplementedMsgServiceServer) MsgUpdateStatus(ctx context.Context, req *MsgUpdateStatusRequest) (*MsgUpdateStatusResponse, error)
type UnimplementedQueryServiceServer ¶ added in v0.6.0
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryNode ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryNode(ctx context.Context, req *QueryNodeRequest) (*QueryNodeResponse, error)
func (*UnimplementedQueryServiceServer) QueryNodes ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryNodes(ctx context.Context, req *QueryNodesRequest) (*QueryNodesResponse, error)
func (*UnimplementedQueryServiceServer) QueryNodesForPlan ¶ added in v0.11.0
func (*UnimplementedQueryServiceServer) QueryNodesForPlan(ctx context.Context, req *QueryNodesForPlanRequest) (*QueryNodesForPlanResponse, error)
func (*UnimplementedQueryServiceServer) QueryParams ¶ added in v0.6.1
func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)