types

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "oracle"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_oracle"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// FeedKeyPrefix is the prefix to retrieve all Feed
	FeedKeyPrefix = "Feed/value/"
)
View Source
const TypeMsgCreateFeed = "create_feed"
View Source
const TypeMsgUpdateFeed = "update_feed"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrInvalidLengthFeed        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFeed          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFeed = 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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var KeyDeposit = []byte("Deposit")

Functions

func FeedKey

func FeedKey(
	index string,
) []byte

FeedKey returns the store key to retrieve a Feed from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Feed

type Feed struct {
	Owner      string    `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Data       string    `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	LastUpdate time.Time `protobuf:"bytes,3,opt,name=last_update,json=lastUpdate,proto3,stdtime" json:"last_update"`
	Name       string    `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
}

func (*Feed) Descriptor

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

func (*Feed) GetData

func (m *Feed) GetData() string

func (*Feed) GetLastUpdate

func (m *Feed) GetLastUpdate() time.Time

func (*Feed) GetName

func (m *Feed) GetName() string

func (*Feed) GetOwner

func (m *Feed) GetOwner() string

func (*Feed) Marshal

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

func (*Feed) MarshalTo

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

func (*Feed) MarshalToSizedBuffer

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

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) Reset

func (m *Feed) Reset()

func (*Feed) Size

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

func (*Feed) String

func (m *Feed) String() string

func (*Feed) Unmarshal

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

func (*Feed) XXX_DiscardUnknown

func (m *Feed) XXX_DiscardUnknown()

func (*Feed) XXX_Marshal

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

func (*Feed) XXX_Merge

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

func (*Feed) XXX_Size

func (m *Feed) XXX_Size() int

func (*Feed) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params   Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	FeedList []Feed `protobuf:"bytes,2,rep,name=feed_list,json=feedList,proto3" json:"feed_list"`
}

GenesisState defines the rns module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFeedList

func (m *GenesisState) GetFeedList() []Feed

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 {
	CreateFeed(ctx context.Context, in *MsgCreateFeed, opts ...grpc.CallOption) (*MsgCreateFeedResponse, error)
	UpdateFeed(ctx context.Context, in *MsgUpdateFeed, opts ...grpc.CallOption) (*MsgUpdateFeedResponse, 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 MsgCreateFeed

type MsgCreateFeed struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func NewMsgCreateFeed

func NewMsgCreateFeed(creator string, name string) *MsgCreateFeed

func (*MsgCreateFeed) Descriptor

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

func (*MsgCreateFeed) GetCreator

func (m *MsgCreateFeed) GetCreator() string

func (*MsgCreateFeed) GetName

func (m *MsgCreateFeed) GetName() string

func (*MsgCreateFeed) GetSignBytes

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

func (*MsgCreateFeed) GetSigners

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

func (*MsgCreateFeed) Marshal

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

func (*MsgCreateFeed) MarshalTo

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

func (*MsgCreateFeed) MarshalToSizedBuffer

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

func (*MsgCreateFeed) ProtoMessage

func (*MsgCreateFeed) ProtoMessage()

func (*MsgCreateFeed) Reset

func (m *MsgCreateFeed) Reset()

func (*MsgCreateFeed) Route

func (msg *MsgCreateFeed) Route() string

func (*MsgCreateFeed) Size

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

func (*MsgCreateFeed) String

func (m *MsgCreateFeed) String() string

func (*MsgCreateFeed) Type

func (msg *MsgCreateFeed) Type() string

func (*MsgCreateFeed) Unmarshal

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

func (*MsgCreateFeed) ValidateBasic

func (msg *MsgCreateFeed) ValidateBasic() error

func (*MsgCreateFeed) XXX_DiscardUnknown

func (m *MsgCreateFeed) XXX_DiscardUnknown()

func (*MsgCreateFeed) XXX_Marshal

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

func (*MsgCreateFeed) XXX_Merge

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

func (*MsgCreateFeed) XXX_Size

func (m *MsgCreateFeed) XXX_Size() int

func (*MsgCreateFeed) XXX_Unmarshal

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

type MsgCreateFeedResponse

type MsgCreateFeedResponse struct {
}

func (*MsgCreateFeedResponse) Descriptor

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

func (*MsgCreateFeedResponse) Marshal

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

func (*MsgCreateFeedResponse) MarshalTo

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

func (*MsgCreateFeedResponse) MarshalToSizedBuffer

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

func (*MsgCreateFeedResponse) ProtoMessage

func (*MsgCreateFeedResponse) ProtoMessage()

func (*MsgCreateFeedResponse) Reset

func (m *MsgCreateFeedResponse) Reset()

func (*MsgCreateFeedResponse) Size

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

func (*MsgCreateFeedResponse) String

func (m *MsgCreateFeedResponse) String() string

func (*MsgCreateFeedResponse) Unmarshal

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

func (*MsgCreateFeedResponse) XXX_DiscardUnknown

func (m *MsgCreateFeedResponse) XXX_DiscardUnknown()

func (*MsgCreateFeedResponse) XXX_Marshal

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

func (*MsgCreateFeedResponse) XXX_Merge

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

func (*MsgCreateFeedResponse) XXX_Size

func (m *MsgCreateFeedResponse) XXX_Size() int

func (*MsgCreateFeedResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateFeed(context.Context, *MsgCreateFeed) (*MsgCreateFeedResponse, error)
	UpdateFeed(context.Context, *MsgUpdateFeed) (*MsgUpdateFeedResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateFeed

type MsgUpdateFeed struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Data    string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func NewMsgUpdateFeed

func NewMsgUpdateFeed(creator string, name string, data string) *MsgUpdateFeed

func (*MsgUpdateFeed) Descriptor

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

func (*MsgUpdateFeed) GetCreator

func (m *MsgUpdateFeed) GetCreator() string

func (*MsgUpdateFeed) GetData

func (m *MsgUpdateFeed) GetData() string

func (*MsgUpdateFeed) GetName

func (m *MsgUpdateFeed) GetName() string

func (*MsgUpdateFeed) GetSignBytes

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

func (*MsgUpdateFeed) GetSigners

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

func (*MsgUpdateFeed) Marshal

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

func (*MsgUpdateFeed) MarshalTo

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

func (*MsgUpdateFeed) MarshalToSizedBuffer

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

func (*MsgUpdateFeed) ProtoMessage

func (*MsgUpdateFeed) ProtoMessage()

func (*MsgUpdateFeed) Reset

func (m *MsgUpdateFeed) Reset()

func (*MsgUpdateFeed) Route

func (msg *MsgUpdateFeed) Route() string

func (*MsgUpdateFeed) Size

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

func (*MsgUpdateFeed) String

func (m *MsgUpdateFeed) String() string

func (*MsgUpdateFeed) Type

func (msg *MsgUpdateFeed) Type() string

func (*MsgUpdateFeed) Unmarshal

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

func (*MsgUpdateFeed) ValidateBasic

func (msg *MsgUpdateFeed) ValidateBasic() error

func (*MsgUpdateFeed) XXX_DiscardUnknown

func (m *MsgUpdateFeed) XXX_DiscardUnknown()

func (*MsgUpdateFeed) XXX_Marshal

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

func (*MsgUpdateFeed) XXX_Merge

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

func (*MsgUpdateFeed) XXX_Size

func (m *MsgUpdateFeed) XXX_Size() int

func (*MsgUpdateFeed) XXX_Unmarshal

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

type MsgUpdateFeedResponse

type MsgUpdateFeedResponse struct {
}

func (*MsgUpdateFeedResponse) Descriptor

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

func (*MsgUpdateFeedResponse) Marshal

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

func (*MsgUpdateFeedResponse) MarshalTo

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

func (*MsgUpdateFeedResponse) MarshalToSizedBuffer

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

func (*MsgUpdateFeedResponse) ProtoMessage

func (*MsgUpdateFeedResponse) ProtoMessage()

func (*MsgUpdateFeedResponse) Reset

func (m *MsgUpdateFeedResponse) Reset()

func (*MsgUpdateFeedResponse) Size

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

func (*MsgUpdateFeedResponse) String

func (m *MsgUpdateFeedResponse) String() string

func (*MsgUpdateFeedResponse) Unmarshal

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

func (*MsgUpdateFeedResponse) XXX_DiscardUnknown

func (m *MsgUpdateFeedResponse) XXX_DiscardUnknown()

func (*MsgUpdateFeedResponse) XXX_Marshal

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

func (*MsgUpdateFeedResponse) XXX_Merge

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

func (*MsgUpdateFeedResponse) XXX_Size

func (m *MsgUpdateFeedResponse) XXX_Size() int

func (*MsgUpdateFeedResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Deposit string `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetDeposit

func (m *Params) GetDeposit() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllFeedsRequest

type QueryAllFeedsRequest struct {
}

func (*QueryAllFeedsRequest) Descriptor

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

func (*QueryAllFeedsRequest) Marshal

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

func (*QueryAllFeedsRequest) MarshalTo

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

func (*QueryAllFeedsRequest) MarshalToSizedBuffer

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

func (*QueryAllFeedsRequest) ProtoMessage

func (*QueryAllFeedsRequest) ProtoMessage()

func (*QueryAllFeedsRequest) Reset

func (m *QueryAllFeedsRequest) Reset()

func (*QueryAllFeedsRequest) Size

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

func (*QueryAllFeedsRequest) String

func (m *QueryAllFeedsRequest) String() string

func (*QueryAllFeedsRequest) Unmarshal

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

func (*QueryAllFeedsRequest) XXX_DiscardUnknown

func (m *QueryAllFeedsRequest) XXX_DiscardUnknown()

func (*QueryAllFeedsRequest) XXX_Marshal

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

func (*QueryAllFeedsRequest) XXX_Merge

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

func (*QueryAllFeedsRequest) XXX_Size

func (m *QueryAllFeedsRequest) XXX_Size() int

func (*QueryAllFeedsRequest) XXX_Unmarshal

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

type QueryAllFeedsResponse

type QueryAllFeedsResponse struct {
	// params holds all the parameters of this module.
	Feed       []Feed              `protobuf:"bytes,1,rep,name=feed,proto3" json:"feed"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllFeedsResponse) Descriptor

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

func (*QueryAllFeedsResponse) GetFeed

func (m *QueryAllFeedsResponse) GetFeed() []Feed

func (*QueryAllFeedsResponse) GetPagination

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

func (*QueryAllFeedsResponse) Marshal

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

func (*QueryAllFeedsResponse) MarshalTo

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

func (*QueryAllFeedsResponse) MarshalToSizedBuffer

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

func (*QueryAllFeedsResponse) ProtoMessage

func (*QueryAllFeedsResponse) ProtoMessage()

func (*QueryAllFeedsResponse) Reset

func (m *QueryAllFeedsResponse) Reset()

func (*QueryAllFeedsResponse) Size

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

func (*QueryAllFeedsResponse) String

func (m *QueryAllFeedsResponse) String() string

func (*QueryAllFeedsResponse) Unmarshal

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

func (*QueryAllFeedsResponse) XXX_DiscardUnknown

func (m *QueryAllFeedsResponse) XXX_DiscardUnknown()

func (*QueryAllFeedsResponse) XXX_Marshal

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

func (*QueryAllFeedsResponse) XXX_Merge

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

func (*QueryAllFeedsResponse) XXX_Size

func (m *QueryAllFeedsResponse) XXX_Size() int

func (*QueryAllFeedsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	Feed(ctx context.Context, in *QueryFeedRequest, opts ...grpc.CallOption) (*QueryFeedResponse, error)
	AllFeeds(ctx context.Context, in *QueryAllFeedsRequest, opts ...grpc.CallOption) (*QueryAllFeedsResponse, 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 QueryFeedRequest

type QueryFeedRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*QueryFeedRequest) Descriptor

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

func (*QueryFeedRequest) GetName

func (m *QueryFeedRequest) GetName() string

func (*QueryFeedRequest) Marshal

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

func (*QueryFeedRequest) MarshalTo

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

func (*QueryFeedRequest) MarshalToSizedBuffer

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

func (*QueryFeedRequest) ProtoMessage

func (*QueryFeedRequest) ProtoMessage()

func (*QueryFeedRequest) Reset

func (m *QueryFeedRequest) Reset()

func (*QueryFeedRequest) Size

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

func (*QueryFeedRequest) String

func (m *QueryFeedRequest) String() string

func (*QueryFeedRequest) Unmarshal

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

func (*QueryFeedRequest) XXX_DiscardUnknown

func (m *QueryFeedRequest) XXX_DiscardUnknown()

func (*QueryFeedRequest) XXX_Marshal

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

func (*QueryFeedRequest) XXX_Merge

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

func (*QueryFeedRequest) XXX_Size

func (m *QueryFeedRequest) XXX_Size() int

func (*QueryFeedRequest) XXX_Unmarshal

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

type QueryFeedResponse

type QueryFeedResponse struct {
	// params holds all the parameters of this module.
	Feed Feed `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed"`
}

func (*QueryFeedResponse) Descriptor

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

func (*QueryFeedResponse) GetFeed

func (m *QueryFeedResponse) GetFeed() Feed

func (*QueryFeedResponse) Marshal

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

func (*QueryFeedResponse) MarshalTo

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

func (*QueryFeedResponse) MarshalToSizedBuffer

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

func (*QueryFeedResponse) ProtoMessage

func (*QueryFeedResponse) ProtoMessage()

func (*QueryFeedResponse) Reset

func (m *QueryFeedResponse) Reset()

func (*QueryFeedResponse) Size

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

func (*QueryFeedResponse) String

func (m *QueryFeedResponse) String() string

func (*QueryFeedResponse) Unmarshal

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

func (*QueryFeedResponse) XXX_DiscardUnknown

func (m *QueryFeedResponse) XXX_DiscardUnknown()

func (*QueryFeedResponse) XXX_Marshal

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

func (*QueryFeedResponse) XXX_Merge

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

func (*QueryFeedResponse) XXX_Size

func (m *QueryFeedResponse) XXX_Size() int

func (*QueryFeedResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	Feed(context.Context, *QueryFeedRequest) (*QueryFeedResponse, error)
	AllFeeds(context.Context, *QueryAllFeedsRequest) (*QueryAllFeedsResponse, 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) CreateFeed

func (*UnimplementedMsgServer) UpdateFeed

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllFeeds

func (*UnimplementedQueryServer) Feed

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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