Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActiveProviderKey(addr hubtypes.ProvAddress) []byte
- func InactiveProviderKey(addr hubtypes.ProvAddress) (v []byte)
- func NewErrorDuplicateProvider(addr hubtypes.ProvAddress) error
- func NewErrorProviderNotFound(addr hubtypes.ProvAddress) error
- 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 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 EventUpdate
- func (*EventUpdate) Descriptor() ([]byte, []int)
- func (m *EventUpdate) Marshal() (dAtA []byte, err error)
- func (m *EventUpdate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdate) ProtoMessage()
- func (m *EventUpdate) Reset()
- func (m *EventUpdate) Size() (n int)
- func (m *EventUpdate) String() string
- func (m *EventUpdate) Unmarshal(dAtA []byte) error
- func (m *EventUpdate) XXX_DiscardUnknown()
- func (m *EventUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdate) XXX_Merge(src proto.Message)
- func (m *EventUpdate) XXX_Size() int
- func (m *EventUpdate) 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 MsgUpdateRequest
- func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
- 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) Size() (n int)
- func (m *MsgUpdateRequest) String() 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 (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 Provider
- func (*Provider) Descriptor() ([]byte, []int)
- func (m *Provider) GetAddress() hubtypes.ProvAddress
- func (m *Provider) Marshal() (dAtA []byte, err error)
- func (m *Provider) MarshalTo(dAtA []byte) (int, error)
- func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Provider) ProtoMessage()
- func (m *Provider) Reset()
- func (m *Provider) Size() (n int)
- func (m *Provider) String() string
- func (m *Provider) Unmarshal(dAtA []byte) error
- func (m *Provider) Validate() error
- func (m *Provider) XXX_DiscardUnknown()
- func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Provider) XXX_Merge(src proto.Message)
- func (m *Provider) XXX_Size() int
- func (m *Provider) XXX_Unmarshal(b []byte) error
- type Providers
- 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 QueryProviderRequest
- func (*QueryProviderRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderRequest) ProtoMessage()
- func (m *QueryProviderRequest) Reset()
- func (m *QueryProviderRequest) Size() (n int)
- func (m *QueryProviderRequest) String() string
- func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderRequest) XXX_DiscardUnknown()
- func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderRequest) XXX_Size() int
- func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderResponse
- func (*QueryProviderResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderResponse) ProtoMessage()
- func (m *QueryProviderResponse) Reset()
- func (m *QueryProviderResponse) Size() (n int)
- func (m *QueryProviderResponse) String() string
- func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderResponse) XXX_DiscardUnknown()
- func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderResponse) XXX_Size() int
- func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error
- type QueryProvidersRequest
- func (*QueryProvidersRequest) Descriptor() ([]byte, []int)
- func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProvidersRequest) ProtoMessage()
- func (m *QueryProvidersRequest) Reset()
- func (m *QueryProvidersRequest) Size() (n int)
- func (m *QueryProvidersRequest) String() string
- func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProvidersRequest) XXX_DiscardUnknown()
- func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)
- func (m *QueryProvidersRequest) XXX_Size() int
- func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error
- type QueryProvidersResponse
- func (*QueryProvidersResponse) Descriptor() ([]byte, []int)
- func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProvidersResponse) ProtoMessage()
- func (m *QueryProvidersResponse) Reset()
- func (m *QueryProvidersResponse) Size() (n int)
- func (m *QueryProvidersResponse) String() string
- func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProvidersResponse) XXX_DiscardUnknown()
- func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)
- func (m *QueryProvidersResponse) XXX_Size() int
- func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type UnimplementedMsgServiceServer
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServiceServer) QueryProvider(ctx context.Context, req *QueryProviderRequest) (*QueryProviderResponse, error)
- func (*UnimplementedQueryServiceServer) QueryProviders(ctx context.Context, req *QueryProvidersRequest) (*QueryProvidersResponse, error)
Constants ¶
const (
ModuleName = "provider"
)
Variables ¶
var ( ErrorDuplicate = errors.Register(ModuleName, 201, "duplicate") ErrorNotFound = errors.Register(ModuleName, 202, "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 ( ProviderKeyPrefix = []byte{0x10} ActiveProviderKeyPrefix = append(ProviderKeyPrefix, 0x01) InactiveProviderKeyPrefix = append(ProviderKeyPrefix, 0x02) )
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 ( DefaultDeposit = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(1000)) )
var ( KeyDeposit = []byte("Deposit") )
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 ( ErrInvalidLengthProvider = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProvider = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProvider = 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 (
ErrorInvalidMessage = errors.Register(ModuleName, 101, "invalid message")
)
Functions ¶
func ActiveProviderKey ¶ added in v0.11.0
func ActiveProviderKey(addr hubtypes.ProvAddress) []byte
func InactiveProviderKey ¶ added in v0.11.0
func InactiveProviderKey(addr hubtypes.ProvAddress) (v []byte)
func NewErrorDuplicateProvider ¶ added in v0.11.0
func NewErrorDuplicateProvider(addr hubtypes.ProvAddress) error
func NewErrorProviderNotFound ¶ added in v0.11.0
func NewErrorProviderNotFound(addr hubtypes.ProvAddress) error
func ParamsKeyTable ¶ added in v0.4.0
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 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 EventUpdate ¶ added in v0.8.0
type EventUpdate struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*EventUpdate) Descriptor ¶ added in v0.8.0
func (*EventUpdate) Descriptor() ([]byte, []int)
func (*EventUpdate) Marshal ¶ added in v0.8.0
func (m *EventUpdate) Marshal() (dAtA []byte, err error)
func (*EventUpdate) MarshalTo ¶ added in v0.8.0
func (m *EventUpdate) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdate) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *EventUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdate) ProtoMessage ¶ added in v0.8.0
func (*EventUpdate) ProtoMessage()
func (*EventUpdate) Reset ¶ added in v0.8.0
func (m *EventUpdate) Reset()
func (*EventUpdate) Size ¶ added in v0.8.0
func (m *EventUpdate) Size() (n int)
func (*EventUpdate) String ¶ added in v0.8.0
func (m *EventUpdate) String() string
func (*EventUpdate) Unmarshal ¶ added in v0.8.0
func (m *EventUpdate) Unmarshal(dAtA []byte) error
func (*EventUpdate) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *EventUpdate) XXX_DiscardUnknown()
func (*EventUpdate) XXX_Marshal ¶ added in v0.8.0
func (m *EventUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdate) XXX_Merge ¶ added in v0.8.0
func (m *EventUpdate) XXX_Merge(src proto.Message)
func (*EventUpdate) XXX_Size ¶ added in v0.8.0
func (m *EventUpdate) XXX_Size() int
func (*EventUpdate) XXX_Unmarshal ¶ added in v0.8.0
func (m *EventUpdate) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(providers Providers, 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"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` }
MsgRegisterRequest defines the SDK message for registering a provider
func NewMsgRegisterRequest ¶ added in v0.6.0
func NewMsgRegisterRequest(from sdk.AccAddress, name, identity, website, description 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 'Name' field is not empty and its length is not greater than 64 characters, if the 'Identity' field's length is not greater than 64 characters, if the 'Website' field's length is not greater than 64 characters (if not empty), if the 'Website' field represents a valid URL (if not empty), and if the 'Description' field's length is not greater than 256 characters.
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) MsgUpdate(ctx context.Context, in *MsgUpdateRequest, opts ...grpc.CallOption) (*MsgUpdateResponse, 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) MsgUpdate(context.Context, *MsgUpdateRequest) (*MsgUpdateResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgUpdateRequest ¶ added in v0.6.0
type MsgUpdateRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Status types.Status `protobuf:"varint,6,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` }
MsgUpdateRequest defines the SDK message for updating a provider
func NewMsgUpdateRequest ¶ added in v0.6.0
func NewMsgUpdateRequest(from hubtypes.ProvAddress, name, identity, website, description string, status hubtypes.Status) *MsgUpdateRequest
NewMsgUpdateRequest creates a new MsgUpdateRequest instance with the given parameters.
func (*MsgUpdateRequest) Descriptor ¶ added in v0.6.0
func (*MsgUpdateRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateRequest) GetSigners ¶ added in v0.6.0
func (m *MsgUpdateRequest) GetSigners() []sdk.AccAddress
GetSigners returns an array containing the signer's account address extracted from the 'From' field of the MsgUpdateRequest.
func (*MsgUpdateRequest) Marshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateRequest) ProtoMessage()
func (*MsgUpdateRequest) Reset ¶ added in v0.6.0
func (m *MsgUpdateRequest) Reset()
func (*MsgUpdateRequest) Size ¶ added in v0.6.0
func (m *MsgUpdateRequest) Size() (n int)
func (*MsgUpdateRequest) String ¶ added in v0.6.0
func (m *MsgUpdateRequest) String() string
func (*MsgUpdateRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgUpdateRequest) ValidateBasic() error
ValidateBasic performs basic validation checks on the MsgUpdateRequest fields. It checks if the 'From' field is not empty and represents a valid provider address, if the 'Name' field's length is not greater than 64 characters, if the 'Identity' field's length is not greater than 64 characters, if the 'Website' field's length is not greater than 64 characters (if not empty), if the 'Website' field represents a valid URL (if not empty), if the 'Description' field's length is not greater than 256 characters, and if the 'Status' field is one of the allowed values [unspecified, active, inactive].
func (*MsgUpdateRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_DiscardUnknown()
func (*MsgUpdateRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Size() int
func (*MsgUpdateRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateResponse ¶ added in v0.6.0
type MsgUpdateResponse struct { }
MsgUpdateResponse defines the response of message MsgUpdateRequest
func (*MsgUpdateResponse) Descriptor ¶ added in v0.6.0
func (*MsgUpdateResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateResponse) Marshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateResponse) ProtoMessage()
func (*MsgUpdateResponse) Reset ¶ added in v0.6.0
func (m *MsgUpdateResponse) Reset()
func (*MsgUpdateResponse) Size ¶ added in v0.6.0
func (m *MsgUpdateResponse) Size() (n int)
func (*MsgUpdateResponse) String ¶ added in v0.6.0
func (m *MsgUpdateResponse) String() string
func (*MsgUpdateResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_DiscardUnknown()
func (*MsgUpdateResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Size() int
func (*MsgUpdateResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.4.0
type Params struct { Deposit types.Coin `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"` }
func DefaultParams ¶ added in v0.4.0
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.6.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Params) ParamSetPairs ¶ added in v0.4.0
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 Provider ¶
type Provider struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` Website string `protobuf:"bytes,4,opt,name=website,proto3" json:"website,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Status types.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 (*Provider) Descriptor ¶ added in v0.6.0
func (*Provider) GetAddress ¶ added in v0.6.0
func (m *Provider) GetAddress() hubtypes.ProvAddress
func (*Provider) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Provider) ProtoMessage ¶ added in v0.6.0
func (*Provider) ProtoMessage()
func (*Provider) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Provider) XXX_DiscardUnknown()
func (*Provider) XXX_Marshal ¶ added in v0.6.0
func (*Provider) 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 QueryProviderRequest ¶ added in v0.6.0
type QueryProviderRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func NewQueryProviderRequest ¶ added in v0.6.0
func NewQueryProviderRequest(addr hubtypes.ProvAddress) *QueryProviderRequest
func (*QueryProviderRequest) Descriptor ¶ added in v0.6.0
func (*QueryProviderRequest) Descriptor() ([]byte, []int)
func (*QueryProviderRequest) Marshal ¶ added in v0.6.0
func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)
func (*QueryProviderRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryProviderRequest) ProtoMessage()
func (*QueryProviderRequest) Reset ¶ added in v0.6.0
func (m *QueryProviderRequest) Reset()
func (*QueryProviderRequest) Size ¶ added in v0.6.0
func (m *QueryProviderRequest) Size() (n int)
func (*QueryProviderRequest) String ¶ added in v0.6.0
func (m *QueryProviderRequest) String() string
func (*QueryProviderRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error
func (*QueryProviderRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_DiscardUnknown()
func (*QueryProviderRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Merge(src proto.Message)
func (*QueryProviderRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Size() int
func (*QueryProviderRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error
type QueryProviderResponse ¶ added in v0.6.0
type QueryProviderResponse struct {
Provider Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider"`
}
func (*QueryProviderResponse) Descriptor ¶ added in v0.6.0
func (*QueryProviderResponse) Descriptor() ([]byte, []int)
func (*QueryProviderResponse) Marshal ¶ added in v0.6.0
func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)
func (*QueryProviderResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryProviderResponse) ProtoMessage()
func (*QueryProviderResponse) Reset ¶ added in v0.6.0
func (m *QueryProviderResponse) Reset()
func (*QueryProviderResponse) Size ¶ added in v0.6.0
func (m *QueryProviderResponse) Size() (n int)
func (*QueryProviderResponse) String ¶ added in v0.6.0
func (m *QueryProviderResponse) String() string
func (*QueryProviderResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error
func (*QueryProviderResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_DiscardUnknown()
func (*QueryProviderResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Merge(src proto.Message)
func (*QueryProviderResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Size() int
func (*QueryProviderResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error
type QueryProvidersRequest ¶ added in v0.6.0
type QueryProvidersRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Status types.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` }
func NewQueryProvidersRequest ¶ added in v0.6.0
func NewQueryProvidersRequest(status hubtypes.Status, pagination *query.PageRequest) *QueryProvidersRequest
func (*QueryProvidersRequest) Descriptor ¶ added in v0.6.0
func (*QueryProvidersRequest) Descriptor() ([]byte, []int)
func (*QueryProvidersRequest) Marshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)
func (*QueryProvidersRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryProvidersRequest) ProtoMessage()
func (*QueryProvidersRequest) Reset ¶ added in v0.6.0
func (m *QueryProvidersRequest) Reset()
func (*QueryProvidersRequest) Size ¶ added in v0.6.0
func (m *QueryProvidersRequest) Size() (n int)
func (*QueryProvidersRequest) String ¶ added in v0.6.0
func (m *QueryProvidersRequest) String() string
func (*QueryProvidersRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error
func (*QueryProvidersRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_DiscardUnknown()
func (*QueryProvidersRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)
func (*QueryProvidersRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Size() int
func (*QueryProvidersRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error
type QueryProvidersResponse ¶ added in v0.6.0
type QueryProvidersResponse struct { Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryProvidersResponse) Descriptor ¶ added in v0.6.0
func (*QueryProvidersResponse) Descriptor() ([]byte, []int)
func (*QueryProvidersResponse) Marshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)
func (*QueryProvidersResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryProvidersResponse) ProtoMessage()
func (*QueryProvidersResponse) Reset ¶ added in v0.6.0
func (m *QueryProvidersResponse) Reset()
func (*QueryProvidersResponse) Size ¶ added in v0.6.0
func (m *QueryProvidersResponse) Size() (n int)
func (*QueryProvidersResponse) String ¶ added in v0.6.0
func (m *QueryProvidersResponse) String() string
func (*QueryProvidersResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error
func (*QueryProvidersResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_DiscardUnknown()
func (*QueryProvidersResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)
func (*QueryProvidersResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Size() int
func (*QueryProvidersResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶ added in v0.6.0
type QueryServiceClient interface { QueryProviders(ctx context.Context, in *QueryProvidersRequest, opts ...grpc.CallOption) (*QueryProvidersResponse, error) QueryProvider(ctx context.Context, in *QueryProviderRequest, opts ...grpc.CallOption) (*QueryProviderResponse, 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 { QueryProviders(context.Context, *QueryProvidersRequest) (*QueryProvidersResponse, error) QueryProvider(context.Context, *QueryProviderRequest) (*QueryProviderResponse, 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) MsgUpdate ¶ added in v0.6.0
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) QueryProvider ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryProvider(ctx context.Context, req *QueryProviderRequest) (*QueryProviderResponse, error)
func (*UnimplementedQueryServiceServer) QueryProviders ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryProviders(ctx context.Context, req *QueryProvidersRequest) (*QueryProvidersResponse, error)