types

package
v0.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types 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
)
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 = 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 (
	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 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 RegisterMsgServer added in v0.9.1

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.9.1

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 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 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 MsgClient added in v0.9.1

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 added in v0.9.1

func NewMsgClient(cc grpc1.ClientConn) MsgClient

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 github_com_ovrclk_akash_types.Attributes `` /* 135-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 added in v0.9.1

func NewMsgCreateProvider(owner sdk.AccAddress, hostURI string, attributes types.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 (*MsgCreateProvider) GetHostURI added in v0.9.1

func (m *MsgCreateProvider) GetHostURI() string

func (*MsgCreateProvider) GetInfo added in v0.10.0

func (m *MsgCreateProvider) GetInfo() ProviderInfo

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 MsgCreateProviderResponse added in v0.9.1

type MsgCreateProviderResponse struct {
}

MsgCreateProviderResponse defines the Msg/CreateProvider response type.

func (*MsgCreateProviderResponse) Descriptor added in v0.9.1

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

func (*MsgCreateProviderResponse) Marshal added in v0.9.1

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

func (*MsgCreateProviderResponse) MarshalTo added in v0.9.1

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

func (*MsgCreateProviderResponse) MarshalToSizedBuffer added in v0.9.1

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

func (*MsgCreateProviderResponse) ProtoMessage added in v0.9.1

func (*MsgCreateProviderResponse) ProtoMessage()

func (*MsgCreateProviderResponse) Reset added in v0.9.1

func (m *MsgCreateProviderResponse) Reset()

func (*MsgCreateProviderResponse) Size added in v0.9.1

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

func (*MsgCreateProviderResponse) String added in v0.9.1

func (m *MsgCreateProviderResponse) String() string

func (*MsgCreateProviderResponse) Unmarshal added in v0.9.1

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

func (*MsgCreateProviderResponse) XXX_DiscardUnknown added in v0.9.1

func (m *MsgCreateProviderResponse) XXX_DiscardUnknown()

func (*MsgCreateProviderResponse) XXX_Marshal added in v0.9.1

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

func (*MsgCreateProviderResponse) XXX_Merge added in v0.9.1

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

func (*MsgCreateProviderResponse) XXX_Size added in v0.9.1

func (m *MsgCreateProviderResponse) XXX_Size() int

func (*MsgCreateProviderResponse) XXX_Unmarshal added in v0.9.1

func (m *MsgCreateProviderResponse) 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 MsgDeleteProviderResponse added in v0.9.1

type MsgDeleteProviderResponse struct {
}

MsgDeleteProviderResponse defines the Msg/DeleteProvider response type.

func (*MsgDeleteProviderResponse) Descriptor added in v0.9.1

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

func (*MsgDeleteProviderResponse) Marshal added in v0.9.1

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

func (*MsgDeleteProviderResponse) MarshalTo added in v0.9.1

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

func (*MsgDeleteProviderResponse) MarshalToSizedBuffer added in v0.9.1

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

func (*MsgDeleteProviderResponse) ProtoMessage added in v0.9.1

func (*MsgDeleteProviderResponse) ProtoMessage()

func (*MsgDeleteProviderResponse) Reset added in v0.9.1

func (m *MsgDeleteProviderResponse) Reset()

func (*MsgDeleteProviderResponse) Size added in v0.9.1

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

func (*MsgDeleteProviderResponse) String added in v0.9.1

func (m *MsgDeleteProviderResponse) String() string

func (*MsgDeleteProviderResponse) Unmarshal added in v0.9.1

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

func (*MsgDeleteProviderResponse) XXX_DiscardUnknown added in v0.9.1

func (m *MsgDeleteProviderResponse) XXX_DiscardUnknown()

func (*MsgDeleteProviderResponse) XXX_Marshal added in v0.9.1

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

func (*MsgDeleteProviderResponse) XXX_Merge added in v0.9.1

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

func (*MsgDeleteProviderResponse) XXX_Size added in v0.9.1

func (m *MsgDeleteProviderResponse) XXX_Size() int

func (*MsgDeleteProviderResponse) XXX_Unmarshal added in v0.9.1

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

type MsgServer added in v0.9.1

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 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 github_com_ovrclk_akash_types.Attributes `` /* 135-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 added in v0.9.1

func NewMsgUpdateProvider(owner sdk.AccAddress, hostURI string, attributes types.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 (*MsgUpdateProvider) GetHostURI added in v0.9.1

func (m *MsgUpdateProvider) GetHostURI() string

func (*MsgUpdateProvider) GetInfo added in v0.10.0

func (m *MsgUpdateProvider) GetInfo() ProviderInfo

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 MsgUpdateProviderResponse added in v0.9.1

type MsgUpdateProviderResponse struct {
}

MsgUpdateProviderResponse defines the Msg/UpdateProvider response type.

func (*MsgUpdateProviderResponse) Descriptor added in v0.9.1

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

func (*MsgUpdateProviderResponse) Marshal added in v0.9.1

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

func (*MsgUpdateProviderResponse) MarshalTo added in v0.9.1

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

func (*MsgUpdateProviderResponse) MarshalToSizedBuffer added in v0.9.1

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

func (*MsgUpdateProviderResponse) ProtoMessage added in v0.9.1

func (*MsgUpdateProviderResponse) ProtoMessage()

func (*MsgUpdateProviderResponse) Reset added in v0.9.1

func (m *MsgUpdateProviderResponse) Reset()

func (*MsgUpdateProviderResponse) Size added in v0.9.1

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

func (*MsgUpdateProviderResponse) String added in v0.9.1

func (m *MsgUpdateProviderResponse) String() string

func (*MsgUpdateProviderResponse) Unmarshal added in v0.9.1

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

func (*MsgUpdateProviderResponse) XXX_DiscardUnknown added in v0.9.1

func (m *MsgUpdateProviderResponse) XXX_DiscardUnknown()

func (*MsgUpdateProviderResponse) XXX_Marshal added in v0.9.1

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

func (*MsgUpdateProviderResponse) XXX_Merge added in v0.9.1

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

func (*MsgUpdateProviderResponse) XXX_Size added in v0.9.1

func (m *MsgUpdateProviderResponse) XXX_Size() int

func (*MsgUpdateProviderResponse) XXX_Unmarshal added in v0.9.1

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_ovrclk_akash_types.Attributes `` /* 135-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 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) Descriptor() ([]byte, []int)

func (*Provider) GetAttributes added in v0.9.1

func (*Provider) GetHostURI added in v0.9.1

func (m *Provider) GetHostURI() string

func (*Provider) GetInfo added in v0.10.0

func (m *Provider) GetInfo() ProviderInfo

func (*Provider) GetOwner added in v0.9.1

func (m *Provider) GetOwner() string

func (*Provider) Marshal added in v0.9.1

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

func (*Provider) MarshalTo added in v0.9.1

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

func (*Provider) MarshalToSizedBuffer added in v0.9.1

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

func (*Provider) ProtoMessage added in v0.9.1

func (*Provider) ProtoMessage()

func (*Provider) Reset added in v0.9.1

func (m *Provider) Reset()

func (*Provider) Size added in v0.9.1

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

func (Provider) String added in v0.9.1

func (p Provider) String() string

String implements the Stringer interface for a Provider object.

func (*Provider) Unmarshal added in v0.9.1

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

func (*Provider) XXX_DiscardUnknown added in v0.9.1

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal added in v0.9.1

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

func (*Provider) XXX_Merge added in v0.9.1

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

func (*Provider) XXX_Size added in v0.9.1

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal added in v0.9.1

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

type ProviderInfo added in v0.10.0

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 added in v0.10.0

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

func (*ProviderInfo) GetEMail added in v0.10.0

func (m *ProviderInfo) GetEMail() string

func (*ProviderInfo) GetWebsite added in v0.10.0

func (m *ProviderInfo) GetWebsite() string

func (ProviderInfo) IsEmpty added in v0.10.0

func (m ProviderInfo) IsEmpty() bool

func (*ProviderInfo) Marshal added in v0.10.0

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

func (*ProviderInfo) MarshalTo added in v0.10.0

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

func (*ProviderInfo) MarshalToSizedBuffer added in v0.10.0

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

func (*ProviderInfo) ProtoMessage added in v0.10.0

func (*ProviderInfo) ProtoMessage()

func (*ProviderInfo) Reset added in v0.10.0

func (m *ProviderInfo) Reset()

func (*ProviderInfo) Size added in v0.10.0

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

func (*ProviderInfo) String added in v0.10.0

func (m *ProviderInfo) String() string

func (*ProviderInfo) Unmarshal added in v0.10.0

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

func (ProviderInfo) Validate added in v0.10.0

func (m ProviderInfo) Validate() error

func (*ProviderInfo) XXX_DiscardUnknown added in v0.10.0

func (m *ProviderInfo) XXX_DiscardUnknown()

func (*ProviderInfo) XXX_Marshal added in v0.10.0

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

func (*ProviderInfo) XXX_Merge added in v0.10.0

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

func (*ProviderInfo) XXX_Size added in v0.10.0

func (m *ProviderInfo) XXX_Size() int

func (*ProviderInfo) XXX_Unmarshal added in v0.10.0

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

type Providers added in v0.9.1

type Providers []Provider

Providers is the collection of Provider

func (Providers) String added in v0.9.1

func (obj Providers) String() string

String implements the Stringer interface for a Providers object.

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 UnimplementedMsgServer added in v0.9.1

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateProvider added in v0.9.1

func (*UnimplementedMsgServer) DeleteProvider added in v0.9.1

func (*UnimplementedMsgServer) UpdateProvider added in v0.9.1

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) Providers added in v0.9.1

Jump to

Keyboard shortcuts

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