v1beta4

package
v0.0.1-rc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Overview

Package v1beta4 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)

Variables

View Source
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")

	// ErrInvalidInfoWebsite register error code for invalid info website
	ErrInvalidInfoWebsite = sdkerrors.Register(ModuleName, errInvalidInfoWebsite, "invalid provider: invalid info website")
)
View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProvider        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProvider          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProvider = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
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.
	//
	// Deprecated: ModuleCdc use is deprecated
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)

Functions

func ProviderPrefix

func ProviderPrefix() []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/provider interfaces types with the interface registry

func RegisterLegacyAminoCodec deprecated

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec register concrete types on codec

Deprecated: RegisterLegacyAminoCodec is deprecated

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

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

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

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type EventProviderCreated

type EventProviderCreated struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
}

EventProviderCreated defines an SDK message for provider created event

func (*EventProviderCreated) Descriptor

func (*EventProviderCreated) Descriptor() ([]byte, []int)

func (*EventProviderCreated) GetOwner

func (m *EventProviderCreated) GetOwner() string

func (*EventProviderCreated) Marshal

func (m *EventProviderCreated) Marshal() (dAtA []byte, err error)

func (*EventProviderCreated) MarshalTo

func (m *EventProviderCreated) MarshalTo(dAtA []byte) (int, error)

func (*EventProviderCreated) MarshalToSizedBuffer

func (m *EventProviderCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventProviderCreated) ProtoMessage

func (*EventProviderCreated) ProtoMessage()

func (*EventProviderCreated) Reset

func (m *EventProviderCreated) Reset()

func (*EventProviderCreated) Size

func (m *EventProviderCreated) Size() (n int)

func (*EventProviderCreated) String

func (m *EventProviderCreated) String() string

func (*EventProviderCreated) Unmarshal

func (m *EventProviderCreated) Unmarshal(dAtA []byte) error

func (*EventProviderCreated) XXX_DiscardUnknown

func (m *EventProviderCreated) XXX_DiscardUnknown()

func (*EventProviderCreated) XXX_Marshal

func (m *EventProviderCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventProviderCreated) XXX_Merge

func (m *EventProviderCreated) XXX_Merge(src proto.Message)

func (*EventProviderCreated) XXX_Size

func (m *EventProviderCreated) XXX_Size() int

func (*EventProviderCreated) XXX_Unmarshal

func (m *EventProviderCreated) XXX_Unmarshal(b []byte) error

type EventProviderDeleted

type EventProviderDeleted struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
}

EventProviderDeleted defines an SDK message for provider deleted event

func (*EventProviderDeleted) Descriptor

func (*EventProviderDeleted) Descriptor() ([]byte, []int)

func (*EventProviderDeleted) GetOwner

func (m *EventProviderDeleted) GetOwner() string

func (*EventProviderDeleted) Marshal

func (m *EventProviderDeleted) Marshal() (dAtA []byte, err error)

func (*EventProviderDeleted) MarshalTo

func (m *EventProviderDeleted) MarshalTo(dAtA []byte) (int, error)

func (*EventProviderDeleted) MarshalToSizedBuffer

func (m *EventProviderDeleted) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventProviderDeleted) ProtoMessage

func (*EventProviderDeleted) ProtoMessage()

func (*EventProviderDeleted) Reset

func (m *EventProviderDeleted) Reset()

func (*EventProviderDeleted) Size

func (m *EventProviderDeleted) Size() (n int)

func (*EventProviderDeleted) String

func (m *EventProviderDeleted) String() string

func (*EventProviderDeleted) Unmarshal

func (m *EventProviderDeleted) Unmarshal(dAtA []byte) error

func (*EventProviderDeleted) XXX_DiscardUnknown

func (m *EventProviderDeleted) XXX_DiscardUnknown()

func (*EventProviderDeleted) XXX_Marshal

func (m *EventProviderDeleted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventProviderDeleted) XXX_Merge

func (m *EventProviderDeleted) XXX_Merge(src proto.Message)

func (*EventProviderDeleted) XXX_Size

func (m *EventProviderDeleted) XXX_Size() int

func (*EventProviderDeleted) XXX_Unmarshal

func (m *EventProviderDeleted) XXX_Unmarshal(b []byte) error

type EventProviderUpdated

type EventProviderUpdated struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
}

EventProviderUpdated defines an SDK message for provider updated event

func (*EventProviderUpdated) Descriptor

func (*EventProviderUpdated) Descriptor() ([]byte, []int)

func (*EventProviderUpdated) GetOwner

func (m *EventProviderUpdated) GetOwner() string

func (*EventProviderUpdated) Marshal

func (m *EventProviderUpdated) Marshal() (dAtA []byte, err error)

func (*EventProviderUpdated) MarshalTo

func (m *EventProviderUpdated) MarshalTo(dAtA []byte) (int, error)

func (*EventProviderUpdated) MarshalToSizedBuffer

func (m *EventProviderUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventProviderUpdated) ProtoMessage

func (*EventProviderUpdated) ProtoMessage()

func (*EventProviderUpdated) Reset

func (m *EventProviderUpdated) Reset()

func (*EventProviderUpdated) Size

func (m *EventProviderUpdated) Size() (n int)

func (*EventProviderUpdated) String

func (m *EventProviderUpdated) String() string

func (*EventProviderUpdated) Unmarshal

func (m *EventProviderUpdated) Unmarshal(dAtA []byte) error

func (*EventProviderUpdated) XXX_DiscardUnknown

func (m *EventProviderUpdated) XXX_DiscardUnknown()

func (*EventProviderUpdated) XXX_Marshal

func (m *EventProviderUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventProviderUpdated) XXX_Merge

func (m *EventProviderUpdated) XXX_Merge(src proto.Message)

func (*EventProviderUpdated) XXX_Size

func (m *EventProviderUpdated) XXX_Size() int

func (*EventProviderUpdated) XXX_Unmarshal

func (m *EventProviderUpdated) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Providers Providers `protobuf:"bytes,1,rep,name=providers,proto3,castrepeated=Providers" json:"providers" yaml:"providers"`
}

GenesisState defines the basic genesis state used by provider module

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetProviders

func (m *GenesisState) GetProviders() Providers

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type Info

type Info struct {
	EMail   string `protobuf:"bytes,1,opt,name=email,proto3" json:"email" yaml:"email"`
	Website string `protobuf:"bytes,2,opt,name=website,proto3" json:"website" yaml:"website"`
}

Info

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetEMail

func (m *Info) GetEMail() string

func (*Info) GetWebsite

func (m *Info) GetWebsite() string

func (Info) IsEmpty

func (m Info) IsEmpty() bool

func (*Info) Marshal

func (m *Info) Marshal() (dAtA []byte, err error)

func (*Info) MarshalTo

func (m *Info) MarshalTo(dAtA []byte) (int, error)

func (*Info) MarshalToSizedBuffer

func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

func (m *Info) Size() (n int)

func (*Info) String

func (m *Info) String() string

func (*Info) Unmarshal

func (m *Info) Unmarshal(dAtA []byte) error

func (Info) Validate

func (m Info) Validate() error

func (*Info) XXX_DiscardUnknown

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge

func (m *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal

func (m *Info) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// CreateProvider defines a method that creates a provider given the proper inputs
	CreateProvider(ctx context.Context, in *MsgCreateProvider, opts ...grpc.CallOption) (*MsgCreateProviderResponse, error)
	// UpdateProvider defines a method that updates a provider given the proper inputs
	UpdateProvider(ctx context.Context, in *MsgUpdateProvider, opts ...grpc.CallOption) (*MsgUpdateProviderResponse, error)
	// DeleteProvider defines a method that deletes a provider given the proper inputs
	DeleteProvider(ctx context.Context, in *MsgDeleteProvider, opts ...grpc.CallOption) (*MsgDeleteProviderResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateProvider

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 pkg_akt_dev_go_node_types_attributes_v1.Attributes `` /* 145-byte string literal not displayed */
	Info       Info                                               `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
}

MsgCreateProvider defines an SDK message for creating a provider

func NewMsgCreateProvider

func NewMsgCreateProvider(owner sdk.AccAddress, hostURI string, attributes attr.Attributes) *MsgCreateProvider

NewMsgCreateProvider creates a new MsgCreateProvider instance

func (*MsgCreateProvider) Descriptor

func (*MsgCreateProvider) Descriptor() ([]byte, []int)

func (*MsgCreateProvider) GetAttributes

func (*MsgCreateProvider) GetHostURI

func (m *MsgCreateProvider) GetHostURI() string

func (*MsgCreateProvider) GetInfo

func (m *MsgCreateProvider) GetInfo() Info

func (*MsgCreateProvider) GetOwner

func (m *MsgCreateProvider) GetOwner() string

func (*MsgCreateProvider) GetSignBytes deprecated

func (msg *MsgCreateProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

Deprecated: GetSignBytes is deprecated

func (*MsgCreateProvider) GetSigners

func (msg *MsgCreateProvider) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCreateProvider) Marshal

func (m *MsgCreateProvider) Marshal() (dAtA []byte, err error)

func (*MsgCreateProvider) MarshalTo

func (m *MsgCreateProvider) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProvider) MarshalToSizedBuffer

func (m *MsgCreateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProvider) ProtoMessage

func (*MsgCreateProvider) ProtoMessage()

func (*MsgCreateProvider) Reset

func (m *MsgCreateProvider) Reset()

func (*MsgCreateProvider) Route deprecated

func (msg *MsgCreateProvider) Route() string

Route implements the sdk.Msg interface

Deprecated: Route is deprecated

func (*MsgCreateProvider) Size

func (m *MsgCreateProvider) Size() (n int)

func (*MsgCreateProvider) String

func (m *MsgCreateProvider) String() string

func (*MsgCreateProvider) Type

func (msg *MsgCreateProvider) Type() string

Type implements the sdk.Msg interface

func (*MsgCreateProvider) Unmarshal

func (m *MsgCreateProvider) Unmarshal(dAtA []byte) error

func (*MsgCreateProvider) ValidateBasic

func (msg *MsgCreateProvider) ValidateBasic() error

ValidateBasic does basic validation of a HostURI

func (*MsgCreateProvider) XXX_DiscardUnknown

func (m *MsgCreateProvider) XXX_DiscardUnknown()

func (*MsgCreateProvider) XXX_Marshal

func (m *MsgCreateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProvider) XXX_Merge

func (m *MsgCreateProvider) XXX_Merge(src proto.Message)

func (*MsgCreateProvider) XXX_Size

func (m *MsgCreateProvider) XXX_Size() int

func (*MsgCreateProvider) XXX_Unmarshal

func (m *MsgCreateProvider) XXX_Unmarshal(b []byte) error

type MsgCreateProviderResponse

type MsgCreateProviderResponse struct {
}

MsgCreateProviderResponse defines the Msg/CreateProvider response type.

func (*MsgCreateProviderResponse) Descriptor

func (*MsgCreateProviderResponse) Descriptor() ([]byte, []int)

func (*MsgCreateProviderResponse) Marshal

func (m *MsgCreateProviderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateProviderResponse) MarshalTo

func (m *MsgCreateProviderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProviderResponse) MarshalToSizedBuffer

func (m *MsgCreateProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProviderResponse) ProtoMessage

func (*MsgCreateProviderResponse) ProtoMessage()

func (*MsgCreateProviderResponse) Reset

func (m *MsgCreateProviderResponse) Reset()

func (*MsgCreateProviderResponse) Size

func (m *MsgCreateProviderResponse) Size() (n int)

func (*MsgCreateProviderResponse) String

func (m *MsgCreateProviderResponse) String() string

func (*MsgCreateProviderResponse) Unmarshal

func (m *MsgCreateProviderResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateProviderResponse) XXX_DiscardUnknown

func (m *MsgCreateProviderResponse) XXX_DiscardUnknown()

func (*MsgCreateProviderResponse) XXX_Marshal

func (m *MsgCreateProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProviderResponse) XXX_Merge

func (m *MsgCreateProviderResponse) XXX_Merge(src proto.Message)

func (*MsgCreateProviderResponse) XXX_Size

func (m *MsgCreateProviderResponse) XXX_Size() int

func (*MsgCreateProviderResponse) XXX_Unmarshal

func (m *MsgCreateProviderResponse) XXX_Unmarshal(b []byte) error

type MsgDeleteProvider

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

func NewMsgDeleteProvider(owner sdk.AccAddress) *MsgDeleteProvider

NewMsgDeleteProvider creates a new MsgDeleteProvider instance

func (*MsgDeleteProvider) Descriptor

func (*MsgDeleteProvider) Descriptor() ([]byte, []int)

func (*MsgDeleteProvider) GetOwner

func (m *MsgDeleteProvider) GetOwner() string

func (*MsgDeleteProvider) GetSignBytes deprecated

func (msg *MsgDeleteProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

Deprecated: GetSignBytes is deprecated

func (*MsgDeleteProvider) GetSigners

func (msg *MsgDeleteProvider) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgDeleteProvider) Marshal

func (m *MsgDeleteProvider) Marshal() (dAtA []byte, err error)

func (*MsgDeleteProvider) MarshalTo

func (m *MsgDeleteProvider) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteProvider) MarshalToSizedBuffer

func (m *MsgDeleteProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteProvider) ProtoMessage

func (*MsgDeleteProvider) ProtoMessage()

func (*MsgDeleteProvider) Reset

func (m *MsgDeleteProvider) Reset()

func (*MsgDeleteProvider) Route deprecated

func (msg *MsgDeleteProvider) Route() string

Route implements the sdk.Msg interface

Deprecated: Route is deprecated

func (*MsgDeleteProvider) Size

func (m *MsgDeleteProvider) Size() (n int)

func (*MsgDeleteProvider) String

func (m *MsgDeleteProvider) String() string

func (*MsgDeleteProvider) Type

func (msg *MsgDeleteProvider) Type() string

Type implements the sdk.Msg interface

func (*MsgDeleteProvider) Unmarshal

func (m *MsgDeleteProvider) Unmarshal(dAtA []byte) error

func (*MsgDeleteProvider) ValidateBasic

func (msg *MsgDeleteProvider) ValidateBasic() error

ValidateBasic does basic validation

func (*MsgDeleteProvider) XXX_DiscardUnknown

func (m *MsgDeleteProvider) XXX_DiscardUnknown()

func (*MsgDeleteProvider) XXX_Marshal

func (m *MsgDeleteProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteProvider) XXX_Merge

func (m *MsgDeleteProvider) XXX_Merge(src proto.Message)

func (*MsgDeleteProvider) XXX_Size

func (m *MsgDeleteProvider) XXX_Size() int

func (*MsgDeleteProvider) XXX_Unmarshal

func (m *MsgDeleteProvider) XXX_Unmarshal(b []byte) error

type MsgDeleteProviderResponse

type MsgDeleteProviderResponse struct {
}

MsgDeleteProviderResponse defines the Msg/DeleteProvider response type.

func (*MsgDeleteProviderResponse) Descriptor

func (*MsgDeleteProviderResponse) Descriptor() ([]byte, []int)

func (*MsgDeleteProviderResponse) Marshal

func (m *MsgDeleteProviderResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeleteProviderResponse) MarshalTo

func (m *MsgDeleteProviderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteProviderResponse) MarshalToSizedBuffer

func (m *MsgDeleteProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteProviderResponse) ProtoMessage

func (*MsgDeleteProviderResponse) ProtoMessage()

func (*MsgDeleteProviderResponse) Reset

func (m *MsgDeleteProviderResponse) Reset()

func (*MsgDeleteProviderResponse) Size

func (m *MsgDeleteProviderResponse) Size() (n int)

func (*MsgDeleteProviderResponse) String

func (m *MsgDeleteProviderResponse) String() string

func (*MsgDeleteProviderResponse) Unmarshal

func (m *MsgDeleteProviderResponse) Unmarshal(dAtA []byte) error

func (*MsgDeleteProviderResponse) XXX_DiscardUnknown

func (m *MsgDeleteProviderResponse) XXX_DiscardUnknown()

func (*MsgDeleteProviderResponse) XXX_Marshal

func (m *MsgDeleteProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteProviderResponse) XXX_Merge

func (m *MsgDeleteProviderResponse) XXX_Merge(src proto.Message)

func (*MsgDeleteProviderResponse) XXX_Size

func (m *MsgDeleteProviderResponse) XXX_Size() int

func (*MsgDeleteProviderResponse) XXX_Unmarshal

func (m *MsgDeleteProviderResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateProvider defines a method that creates a provider given the proper inputs
	CreateProvider(context.Context, *MsgCreateProvider) (*MsgCreateProviderResponse, error)
	// UpdateProvider defines a method that updates a provider given the proper inputs
	UpdateProvider(context.Context, *MsgUpdateProvider) (*MsgUpdateProviderResponse, error)
	// DeleteProvider defines a method that deletes a provider given the proper inputs
	DeleteProvider(context.Context, *MsgDeleteProvider) (*MsgDeleteProviderResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateProvider

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 pkg_akt_dev_go_node_types_attributes_v1.Attributes `` /* 145-byte string literal not displayed */
	Info       Info                                               `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
}

MsgUpdateProvider defines an SDK message for updating a provider

func NewMsgUpdateProvider

func NewMsgUpdateProvider(owner sdk.AccAddress, hostURI string, attributes attr.Attributes) *MsgUpdateProvider

NewMsgUpdateProvider creates a new MsgUpdateProvider instance

func (*MsgUpdateProvider) Descriptor

func (*MsgUpdateProvider) Descriptor() ([]byte, []int)

func (*MsgUpdateProvider) GetAttributes

func (*MsgUpdateProvider) GetHostURI

func (m *MsgUpdateProvider) GetHostURI() string

func (*MsgUpdateProvider) GetInfo

func (m *MsgUpdateProvider) GetInfo() Info

func (*MsgUpdateProvider) GetOwner

func (m *MsgUpdateProvider) GetOwner() string

func (*MsgUpdateProvider) GetSignBytes deprecated

func (msg *MsgUpdateProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

Deprecated: GetSignBytes is deprecated

func (*MsgUpdateProvider) GetSigners

func (msg *MsgUpdateProvider) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgUpdateProvider) Marshal

func (m *MsgUpdateProvider) Marshal() (dAtA []byte, err error)

func (*MsgUpdateProvider) MarshalTo

func (m *MsgUpdateProvider) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateProvider) MarshalToSizedBuffer

func (m *MsgUpdateProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateProvider) ProtoMessage

func (*MsgUpdateProvider) ProtoMessage()

func (*MsgUpdateProvider) Reset

func (m *MsgUpdateProvider) Reset()

func (*MsgUpdateProvider) Route deprecated

func (msg *MsgUpdateProvider) Route() string

Route implements the sdk.Msg interface

Deprecated: Route is deprecated

func (*MsgUpdateProvider) Size

func (m *MsgUpdateProvider) Size() (n int)

func (*MsgUpdateProvider) String

func (m *MsgUpdateProvider) String() string

func (*MsgUpdateProvider) Type

func (msg *MsgUpdateProvider) Type() string

Type implements the sdk.Msg interface

func (*MsgUpdateProvider) Unmarshal

func (m *MsgUpdateProvider) Unmarshal(dAtA []byte) error

func (*MsgUpdateProvider) ValidateBasic

func (msg *MsgUpdateProvider) ValidateBasic() error

ValidateBasic does basic validation of a ProviderURI

func (*MsgUpdateProvider) XXX_DiscardUnknown

func (m *MsgUpdateProvider) XXX_DiscardUnknown()

func (*MsgUpdateProvider) XXX_Marshal

func (m *MsgUpdateProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateProvider) XXX_Merge

func (m *MsgUpdateProvider) XXX_Merge(src proto.Message)

func (*MsgUpdateProvider) XXX_Size

func (m *MsgUpdateProvider) XXX_Size() int

func (*MsgUpdateProvider) XXX_Unmarshal

func (m *MsgUpdateProvider) XXX_Unmarshal(b []byte) error

type MsgUpdateProviderResponse

type MsgUpdateProviderResponse struct {
}

MsgUpdateProviderResponse defines the Msg/UpdateProvider response type.

func (*MsgUpdateProviderResponse) Descriptor

func (*MsgUpdateProviderResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateProviderResponse) Marshal

func (m *MsgUpdateProviderResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateProviderResponse) MarshalTo

func (m *MsgUpdateProviderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateProviderResponse) MarshalToSizedBuffer

func (m *MsgUpdateProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateProviderResponse) ProtoMessage

func (*MsgUpdateProviderResponse) ProtoMessage()

func (*MsgUpdateProviderResponse) Reset

func (m *MsgUpdateProviderResponse) Reset()

func (*MsgUpdateProviderResponse) Size

func (m *MsgUpdateProviderResponse) Size() (n int)

func (*MsgUpdateProviderResponse) String

func (m *MsgUpdateProviderResponse) String() string

func (*MsgUpdateProviderResponse) Unmarshal

func (m *MsgUpdateProviderResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateProviderResponse) XXX_DiscardUnknown

func (m *MsgUpdateProviderResponse) XXX_DiscardUnknown()

func (*MsgUpdateProviderResponse) XXX_Marshal

func (m *MsgUpdateProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateProviderResponse) XXX_Merge

func (m *MsgUpdateProviderResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateProviderResponse) XXX_Size

func (m *MsgUpdateProviderResponse) XXX_Size() int

func (*MsgUpdateProviderResponse) XXX_Unmarshal

func (m *MsgUpdateProviderResponse) 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 pkg_akt_dev_go_node_types_attributes_v1.Attributes `` /* 145-byte string literal not displayed */
	Info       Info                                               `protobuf:"bytes,4,opt,name=info,proto3" json:"info" yaml:"info"`
}

Provider stores owner and host details

func (*Provider) Address

func (p *Provider) Address() sdk.AccAddress

Address implements provider and returns owner of provider

func (*Provider) Descriptor

func (*Provider) Descriptor() ([]byte, []int)

func (*Provider) GetAttributes

func (*Provider) GetHostURI

func (m *Provider) GetHostURI() string

func (*Provider) GetInfo

func (m *Provider) GetInfo() Info

func (*Provider) GetOwner

func (m *Provider) GetOwner() string

func (*Provider) Marshal

func (m *Provider) Marshal() (dAtA []byte, err error)

func (*Provider) MarshalTo

func (m *Provider) MarshalTo(dAtA []byte) (int, error)

func (*Provider) MarshalToSizedBuffer

func (m *Provider) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) Reset

func (m *Provider) Reset()

func (*Provider) Size

func (m *Provider) Size() (n int)

func (Provider) String

func (p Provider) String() string

String implements the Stringer interface for a Provider object.

func (*Provider) Unmarshal

func (m *Provider) Unmarshal(dAtA []byte) error

func (*Provider) XXX_DiscardUnknown

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal

func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Provider) XXX_Merge

func (m *Provider) XXX_Merge(src proto.Message)

func (*Provider) XXX_Size

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal

func (m *Provider) XXX_Unmarshal(b []byte) error

type Providers

type Providers []Provider

Providers is the collection of Provider

func (Providers) String

func (obj Providers) String() string

String implements the Stringer interface for a Providers object.

type QueryClient

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

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryProviderRequest

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

func (*QueryProviderRequest) Descriptor() ([]byte, []int)

func (*QueryProviderRequest) GetOwner

func (m *QueryProviderRequest) GetOwner() string

func (*QueryProviderRequest) Marshal

func (m *QueryProviderRequest) Marshal() (dAtA []byte, err error)

func (*QueryProviderRequest) MarshalTo

func (m *QueryProviderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryProviderRequest) MarshalToSizedBuffer

func (m *QueryProviderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProviderRequest) ProtoMessage

func (*QueryProviderRequest) ProtoMessage()

func (*QueryProviderRequest) Reset

func (m *QueryProviderRequest) Reset()

func (*QueryProviderRequest) Size

func (m *QueryProviderRequest) Size() (n int)

func (*QueryProviderRequest) String

func (m *QueryProviderRequest) String() string

func (*QueryProviderRequest) Unmarshal

func (m *QueryProviderRequest) Unmarshal(dAtA []byte) error

func (*QueryProviderRequest) XXX_DiscardUnknown

func (m *QueryProviderRequest) XXX_DiscardUnknown()

func (*QueryProviderRequest) XXX_Marshal

func (m *QueryProviderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProviderRequest) XXX_Merge

func (m *QueryProviderRequest) XXX_Merge(src proto.Message)

func (*QueryProviderRequest) XXX_Size

func (m *QueryProviderRequest) XXX_Size() int

func (*QueryProviderRequest) XXX_Unmarshal

func (m *QueryProviderRequest) XXX_Unmarshal(b []byte) error

type QueryProviderResponse

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

func (*QueryProviderResponse) Descriptor() ([]byte, []int)

func (*QueryProviderResponse) GetProvider

func (m *QueryProviderResponse) GetProvider() Provider

func (*QueryProviderResponse) Marshal

func (m *QueryProviderResponse) Marshal() (dAtA []byte, err error)

func (*QueryProviderResponse) MarshalTo

func (m *QueryProviderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryProviderResponse) MarshalToSizedBuffer

func (m *QueryProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProviderResponse) ProtoMessage

func (*QueryProviderResponse) ProtoMessage()

func (*QueryProviderResponse) Reset

func (m *QueryProviderResponse) Reset()

func (*QueryProviderResponse) Size

func (m *QueryProviderResponse) Size() (n int)

func (*QueryProviderResponse) String

func (m *QueryProviderResponse) String() string

func (*QueryProviderResponse) Unmarshal

func (m *QueryProviderResponse) Unmarshal(dAtA []byte) error

func (*QueryProviderResponse) XXX_DiscardUnknown

func (m *QueryProviderResponse) XXX_DiscardUnknown()

func (*QueryProviderResponse) XXX_Marshal

func (m *QueryProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProviderResponse) XXX_Merge

func (m *QueryProviderResponse) XXX_Merge(src proto.Message)

func (*QueryProviderResponse) XXX_Size

func (m *QueryProviderResponse) XXX_Size() int

func (*QueryProviderResponse) XXX_Unmarshal

func (m *QueryProviderResponse) XXX_Unmarshal(b []byte) error

type QueryProvidersRequest

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

func (*QueryProvidersRequest) Descriptor() ([]byte, []int)

func (*QueryProvidersRequest) GetPagination

func (m *QueryProvidersRequest) GetPagination() *query.PageRequest

func (*QueryProvidersRequest) Marshal

func (m *QueryProvidersRequest) Marshal() (dAtA []byte, err error)

func (*QueryProvidersRequest) MarshalTo

func (m *QueryProvidersRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryProvidersRequest) MarshalToSizedBuffer

func (m *QueryProvidersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProvidersRequest) ProtoMessage

func (*QueryProvidersRequest) ProtoMessage()

func (*QueryProvidersRequest) Reset

func (m *QueryProvidersRequest) Reset()

func (*QueryProvidersRequest) Size

func (m *QueryProvidersRequest) Size() (n int)

func (*QueryProvidersRequest) String

func (m *QueryProvidersRequest) String() string

func (*QueryProvidersRequest) Unmarshal

func (m *QueryProvidersRequest) Unmarshal(dAtA []byte) error

func (*QueryProvidersRequest) XXX_DiscardUnknown

func (m *QueryProvidersRequest) XXX_DiscardUnknown()

func (*QueryProvidersRequest) XXX_Marshal

func (m *QueryProvidersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProvidersRequest) XXX_Merge

func (m *QueryProvidersRequest) XXX_Merge(src proto.Message)

func (*QueryProvidersRequest) XXX_Size

func (m *QueryProvidersRequest) XXX_Size() int

func (*QueryProvidersRequest) XXX_Unmarshal

func (m *QueryProvidersRequest) XXX_Unmarshal(b []byte) error

type QueryProvidersResponse

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

func (*QueryProvidersResponse) Descriptor() ([]byte, []int)

func (*QueryProvidersResponse) GetPagination

func (m *QueryProvidersResponse) GetPagination() *query.PageResponse

func (*QueryProvidersResponse) GetProviders

func (m *QueryProvidersResponse) GetProviders() Providers

func (*QueryProvidersResponse) Marshal

func (m *QueryProvidersResponse) Marshal() (dAtA []byte, err error)

func (*QueryProvidersResponse) MarshalTo

func (m *QueryProvidersResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryProvidersResponse) MarshalToSizedBuffer

func (m *QueryProvidersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProvidersResponse) ProtoMessage

func (*QueryProvidersResponse) ProtoMessage()

func (*QueryProvidersResponse) Reset

func (m *QueryProvidersResponse) Reset()

func (*QueryProvidersResponse) Size

func (m *QueryProvidersResponse) Size() (n int)

func (*QueryProvidersResponse) String

func (m *QueryProvidersResponse) String() string

func (*QueryProvidersResponse) Unmarshal

func (m *QueryProvidersResponse) Unmarshal(dAtA []byte) error

func (*QueryProvidersResponse) XXX_DiscardUnknown

func (m *QueryProvidersResponse) XXX_DiscardUnknown()

func (*QueryProvidersResponse) XXX_Marshal

func (m *QueryProvidersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProvidersResponse) XXX_Merge

func (m *QueryProvidersResponse) XXX_Merge(src proto.Message)

func (*QueryProvidersResponse) XXX_Size

func (m *QueryProvidersResponse) XXX_Size() int

func (*QueryProvidersResponse) XXX_Unmarshal

func (m *QueryProvidersResponse) XXX_Unmarshal(b []byte) error

type QueryServer

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 UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateProvider

func (*UnimplementedMsgServer) DeleteProvider

func (*UnimplementedMsgServer) UpdateProvider

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Provider

func (*UnimplementedQueryServer) Providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL