v1beta3

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 33 Imported by: 21

Documentation

Overview

Package v1beta3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EvActionProviderCreated = "provider-created"
	EvActionProviderUpdated = "provider-updated"
	EvActionProviderDeleted = "provider-deleted"
	EvOwnerKey              = "owner"
)
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
)
View Source
const (
	MsgTypeCreateProvider = "create-provider"
	MsgTypeUpdateProvider = "update-provider"
	MsgTypeDeleteProvider = "delete-provider"
)

Variables

View Source
var (
	// ErrInvalidProviderURI register error code for invalid provider uri
	ErrInvalidProviderURI = errors.New("invalid provider: invalid host uri")

	// ErrNotAbsProviderURI register error code for not absolute provider uri
	ErrNotAbsProviderURI = errors.New("invalid provider: not absolute host uri")

	// ErrProviderNotFound provider not found
	ErrProviderNotFound = errors.New("invalid provider: address not found")

	// ErrProviderExists provider already exists
	ErrProviderExists = errors.New("invalid provider: already exists")

	// ErrInvalidAddress invalid provider address
	ErrInvalidAddress = errors.New("invalid address")

	// ErrAttributes error code for provider attribute problems
	ErrAttributes = errors.New("attribute specification error")

	// ErrIncompatibleAttributes error code for attributes update
	ErrIncompatibleAttributes = errors.New("attributes cannot be changed")

	// ErrInvalidInfoWebsite register error code for invalid info website
	ErrInvalidInfoWebsite = errors.New("invalid provider: invalid info website")
)
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 (
	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.
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)

Functions

func ParseEVProvider

func ParseEVProvider(attrs []sdk.Attribute) (sdk.AccAddress, error)

ParseEVProvider returns provider details for given event attributes

func ParseEvent

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

func ProviderEVAttributes(owner sdk.AccAddress) []sdk.Attribute

ProviderEVAttributes returns event attribues for given Provider

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterCodec register concrete types on codec

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 {
	Context sdkutil.BaseModuleEvent `json:"context"`
	Owner   sdk.AccAddress          `json:"owner"`
}

EventProviderCreated struct

func NewEventProviderCreated

func NewEventProviderCreated(owner sdk.AccAddress) EventProviderCreated

func (EventProviderCreated) ToSDKEvent

func (ev EventProviderCreated) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventProviderCreated struct

type EventProviderDeleted

type EventProviderDeleted struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	Owner   sdk.AccAddress          `json:"owner"`
}

EventProviderDeleted struct

func NewEventProviderDeleted

func NewEventProviderDeleted(owner sdk.AccAddress) EventProviderDeleted

func (EventProviderDeleted) ToSDKEvent

func (ev EventProviderDeleted) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventProviderDeleted struct

type EventProviderUpdated

type EventProviderUpdated struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	Owner   sdk.AccAddress          `json:"owner"`
}

EventProviderUpdated struct

func NewEventProviderUpdated

func NewEventProviderUpdated(owner sdk.AccAddress) EventProviderUpdated

func (EventProviderUpdated) ToSDKEvent

func (ev EventProviderUpdated) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventProviderUpdated struct

type GenesisState

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

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

func (*GenesisState) GetProviders

func (m *GenesisState) GetProviders() []Provider

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 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 github_com_akash_network_akash_api_go_node_types_v1beta3.Attributes `` /* 162-byte string literal not displayed */
	Info       ProviderInfo                                                        `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 types.Attributes) *MsgCreateProvider

NewMsgCreateProvider creates a new MsgCreateProvider instance

func (*MsgCreateProvider) Descriptor

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

func (*MsgCreateProvider) GetHostURI

func (m *MsgCreateProvider) GetHostURI() string

func (*MsgCreateProvider) GetInfo

func (m *MsgCreateProvider) GetInfo() ProviderInfo

func (*MsgCreateProvider) GetOwner

func (m *MsgCreateProvider) GetOwner() string

func (MsgCreateProvider) GetSignBytes

func (msg MsgCreateProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

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

func (msg MsgCreateProvider) Route() string

Route implements the sdk.Msg interface

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

func (msg MsgDeleteProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

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

func (msg MsgDeleteProvider) Route() string

Route implements the sdk.Msg interface

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 github_com_akash_network_akash_api_go_node_types_v1beta3.Attributes `` /* 162-byte string literal not displayed */
	Info       ProviderInfo                                                        `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 types.Attributes) *MsgUpdateProvider

NewMsgUpdateProvider creates a new MsgUpdateProvider instance

func (*MsgUpdateProvider) Descriptor

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

func (*MsgUpdateProvider) GetHostURI

func (m *MsgUpdateProvider) GetHostURI() string

func (*MsgUpdateProvider) GetInfo

func (m *MsgUpdateProvider) GetInfo() ProviderInfo

func (*MsgUpdateProvider) GetOwner

func (m *MsgUpdateProvider) GetOwner() string

func (MsgUpdateProvider) GetSignBytes

func (msg MsgUpdateProvider) GetSignBytes() []byte

GetSignBytes encodes the message for signing

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

func (msg MsgUpdateProvider) Route() string

Route implements the sdk.Msg interface

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 github_com_akash_network_akash_api_go_node_types_v1beta3.Attributes `` /* 162-byte string literal not displayed */
	Info       ProviderInfo                                                        `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) GetHostURI

func (m *Provider) GetHostURI() string

func (*Provider) GetInfo

func (m *Provider) GetInfo() ProviderInfo

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 ProviderInfo

type ProviderInfo 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"`
}

ProviderInfo

func (*ProviderInfo) Descriptor

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

func (*ProviderInfo) GetEMail

func (m *ProviderInfo) GetEMail() string

func (*ProviderInfo) GetWebsite

func (m *ProviderInfo) GetWebsite() string

func (ProviderInfo) IsEmpty

func (m ProviderInfo) IsEmpty() bool

func (*ProviderInfo) Marshal

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

func (*ProviderInfo) MarshalTo

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

func (*ProviderInfo) MarshalToSizedBuffer

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

func (*ProviderInfo) ProtoMessage

func (*ProviderInfo) ProtoMessage()

func (*ProviderInfo) Reset

func (m *ProviderInfo) Reset()

func (*ProviderInfo) Size

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

func (*ProviderInfo) String

func (m *ProviderInfo) String() string

func (*ProviderInfo) Unmarshal

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

func (ProviderInfo) Validate

func (m ProviderInfo) Validate() error

func (*ProviderInfo) XXX_DiscardUnknown

func (m *ProviderInfo) XXX_DiscardUnknown()

func (*ProviderInfo) XXX_Marshal

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

func (*ProviderInfo) XXX_Merge

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

func (*ProviderInfo) XXX_Size

func (m *ProviderInfo) XXX_Size() int

func (*ProviderInfo) XXX_Unmarshal

func (m *ProviderInfo) 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