Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParseEVProvider(attrs []sdk.Attribute) (sdk.AccAddress, error)
- func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
- func ProviderEVAttributes(owner sdk.AccAddress) []sdk.Attribute
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Attributes
- type EventProviderCreated
- type EventProviderDeleted
- type EventProviderUpdated
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetProviders() []Provider
- 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 MsgCreateProvider
- func (*MsgCreateProvider) Descriptor() ([]byte, []int)
- func (m *MsgCreateProvider) GetAttributes() Attributes
- func (m *MsgCreateProvider) GetHostURI() string
- func (m *MsgCreateProvider) GetOwner() string
- func (msg MsgCreateProvider) GetSignBytes() []byte
- func (msg MsgCreateProvider) GetSigners() []sdk.AccAddress
- func (m *MsgCreateProvider) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateProvider) ProtoMessage()
- func (m *MsgCreateProvider) Reset()
- func (msg MsgCreateProvider) Route() string
- func (m *MsgCreateProvider) Size() (n int)
- func (m *MsgCreateProvider) String() string
- func (msg MsgCreateProvider) Type() string
- func (m *MsgCreateProvider) Unmarshal(dAtA []byte) error
- func (msg MsgCreateProvider) ValidateBasic() error
- func (m *MsgCreateProvider) XXX_DiscardUnknown()
- func (m *MsgCreateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateProvider) XXX_Merge(src proto.Message)
- func (m *MsgCreateProvider) XXX_Size() int
- func (m *MsgCreateProvider) XXX_Unmarshal(b []byte) error
- type MsgDeleteProvider
- func (*MsgDeleteProvider) Descriptor() ([]byte, []int)
- func (m *MsgDeleteProvider) GetOwner() string
- func (msg MsgDeleteProvider) GetSignBytes() []byte
- func (msg MsgDeleteProvider) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteProvider) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteProvider) ProtoMessage()
- func (m *MsgDeleteProvider) Reset()
- func (msg MsgDeleteProvider) Route() string
- func (m *MsgDeleteProvider) Size() (n int)
- func (m *MsgDeleteProvider) String() string
- func (msg MsgDeleteProvider) Type() string
- func (m *MsgDeleteProvider) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteProvider) ValidateBasic() error
- func (m *MsgDeleteProvider) XXX_DiscardUnknown()
- func (m *MsgDeleteProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteProvider) XXX_Merge(src proto.Message)
- func (m *MsgDeleteProvider) XXX_Size() int
- func (m *MsgDeleteProvider) XXX_Unmarshal(b []byte) error
- type MsgUpdateProvider
- func (*MsgUpdateProvider) Descriptor() ([]byte, []int)
- func (m *MsgUpdateProvider) GetAttributes() Attributes
- func (m *MsgUpdateProvider) GetHostURI() string
- func (m *MsgUpdateProvider) GetOwner() string
- func (msg MsgUpdateProvider) GetSignBytes() []byte
- func (msg MsgUpdateProvider) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateProvider) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateProvider) ProtoMessage()
- func (m *MsgUpdateProvider) Reset()
- func (msg MsgUpdateProvider) Route() string
- func (m *MsgUpdateProvider) Size() (n int)
- func (m *MsgUpdateProvider) String() string
- func (msg MsgUpdateProvider) Type() string
- func (m *MsgUpdateProvider) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateProvider) ValidateBasic() error
- func (m *MsgUpdateProvider) XXX_DiscardUnknown()
- func (m *MsgUpdateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateProvider) XXX_Merge(src proto.Message)
- func (m *MsgUpdateProvider) XXX_Size() int
- func (m *MsgUpdateProvider) XXX_Unmarshal(b []byte) error
- type Provider
- func (p *Provider) Address() sdk.AccAddress
- func (*Provider) Descriptor() ([]byte, []int)
- func (m *Provider) GetAttributes() Attributes
- func (m *Provider) GetHostURI() string
- func (m *Provider) GetOwner() string
- 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 (p Provider) String() string
- func (m *Provider) Unmarshal(dAtA []byte) 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 QueryClient
- type QueryProviderRequest
- func (*QueryProviderRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderRequest) GetOwner() string
- 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) GetProvider() Provider
- 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) GetPagination() *query.PageRequest
- 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) GetPagination() *query.PageResponse
- func (m *QueryProvidersResponse) GetProviders() Providers
- 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 QueryServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "provider" // StoreKey is the store key string for provider StoreKey = ModuleName // RouterKey is the message route for provider RouterKey = ModuleName )
const ( MsgTypeCreateProvider = "create-provider" MsgTypeUpdateProvider = "update-provider" MsgTypeDeleteProvider = "delete-provider" )
Variables ¶
var ( // ErrInvalidProviderURI register error code for invalid provider uri ErrInvalidProviderURI = sdkerrors.Register(ModuleName, errInvalidProviderURI, "invalid provider: invalid host uri") // ErrNotAbsProviderURI register error code for not absolute provider uri ErrNotAbsProviderURI = sdkerrors.Register(ModuleName, errNotAbsProviderURI, "invalid provider: not absolute host uri") // ErrProviderNotFound provider not found ErrProviderNotFound = sdkerrors.Register(ModuleName, errProviderNotFound, "invalid provider: address not found") // ErrProviderExists provider already exists ErrProviderExists = sdkerrors.Register(ModuleName, errProviderExists, "invalid provider: already exists") // ErrInvalidAddress invalid provider address ErrInvalidAddress = sdkerrors.Register(ModuleName, errInvalidAddress, "invalid address") // ErrAttributes error code for provider attribute problems ErrAttributes = sdkerrors.Register(ModuleName, errAttributes, "attribute specification error") // ErrIncompatibleAttributes error code for attributes update ErrIncompatibleAttributes = sdkerrors.Register(ModuleName, errIncompatibleAttributes, "attributes cannot be changed") // ErrDuplicateAttributes duplicates are prohibited ErrDuplicateAttributes = sdkerrors.Register(ModuleName, errDuplicateAttributes, "attributes cannot have duplicates") )
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 ( ErrInvalidLengthProvider = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProvider = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProvider = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/provider module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/provider and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func ParseEVProvider ¶ added in v0.7.4
func ParseEVProvider(attrs []sdk.Attribute) (sdk.AccAddress, error)
ParseEVProvider returns provider details for given event attributes
func ParseEvent ¶ added in v0.7.4
func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
ParseEvent parses event and returns details of event and error if occurred TODO: Enable returning actual events.
func ProviderEVAttributes ¶ added in v0.7.4
func ProviderEVAttributes(owner sdk.AccAddress) []sdk.Attribute
ProviderEVAttributes returns event attribues for given Provider
func RegisterInterfaces ¶ added in v0.9.1
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/provider interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.9.1
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec register concrete types on codec
func RegisterQueryHandler ¶ added in v0.9.1
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.9.1
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.9.1
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.9.1
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.9.1
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Attributes ¶ added in v0.7.5
func (Attributes) Validate ¶ added in v0.7.5
func (attr Attributes) Validate() error
type EventProviderCreated ¶ added in v0.7.6
type EventProviderCreated struct { Context sdkutil.BaseModuleEvent `json:"context"` Owner sdk.AccAddress `json:"owner"` }
EventProviderCreated struct
func NewEventProviderCreated ¶ added in v0.7.6
func NewEventProviderCreated(owner sdk.AccAddress) EventProviderCreated
func (EventProviderCreated) ToSDKEvent ¶ added in v0.7.6
func (ev EventProviderCreated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventProviderCreated struct
type EventProviderDeleted ¶ added in v0.7.6
type EventProviderDeleted struct { Context sdkutil.BaseModuleEvent `json:"context"` Owner sdk.AccAddress `json:"owner"` }
EventProviderDeleted struct
func NewEventProviderDeleted ¶ added in v0.7.6
func NewEventProviderDeleted(owner sdk.AccAddress) EventProviderDeleted
func (EventProviderDeleted) ToSDKEvent ¶ added in v0.7.6
func (ev EventProviderDeleted) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventProviderDeleted struct
type EventProviderUpdated ¶ added in v0.7.6
type EventProviderUpdated struct { Context sdkutil.BaseModuleEvent `json:"context"` Owner sdk.AccAddress `json:"owner"` }
EventProviderUpdated struct
func NewEventProviderUpdated ¶ added in v0.7.6
func NewEventProviderUpdated(owner sdk.AccAddress) EventProviderUpdated
func (EventProviderUpdated) ToSDKEvent ¶ added in v0.7.6
func (ev EventProviderUpdated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventProviderUpdated struct
type GenesisState ¶ added in v0.9.1
type GenesisState struct {
Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers" yaml:"providers"`
}
GenesisState defines the basic genesis state used by provider module
func (*GenesisState) Descriptor ¶ added in v0.9.1
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetProviders ¶ added in v0.9.1
func (m *GenesisState) GetProviders() []Provider
func (*GenesisState) Marshal ¶ added in v0.9.1
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.9.1
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.9.1
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.9.1
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.9.1
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.9.1
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.9.1
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.9.1
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.9.1
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgCreateProvider ¶ added in v0.6.5
type MsgCreateProvider struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` HostURI string `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host-uri" yaml:"host-uri"` Attributes Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=Attributes" json:"attributes" yaml:"attributes"` }
MsgCreateProvider defines an SDK message for creating a provider
func NewMsgCreateProvider ¶ added in v0.9.1
func NewMsgCreateProvider(owner sdk.AccAddress, hostURI string, attributes Attributes) *MsgCreateProvider
NewMsgCreateProvider creates a new MsgCreateProvider instance
func (*MsgCreateProvider) Descriptor ¶ added in v0.9.1
func (*MsgCreateProvider) Descriptor() ([]byte, []int)
func (*MsgCreateProvider) GetAttributes ¶ added in v0.9.1
func (m *MsgCreateProvider) GetAttributes() Attributes
func (*MsgCreateProvider) GetHostURI ¶ added in v0.9.1
func (m *MsgCreateProvider) GetHostURI() string
func (*MsgCreateProvider) GetOwner ¶ added in v0.9.1
func (m *MsgCreateProvider) GetOwner() string
func (MsgCreateProvider) GetSignBytes ¶ added in v0.6.5
func (msg MsgCreateProvider) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateProvider) GetSigners ¶ added in v0.6.5
func (msg MsgCreateProvider) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCreateProvider) Marshal ¶ added in v0.9.1
func (m *MsgCreateProvider) Marshal() (dAtA []byte, err error)
func (*MsgCreateProvider) MarshalTo ¶ added in v0.9.1
func (m *MsgCreateProvider) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateProvider) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCreateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateProvider) ProtoMessage ¶ added in v0.9.1
func (*MsgCreateProvider) ProtoMessage()
func (*MsgCreateProvider) Reset ¶ added in v0.9.1
func (m *MsgCreateProvider) Reset()
func (MsgCreateProvider) Route ¶ added in v0.6.5
func (msg MsgCreateProvider) Route() string
Route implements the sdk.Msg interface
func (*MsgCreateProvider) Size ¶ added in v0.9.1
func (m *MsgCreateProvider) Size() (n int)
func (*MsgCreateProvider) String ¶ added in v0.9.1
func (m *MsgCreateProvider) String() string
func (MsgCreateProvider) Type ¶ added in v0.6.5
func (msg MsgCreateProvider) Type() string
Type implements the sdk.Msg interface
func (*MsgCreateProvider) Unmarshal ¶ added in v0.9.1
func (m *MsgCreateProvider) Unmarshal(dAtA []byte) error
func (MsgCreateProvider) ValidateBasic ¶ added in v0.6.5
func (msg MsgCreateProvider) ValidateBasic() error
ValidateBasic does basic validation of a HostURI
func (*MsgCreateProvider) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCreateProvider) XXX_DiscardUnknown()
func (*MsgCreateProvider) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCreateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateProvider) XXX_Merge ¶ added in v0.9.1
func (m *MsgCreateProvider) XXX_Merge(src proto.Message)
func (*MsgCreateProvider) XXX_Size ¶ added in v0.9.1
func (m *MsgCreateProvider) XXX_Size() int
func (*MsgCreateProvider) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCreateProvider) XXX_Unmarshal(b []byte) error
type MsgDeleteProvider ¶ added in v0.6.5
type MsgDeleteProvider struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
}
MsgDeleteProvider defines an SDK message for deleting a provider
func NewMsgDeleteProvider ¶ added in v0.9.1
func NewMsgDeleteProvider(owner sdk.AccAddress) *MsgDeleteProvider
NewMsgDeleteProvider creates a new MsgDeleteProvider instance
func (*MsgDeleteProvider) Descriptor ¶ added in v0.9.1
func (*MsgDeleteProvider) Descriptor() ([]byte, []int)
func (*MsgDeleteProvider) GetOwner ¶ added in v0.9.1
func (m *MsgDeleteProvider) GetOwner() string
func (MsgDeleteProvider) GetSignBytes ¶ added in v0.6.5
func (msg MsgDeleteProvider) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeleteProvider) GetSigners ¶ added in v0.6.5
func (msg MsgDeleteProvider) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgDeleteProvider) Marshal ¶ added in v0.9.1
func (m *MsgDeleteProvider) Marshal() (dAtA []byte, err error)
func (*MsgDeleteProvider) MarshalTo ¶ added in v0.9.1
func (m *MsgDeleteProvider) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteProvider) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgDeleteProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteProvider) ProtoMessage ¶ added in v0.9.1
func (*MsgDeleteProvider) ProtoMessage()
func (*MsgDeleteProvider) Reset ¶ added in v0.9.1
func (m *MsgDeleteProvider) Reset()
func (MsgDeleteProvider) Route ¶ added in v0.6.5
func (msg MsgDeleteProvider) Route() string
Route implements the sdk.Msg interface
func (*MsgDeleteProvider) Size ¶ added in v0.9.1
func (m *MsgDeleteProvider) Size() (n int)
func (*MsgDeleteProvider) String ¶ added in v0.9.1
func (m *MsgDeleteProvider) String() string
func (MsgDeleteProvider) Type ¶ added in v0.6.5
func (msg MsgDeleteProvider) Type() string
Type implements the sdk.Msg interface
func (*MsgDeleteProvider) Unmarshal ¶ added in v0.9.1
func (m *MsgDeleteProvider) Unmarshal(dAtA []byte) error
func (MsgDeleteProvider) ValidateBasic ¶ added in v0.6.5
func (msg MsgDeleteProvider) ValidateBasic() error
ValidateBasic does basic validation
func (*MsgDeleteProvider) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgDeleteProvider) XXX_DiscardUnknown()
func (*MsgDeleteProvider) XXX_Marshal ¶ added in v0.9.1
func (m *MsgDeleteProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteProvider) XXX_Merge ¶ added in v0.9.1
func (m *MsgDeleteProvider) XXX_Merge(src proto.Message)
func (*MsgDeleteProvider) XXX_Size ¶ added in v0.9.1
func (m *MsgDeleteProvider) XXX_Size() int
func (*MsgDeleteProvider) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgDeleteProvider) XXX_Unmarshal(b []byte) error
type MsgUpdateProvider ¶ added in v0.6.5
type MsgUpdateProvider struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` HostURI string `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host-uri" yaml:"host-uri"` Attributes Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=Attributes" json:"attributes" yaml:"attributes"` }
MsgUpdateProvider defines an SDK message for updating a provider
func NewMsgUpdateProvider ¶ added in v0.9.1
func NewMsgUpdateProvider(owner sdk.AccAddress, hostURI string, attributes Attributes) *MsgUpdateProvider
NewMsgUpdateProvider creates a new MsgUpdateProvider instance
func (*MsgUpdateProvider) Descriptor ¶ added in v0.9.1
func (*MsgUpdateProvider) Descriptor() ([]byte, []int)
func (*MsgUpdateProvider) GetAttributes ¶ added in v0.9.1
func (m *MsgUpdateProvider) GetAttributes() Attributes
func (*MsgUpdateProvider) GetHostURI ¶ added in v0.9.1
func (m *MsgUpdateProvider) GetHostURI() string
func (*MsgUpdateProvider) GetOwner ¶ added in v0.9.1
func (m *MsgUpdateProvider) GetOwner() string
func (MsgUpdateProvider) GetSignBytes ¶ added in v0.6.5
func (msg MsgUpdateProvider) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgUpdateProvider) GetSigners ¶ added in v0.6.5
func (msg MsgUpdateProvider) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgUpdateProvider) Marshal ¶ added in v0.9.1
func (m *MsgUpdateProvider) Marshal() (dAtA []byte, err error)
func (*MsgUpdateProvider) MarshalTo ¶ added in v0.9.1
func (m *MsgUpdateProvider) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateProvider) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateProvider) ProtoMessage ¶ added in v0.9.1
func (*MsgUpdateProvider) ProtoMessage()
func (*MsgUpdateProvider) Reset ¶ added in v0.9.1
func (m *MsgUpdateProvider) Reset()
func (MsgUpdateProvider) Route ¶ added in v0.6.5
func (msg MsgUpdateProvider) Route() string
Route implements the sdk.Msg interface
func (*MsgUpdateProvider) Size ¶ added in v0.9.1
func (m *MsgUpdateProvider) Size() (n int)
func (*MsgUpdateProvider) String ¶ added in v0.9.1
func (m *MsgUpdateProvider) String() string
func (MsgUpdateProvider) Type ¶ added in v0.6.5
func (msg MsgUpdateProvider) Type() string
Type implements the sdk.Msg interface
func (*MsgUpdateProvider) Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateProvider) Unmarshal(dAtA []byte) error
func (MsgUpdateProvider) ValidateBasic ¶ added in v0.6.5
func (msg MsgUpdateProvider) ValidateBasic() error
ValidateBasic does basic validation of a ProviderURI
func (*MsgUpdateProvider) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgUpdateProvider) XXX_DiscardUnknown()
func (*MsgUpdateProvider) XXX_Marshal ¶ added in v0.9.1
func (m *MsgUpdateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateProvider) XXX_Merge ¶ added in v0.9.1
func (m *MsgUpdateProvider) XXX_Merge(src proto.Message)
func (*MsgUpdateProvider) XXX_Size ¶ added in v0.9.1
func (m *MsgUpdateProvider) XXX_Size() int
func (*MsgUpdateProvider) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgUpdateProvider) XXX_Unmarshal(b []byte) error
type Provider ¶
type Provider struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` HostURI string `protobuf:"bytes,2,opt,name=host_uri,json=hostUri,proto3" json:"host-uri" yaml:"host-uri"` Attributes Attributes `protobuf:"bytes,3,rep,name=attributes,proto3,castrepeated=Attributes" json:"attributes" yaml:"attributes"` }
Provider stores owner and host details
func (*Provider) Address ¶ added in v0.9.1
func (p *Provider) Address() sdk.AccAddress
Address implements provider and returns owner of provider
func (*Provider) Descriptor ¶ added in v0.9.1
func (*Provider) GetAttributes ¶ added in v0.9.1
func (m *Provider) GetAttributes() Attributes
func (*Provider) GetHostURI ¶ added in v0.9.1
func (*Provider) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Provider) ProtoMessage ¶ added in v0.9.1
func (*Provider) ProtoMessage()
func (Provider) String ¶ added in v0.9.1
String implements the Stringer interface for a Provider object.
func (*Provider) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Provider) XXX_DiscardUnknown()
func (*Provider) XXX_Marshal ¶ added in v0.9.1
func (*Provider) XXX_Unmarshal ¶ added in v0.9.1
type QueryClient ¶ added in v0.9.1
type QueryClient interface { // Providers queries providers Providers(ctx context.Context, in *QueryProvidersRequest, opts ...grpc.CallOption) (*QueryProvidersResponse, error) // Provider queries provider details Provider(ctx context.Context, in *QueryProviderRequest, opts ...grpc.CallOption) (*QueryProviderResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.9.1
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryProviderRequest ¶ added in v0.9.1
type QueryProviderRequest struct {
Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}
QueryProviderRequest is request type for the Query/Provider RPC method
func (*QueryProviderRequest) Descriptor ¶ added in v0.9.1
func (*QueryProviderRequest) Descriptor() ([]byte, []int)
func (*QueryProviderRequest) GetOwner ¶ added in v0.9.1
func (m *QueryProviderRequest) GetOwner() string
func (*QueryProviderRequest) Marshal ¶ added in v0.9.1
func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)
func (*QueryProviderRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryProviderRequest) ProtoMessage()
func (*QueryProviderRequest) Reset ¶ added in v0.9.1
func (m *QueryProviderRequest) Reset()
func (*QueryProviderRequest) Size ¶ added in v0.9.1
func (m *QueryProviderRequest) Size() (n int)
func (*QueryProviderRequest) String ¶ added in v0.9.1
func (m *QueryProviderRequest) String() string
func (*QueryProviderRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error
func (*QueryProviderRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryProviderRequest) XXX_DiscardUnknown()
func (*QueryProviderRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryProviderRequest) XXX_Merge(src proto.Message)
func (*QueryProviderRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryProviderRequest) XXX_Size() int
func (*QueryProviderRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error
type QueryProviderResponse ¶ added in v0.9.1
type QueryProviderResponse struct {
Provider Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider"`
}
QueryProviderResponse is response type for the Query/Provider RPC method
func (*QueryProviderResponse) Descriptor ¶ added in v0.9.1
func (*QueryProviderResponse) Descriptor() ([]byte, []int)
func (*QueryProviderResponse) GetProvider ¶ added in v0.9.1
func (m *QueryProviderResponse) GetProvider() Provider
func (*QueryProviderResponse) Marshal ¶ added in v0.9.1
func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)
func (*QueryProviderResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProviderResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProviderResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryProviderResponse) ProtoMessage()
func (*QueryProviderResponse) Reset ¶ added in v0.9.1
func (m *QueryProviderResponse) Reset()
func (*QueryProviderResponse) Size ¶ added in v0.9.1
func (m *QueryProviderResponse) Size() (n int)
func (*QueryProviderResponse) String ¶ added in v0.9.1
func (m *QueryProviderResponse) String() string
func (*QueryProviderResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error
func (*QueryProviderResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryProviderResponse) XXX_DiscardUnknown()
func (*QueryProviderResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProviderResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryProviderResponse) XXX_Merge(src proto.Message)
func (*QueryProviderResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryProviderResponse) XXX_Size() int
func (*QueryProviderResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error
type QueryProvidersRequest ¶ added in v0.9.1
type QueryProvidersRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryProvidersRequest is request type for the Query/Providers RPC method
func (*QueryProvidersRequest) Descriptor ¶ added in v0.9.1
func (*QueryProvidersRequest) Descriptor() ([]byte, []int)
func (*QueryProvidersRequest) GetPagination ¶ added in v0.9.1
func (m *QueryProvidersRequest) GetPagination() *query.PageRequest
func (*QueryProvidersRequest) Marshal ¶ added in v0.9.1
func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)
func (*QueryProvidersRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryProvidersRequest) ProtoMessage()
func (*QueryProvidersRequest) Reset ¶ added in v0.9.1
func (m *QueryProvidersRequest) Reset()
func (*QueryProvidersRequest) Size ¶ added in v0.9.1
func (m *QueryProvidersRequest) Size() (n int)
func (*QueryProvidersRequest) String ¶ added in v0.9.1
func (m *QueryProvidersRequest) String() string
func (*QueryProvidersRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error
func (*QueryProvidersRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryProvidersRequest) XXX_DiscardUnknown()
func (*QueryProvidersRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)
func (*QueryProvidersRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryProvidersRequest) XXX_Size() int
func (*QueryProvidersRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error
type QueryProvidersResponse ¶ added in v0.9.1
type QueryProvidersResponse struct { Providers Providers `protobuf:"bytes,1,rep,name=providers,proto3,castrepeated=Providers" json:"providers"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryProvidersResponse is response type for the Query/Providers RPC method
func (*QueryProvidersResponse) Descriptor ¶ added in v0.9.1
func (*QueryProvidersResponse) Descriptor() ([]byte, []int)
func (*QueryProvidersResponse) GetPagination ¶ added in v0.9.1
func (m *QueryProvidersResponse) GetPagination() *query.PageResponse
func (*QueryProvidersResponse) GetProviders ¶ added in v0.9.1
func (m *QueryProvidersResponse) GetProviders() Providers
func (*QueryProvidersResponse) Marshal ¶ added in v0.9.1
func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)
func (*QueryProvidersResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProvidersResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProvidersResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryProvidersResponse) ProtoMessage()
func (*QueryProvidersResponse) Reset ¶ added in v0.9.1
func (m *QueryProvidersResponse) Reset()
func (*QueryProvidersResponse) Size ¶ added in v0.9.1
func (m *QueryProvidersResponse) Size() (n int)
func (*QueryProvidersResponse) String ¶ added in v0.9.1
func (m *QueryProvidersResponse) String() string
func (*QueryProvidersResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error
func (*QueryProvidersResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryProvidersResponse) XXX_DiscardUnknown()
func (*QueryProvidersResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProvidersResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)
func (*QueryProvidersResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryProvidersResponse) XXX_Size() int
func (*QueryProvidersResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.9.1
type QueryServer interface { // Providers queries providers Providers(context.Context, *QueryProvidersRequest) (*QueryProvidersResponse, error) // Provider queries provider details Provider(context.Context, *QueryProviderRequest) (*QueryProviderResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶ added in v0.9.1
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Provider ¶ added in v0.9.1
func (*UnimplementedQueryServer) Provider(ctx context.Context, req *QueryProviderRequest) (*QueryProviderResponse, error)
func (*UnimplementedQueryServer) Providers ¶ added in v0.9.1
func (*UnimplementedQueryServer) Providers(ctx context.Context, req *QueryProvidersRequest) (*QueryProvidersResponse, error)