Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetBalance() types.Coin
- func (m *Account) GetID() AccountID
- func (m *Account) GetOwner() string
- func (m *Account) GetSettledAt() int64
- func (m *Account) GetState() Account_State
- func (m *Account) GetTransferred() types.Coin
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (obj *Account) ValidateBasic() error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountID
- func (*AccountID) Descriptor() ([]byte, []int)
- func (m *AccountID) GetScope() string
- func (m *AccountID) GetXID() string
- func (m *AccountID) Marshal() (dAtA []byte, err error)
- func (m *AccountID) MarshalTo(dAtA []byte) (int, error)
- func (m *AccountID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccountID) ProtoMessage()
- func (m *AccountID) Reset()
- func (m *AccountID) Size() (n int)
- func (m *AccountID) String() string
- func (m *AccountID) Unmarshal(dAtA []byte) error
- func (obj *AccountID) ValidateBasic() error
- func (m *AccountID) XXX_DiscardUnknown()
- func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountID) XXX_Merge(src proto.Message)
- func (m *AccountID) XXX_Size() int
- func (m *AccountID) XXX_Unmarshal(b []byte) error
- type Account_State
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAccounts() []Account
- func (m *GenesisState) GetPayments() []Payment
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)
- func (m *Payment) GetAccountID() AccountID
- func (m *Payment) GetBalance() types.Coin
- func (m *Payment) GetOwner() string
- func (m *Payment) GetPaymentID() string
- func (m *Payment) GetRate() types.Coin
- func (m *Payment) GetState() Payment_State
- func (m *Payment) GetWithdrawn() types.Coin
- func (m *Payment) Marshal() (dAtA []byte, err error)
- func (m *Payment) MarshalTo(dAtA []byte) (int, error)
- func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payment) ProtoMessage()
- func (m *Payment) Reset()
- func (m *Payment) Size() (n int)
- func (m *Payment) String() string
- func (m *Payment) Unmarshal(dAtA []byte) error
- func (obj *Payment) ValidateBasic() error
- func (m *Payment) XXX_DiscardUnknown()
- func (m *Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payment) XXX_Merge(src proto.Message)
- func (m *Payment) XXX_Size() int
- func (m *Payment) XXX_Unmarshal(b []byte) error
- type Payment_State
- type QueryAccountsRequest
- func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountsRequest) GetOwner() string
- func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
- func (m *QueryAccountsRequest) GetScope() string
- func (m *QueryAccountsRequest) GetState() string
- func (m *QueryAccountsRequest) GetXid() string
- func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsRequest) ProtoMessage()
- func (m *QueryAccountsRequest) Reset()
- func (m *QueryAccountsRequest) Size() (n int)
- func (m *QueryAccountsRequest) String() string
- func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsRequest) XXX_DiscardUnknown()
- func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountsRequest) XXX_Size() int
- func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountsResponse
- func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountsResponse) GetAccounts() []Account
- func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
- func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsResponse) ProtoMessage()
- func (m *QueryAccountsResponse) Reset()
- func (m *QueryAccountsResponse) Size() (n int)
- func (m *QueryAccountsResponse) String() string
- func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsResponse) XXX_DiscardUnknown()
- func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountsResponse) XXX_Size() int
- func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPaymentsRequest
- func (*QueryPaymentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPaymentsRequest) GetId() string
- func (m *QueryPaymentsRequest) GetOwner() string
- func (m *QueryPaymentsRequest) GetPagination() *query.PageRequest
- func (m *QueryPaymentsRequest) GetScope() string
- func (m *QueryPaymentsRequest) GetState() string
- func (m *QueryPaymentsRequest) GetXid() string
- func (m *QueryPaymentsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentsRequest) ProtoMessage()
- func (m *QueryPaymentsRequest) Reset()
- func (m *QueryPaymentsRequest) Size() (n int)
- func (m *QueryPaymentsRequest) String() string
- func (m *QueryPaymentsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentsRequest) XXX_DiscardUnknown()
- func (m *QueryPaymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPaymentsRequest) XXX_Size() int
- func (m *QueryPaymentsRequest) XXX_Unmarshal(b []byte) error
- type QueryPaymentsResponse
- func (*QueryPaymentsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPaymentsResponse) GetPagination() *query.PageResponse
- func (m *QueryPaymentsResponse) GetPayments() []Payment
- func (m *QueryPaymentsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPaymentsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPaymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPaymentsResponse) ProtoMessage()
- func (m *QueryPaymentsResponse) Reset()
- func (m *QueryPaymentsResponse) Size() (n int)
- func (m *QueryPaymentsResponse) String() string
- func (m *QueryPaymentsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPaymentsResponse) XXX_DiscardUnknown()
- func (m *QueryPaymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPaymentsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPaymentsResponse) XXX_Size() int
- func (m *QueryPaymentsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
const (
// ModuleName is the module name constant used in many places
ModuleName = "escrow"
// StoreKey is the store key string for deployment
StoreKey = ModuleName
// RouterKey is the message route for deployment
RouterKey = ModuleName
)
Variables ¶
var (
ErrAccountExists = sdkerrors.Register(ModuleName, errAccountExists, "account exists")
ErrAccountClosed = sdkerrors.Register(ModuleName, errAccountClosed, "account closed")
ErrAccountNotFound = sdkerrors.Register(ModuleName, errAccountNotFound, "account not found")
ErrAccountOverdrawn = sdkerrors.Register(ModuleName, errAccountOverdrawn, "account overdrawn")
ErrInvalidDenomination = sdkerrors.Register(ModuleName, errInvalidDenomination, "invalid denomination")
ErrPaymentExists = sdkerrors.Register(ModuleName, errPaymentExists, "payment exists")
ErrPaymentClosed = sdkerrors.Register(ModuleName, errPaymentClosed, "payment closed")
ErrPaymentNotFound = sdkerrors.Register(ModuleName, errPaymentNotFound, "payment not found")
ErrPaymentRateZero = sdkerrors.Register(ModuleName, errPaymentRateZero, "payment rate zero")
ErrInvalidPayment = sdkerrors.Register(ModuleName, errInvalidPayment, "invalid payment")
ErrInvalidSettlement = sdkerrors.Register(ModuleName, errInvalidSettlement, "invalid settlement")
ErrInvalidAccountID = sdkerrors.Register(ModuleName, errInvalidAccountID, "invalid account ID")
ErrInvalidAccount = sdkerrors.Register(ModuleName, errInvalidAccount, "invalid account")
)
var (
ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
var Account_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "closed",
3: "overdrawn",
}
var Account_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"closed": 2,
"overdrawn": 3,
}
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())
)
var Payment_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "closed",
3: "overdrawn",
}
var Payment_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"closed": 2,
"overdrawn": 3,
}
Functions ¶
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 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Account ¶
type Account struct {
ID AccountID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner" yaml:"owner"`
State Account_State `protobuf:"varint,3,opt,name=state,proto3,enum=akash.escrow.v1beta1.Account_State" json:"state" yaml:"state"`
Balance types.Coin `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance" yaml:"balance"`
Transferred types.Coin `protobuf:"bytes,5,opt,name=transferred,proto3" json:"transferred" yaml:"transferred"`
SettledAt int64 `protobuf:"varint,6,opt,name=settled_at,json=settledAt,proto3" json:"settledAt" yaml:"settledAt"`
}
Account stores state for an escrow account
func (*Account) Descriptor ¶
func (*Account) Descriptor() ([]byte, []int)
func (*Account) GetBalance ¶
func (m *Account) GetBalance() types.Coin
func (*Account) GetSettledAt ¶
func (m *Account) GetSettledAt() int64
func (*Account) GetTransferred ¶
func (m *Account) GetTransferred() types.Coin
func (*Account) MarshalToSizedBuffer ¶
func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ValidateBasic ¶
func (obj *Account) ValidateBasic() error
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Account) XXX_Unmarshal ¶
func (m *Account) XXX_Unmarshal(b []byte) error
type AccountID ¶
type AccountID struct {
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope" yaml:"scope"`
XID string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid" yaml:"xid"`
}
AccountID is the account identifier
func (*AccountID) Descriptor ¶
func (*AccountID) Descriptor() ([]byte, []int)
func (*AccountID) MarshalToSizedBuffer ¶
func (m *AccountID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccountID) ProtoMessage ¶
func (*AccountID) ProtoMessage()
func (*AccountID) ValidateBasic ¶
func (obj *AccountID) ValidateBasic() error
func (*AccountID) XXX_DiscardUnknown ¶
func (m *AccountID) XXX_DiscardUnknown()
func (*AccountID) XXX_Marshal ¶
func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountID) XXX_Unmarshal ¶
func (m *AccountID) XXX_Unmarshal(b []byte) error
type Account_State ¶
type Account_State int32
State stores state for an escrow account
const (
// AccountStateInvalid is an invalid state
AccountStateInvalid Account_State = 0
// AccountOpen is the state when an account is open
AccountOpen Account_State = 1
// AccountClosed is the state when an account is closed
AccountClosed Account_State = 2
// AccountOverdrawn is the state when an account is overdrawn
AccountOverdrawn Account_State = 3
)
func (Account_State) EnumDescriptor ¶
func (Account_State) EnumDescriptor() ([]byte, []int)
type GenesisState ¶
type GenesisState struct {
Accounts []Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts" yaml:"accounts"`
Payments []Payment `protobuf:"bytes,2,rep,name=payments,proto3" json:"payments" yaml:"payments"`
}
GenesisState defines the basic genesis state used by escrow module
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAccounts ¶
func (m *GenesisState) GetAccounts() []Account
func (*GenesisState) GetPayments ¶
func (m *GenesisState) GetPayments() []Payment
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
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_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Payment ¶
type Payment struct {
AccountID AccountID `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"accountID" yaml:"accountID"`
PaymentID string `protobuf:"bytes,2,opt,name=payment_id,json=paymentId,proto3" json:"paymentID" yaml:"paymentID"`
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner" yaml:"owner"`
State Payment_State `protobuf:"varint,4,opt,name=state,proto3,enum=akash.escrow.v1beta1.Payment_State" json:"state" yaml:"state"`
Rate types.Coin `protobuf:"bytes,5,opt,name=rate,proto3" json:"rate" yaml:"rate"`
Balance types.Coin `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance" yaml:"balance"`
Withdrawn types.Coin `protobuf:"bytes,7,opt,name=withdrawn,proto3" json:"withdrawn" yaml:"withdrawn"`
}
Payment stores state for a payment
func (*Payment) Descriptor ¶
func (*Payment) Descriptor() ([]byte, []int)
func (*Payment) GetAccountID ¶
func (m *Payment) GetAccountID() AccountID
func (*Payment) GetBalance ¶
func (m *Payment) GetBalance() types.Coin
func (*Payment) GetPaymentID ¶
func (m *Payment) GetPaymentID() string
func (*Payment) GetWithdrawn ¶
func (m *Payment) GetWithdrawn() types.Coin
func (*Payment) MarshalToSizedBuffer ¶
func (m *Payment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) ValidateBasic ¶
func (obj *Payment) ValidateBasic() error
func (*Payment) XXX_DiscardUnknown ¶
func (m *Payment) XXX_DiscardUnknown()
func (*Payment) XXX_Marshal ¶
func (m *Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Payment) XXX_Unmarshal ¶
func (m *Payment) XXX_Unmarshal(b []byte) error
type Payment_State ¶
type Payment_State int32
Payment State
const (
// PaymentStateInvalid is the state when the payment is invalid
PaymentStateInvalid Payment_State = 0
// PaymentStateOpen is the state when the payment is open
PaymentOpen Payment_State = 1
// PaymentStateClosed is the state when the payment is closed
PaymentClosed Payment_State = 2
// PaymentStateOverdrawn is the state when the payment is overdrawn
PaymentOverdrawn Payment_State = 3
)
func (Payment_State) EnumDescriptor ¶
func (Payment_State) EnumDescriptor() ([]byte, []int)
type QueryAccountsRequest ¶
type QueryAccountsRequest struct {
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
Xid string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid,omitempty"`
Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryAccountRequest is request type for the Query/Account RPC method
func (*QueryAccountsRequest) Descriptor ¶
func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
func (*QueryAccountsRequest) GetPagination ¶
func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
func (*QueryAccountsRequest) Marshal ¶
func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountsRequest) MarshalTo ¶
func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsRequest) MarshalToSizedBuffer ¶
func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsRequest) ProtoMessage ¶
func (*QueryAccountsRequest) ProtoMessage()
func (*QueryAccountsRequest) Unmarshal ¶
func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountsRequest) XXX_DiscardUnknown ¶
func (m *QueryAccountsRequest) XXX_DiscardUnknown()
func (*QueryAccountsRequest) XXX_Marshal ¶
func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsRequest) XXX_Merge ¶
func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
func (*QueryAccountsRequest) XXX_Unmarshal ¶
func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
type QueryAccountsResponse ¶
type QueryAccountsResponse struct {
Accounts []Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryProvidersResponse is response type for the Query/Providers RPC method
func (*QueryAccountsResponse) Descriptor ¶
func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
func (*QueryAccountsResponse) GetAccounts ¶
func (m *QueryAccountsResponse) GetAccounts() []Account
func (*QueryAccountsResponse) GetPagination ¶
func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
func (*QueryAccountsResponse) Marshal ¶
func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountsResponse) MarshalTo ¶
func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsResponse) ProtoMessage ¶
func (*QueryAccountsResponse) ProtoMessage()
func (*QueryAccountsResponse) Unmarshal ¶
func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountsResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountsResponse) XXX_DiscardUnknown()
func (*QueryAccountsResponse) XXX_Marshal ¶
func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsResponse) XXX_Merge ¶
func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
func (*QueryAccountsResponse) XXX_Unmarshal ¶
func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
// Accounts queries all accounts
Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
// Payments queries all payments
Payments(ctx context.Context, in *QueryPaymentsRequest, opts ...grpc.CallOption) (*QueryPaymentsResponse, 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 QueryPaymentsRequest ¶
type QueryPaymentsRequest struct {
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
Xid string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
Pagination *query.PageRequest `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryPaymentRequest is request type for the Query/Payment RPC method
func (*QueryPaymentsRequest) Descriptor ¶
func (*QueryPaymentsRequest) Descriptor() ([]byte, []int)
func (*QueryPaymentsRequest) GetPagination ¶
func (m *QueryPaymentsRequest) GetPagination() *query.PageRequest
func (*QueryPaymentsRequest) Marshal ¶
func (m *QueryPaymentsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPaymentsRequest) MarshalTo ¶
func (m *QueryPaymentsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentsRequest) MarshalToSizedBuffer ¶
func (m *QueryPaymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentsRequest) ProtoMessage ¶
func (*QueryPaymentsRequest) ProtoMessage()
func (*QueryPaymentsRequest) Unmarshal ¶
func (m *QueryPaymentsRequest) Unmarshal(dAtA []byte) error
func (*QueryPaymentsRequest) XXX_DiscardUnknown ¶
func (m *QueryPaymentsRequest) XXX_DiscardUnknown()
func (*QueryPaymentsRequest) XXX_Marshal ¶
func (m *QueryPaymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentsRequest) XXX_Merge ¶
func (m *QueryPaymentsRequest) XXX_Merge(src proto.Message)
func (*QueryPaymentsRequest) XXX_Unmarshal ¶
func (m *QueryPaymentsRequest) XXX_Unmarshal(b []byte) error
type QueryPaymentsResponse ¶
type QueryPaymentsResponse struct {
Payments []Payment `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryProvidersResponse is response type for the Query/Providers RPC method
func (*QueryPaymentsResponse) Descriptor ¶
func (*QueryPaymentsResponse) Descriptor() ([]byte, []int)
func (*QueryPaymentsResponse) GetPagination ¶
func (m *QueryPaymentsResponse) GetPagination() *query.PageResponse
func (*QueryPaymentsResponse) GetPayments ¶
func (m *QueryPaymentsResponse) GetPayments() []Payment
func (*QueryPaymentsResponse) Marshal ¶
func (m *QueryPaymentsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPaymentsResponse) MarshalTo ¶
func (m *QueryPaymentsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPaymentsResponse) MarshalToSizedBuffer ¶
func (m *QueryPaymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPaymentsResponse) ProtoMessage ¶
func (*QueryPaymentsResponse) ProtoMessage()
func (*QueryPaymentsResponse) Unmarshal ¶
func (m *QueryPaymentsResponse) Unmarshal(dAtA []byte) error
func (*QueryPaymentsResponse) XXX_DiscardUnknown ¶
func (m *QueryPaymentsResponse) XXX_DiscardUnknown()
func (*QueryPaymentsResponse) XXX_Marshal ¶
func (m *QueryPaymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPaymentsResponse) XXX_Merge ¶
func (m *QueryPaymentsResponse) XXX_Merge(src proto.Message)
func (*QueryPaymentsResponse) XXX_Unmarshal ¶
func (m *QueryPaymentsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
// Accounts queries all accounts
Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
// Payments queries all payments
Payments(context.Context, *QueryPaymentsRequest) (*QueryPaymentsResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.