types

package
v0.0.0-...-c01b697 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 26 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 name of the module
	ModuleName = "inbox"

	// StoreKey is the string store representation
	StoreKey string = ModuleName

	// QuerierRoute is the querier route for the module
	QuerierRoute string = ModuleName

	// RouterKey is the inbox router key for the module
	RouterKey string = ModuleName
)
View Source
const (
	// MsgRoute identifies transaction types
	MsgRoute = "inbox"

	TypeMsgSend = "inbox"
)

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	ErrInvalidLengthInbox        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInbox          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupInbox = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	PrefixMsg                    = []byte{0x01}
	PrefixMsgBySender            = []byte{0x02}
	PrefixMsgByReceiver          = []byte{0x03}
	PrefixMsgByReceiverAndTopics = []byte{0x04}
	KeyLastMsgId                 = []byte{0x05}
)
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 (
	ErrMsgDoesNotExist = sdkerrors.Register(ModuleName, 1, "Msg does not exist")
)

module sentinel errors

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 EventMsgSend

type EventMsgSend struct {
	// msg sender address
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// msg recipient address
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// msg id
	Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
}

EventMsgSend defines the event for MsgSend.

func (*EventMsgSend) Descriptor

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

func (*EventMsgSend) GetId

func (m *EventMsgSend) GetId() uint64

func (*EventMsgSend) GetReceiver

func (m *EventMsgSend) GetReceiver() string

func (*EventMsgSend) GetSender

func (m *EventMsgSend) GetSender() string

func (*EventMsgSend) Marshal

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

func (*EventMsgSend) MarshalTo

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

func (*EventMsgSend) MarshalToSizedBuffer

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

func (*EventMsgSend) ProtoMessage

func (*EventMsgSend) ProtoMessage()

func (*EventMsgSend) Reset

func (m *EventMsgSend) Reset()

func (*EventMsgSend) Size

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

func (*EventMsgSend) String

func (m *EventMsgSend) String() string

func (*EventMsgSend) Unmarshal

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

func (*EventMsgSend) XXX_DiscardUnknown

func (m *EventMsgSend) XXX_DiscardUnknown()

func (*EventMsgSend) XXX_Marshal

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

func (*EventMsgSend) XXX_Merge

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

func (*EventMsgSend) XXX_Size

func (m *EventMsgSend) XXX_Size() int

func (*EventMsgSend) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Messages []Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages"`
}

GenesisState defines the inbox module's genesis state

func (*GenesisState) Descriptor

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

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 Msg

type Msg struct {
	// msg id
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// msg sender address
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// msg recipient address
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty" yaml:"to_address"`
	// msg topics
	Topics string `protobuf:"bytes,4,opt,name=topics,proto3" json:"topics,omitempty" yaml:"the_message_topics"`
	// msg message
	Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty" yaml:"message"`
}

Msg defines the inbox item - msg

func NewMsg

func NewMsg(sender, to, topics, message string) *Msg

NewMsg constructs a new Msg instance

func (*Msg) Descriptor

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

func (Msg) GetId

func (sm Msg) GetId() uint64

GetFrom implements exported.MsgI

func (Msg) GetMessage

func (sm Msg) GetMessage() string

GetMessage implements exported.MsgI

func (Msg) GetSender

func (sm Msg) GetSender() string

GetSender implements exported.MsgI

func (Msg) GetTo

func (sm Msg) GetTo() string

GetDenom implements exported.MsgI

func (Msg) GetTopics

func (sm Msg) GetTopics() string

GetTopics implements exported.MsgI

func (*Msg) Marshal

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

func (*Msg) MarshalTo

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

func (*Msg) MarshalToSizedBuffer

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

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) Reset

func (m *Msg) Reset()

func (*Msg) Size

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

func (Msg) String

func (sm Msg) String() string

func (*Msg) Unmarshal

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

func (Msg) Validate

func (sm Msg) Validate() error

func (*Msg) XXX_DiscardUnknown

func (m *Msg) XXX_DiscardUnknown()

func (*Msg) XXX_Marshal

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

func (*Msg) XXX_Merge

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

func (*Msg) XXX_Size

func (m *Msg) XXX_Size() int

func (*Msg) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, 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 MsgSend

type MsgSend struct {
	// msg sender address
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// msg recipient address
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty" yaml:"to_address"`
	// msg topics
	Topics string `protobuf:"bytes,3,opt,name=topics,proto3" json:"topics,omitempty" yaml:"the_message_topics"`
	// msg message
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty" yaml:"message"`
}

MsgSend defines a message for sending a message

func NewMsgSend

func NewMsgSend(sender, to, topics, message string) *MsgSend

NewMsg - construct token issue msg.

func (*MsgSend) Descriptor

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

func (MsgSend) GetSignBytes

func (mm MsgSend) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgSend) GetSigners

func (mm MsgSend) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgSend) Marshal

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

func (*MsgSend) MarshalTo

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

func (*MsgSend) MarshalToSizedBuffer

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

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) Reset

func (m *MsgSend) Reset()

func (MsgSend) Route

func (mm MsgSend) Route() string

Route Implements Msg.

func (*MsgSend) Size

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

func (*MsgSend) String

func (m *MsgSend) String() string

func (MsgSend) Type

func (mm MsgSend) Type() string

Type Implements Msg.

func (*MsgSend) Unmarshal

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

func (MsgSend) ValidateBasic

func (mm MsgSend) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgSend) XXX_DiscardUnknown

func (m *MsgSend) XXX_DiscardUnknown()

func (*MsgSend) XXX_Marshal

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

func (*MsgSend) XXX_Merge

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

func (*MsgSend) XXX_Size

func (m *MsgSend) XXX_Size() int

func (*MsgSend) XXX_Unmarshal

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

type MsgSendResponse

type MsgSendResponse struct {
	// msg id
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// msg sender address
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// msg recipient address
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// msg topics
	Topics string `protobuf:"bytes,4,opt,name=topics,proto3" json:"topics,omitempty"`
	// msg message
	Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
}

MsgSendResponse defines the MsgSend response type

func (*MsgSendResponse) Descriptor

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

func (*MsgSendResponse) Marshal

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

func (*MsgSendResponse) MarshalTo

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

func (*MsgSendResponse) MarshalToSizedBuffer

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

func (*MsgSendResponse) ProtoMessage

func (*MsgSendResponse) ProtoMessage()

func (*MsgSendResponse) Reset

func (m *MsgSendResponse) Reset()

func (*MsgSendResponse) Size

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

func (*MsgSendResponse) String

func (m *MsgSendResponse) String() string

func (*MsgSendResponse) Unmarshal

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

func (*MsgSendResponse) XXX_DiscardUnknown

func (m *MsgSendResponse) XXX_DiscardUnknown()

func (*MsgSendResponse) XXX_Marshal

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

func (*MsgSendResponse) XXX_Merge

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

func (*MsgSendResponse) XXX_Size

func (m *MsgSendResponse) XXX_Size() int

func (*MsgSendResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
}

MsgServer is the server API for Msg service.

type QueryClient

type QueryClient interface {
	// SentMessages returns messages sent from user
	SentMessages(ctx context.Context, in *SentMessagesRequest, opts ...grpc.CallOption) (*SentMessagesResponse, error)
	// ReceivedMessages returns messages received by user
	ReceivedMessages(ctx context.Context, in *ReceivedMessagesRequest, opts ...grpc.CallOption) (*ReceivedMessagesResponse, 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 QueryServer

type QueryServer interface {
	// SentMessages returns messages sent from user
	SentMessages(context.Context, *SentMessagesRequest) (*SentMessagesResponse, error)
	// ReceivedMessages returns messages received by user
	ReceivedMessages(context.Context, *ReceivedMessagesRequest) (*ReceivedMessagesResponse, error)
}

QueryServer is the server API for Query service.

type ReceivedMessagesRequest

type ReceivedMessagesRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Topics  string `protobuf:"bytes,2,opt,name=topics,proto3" json:"topics,omitempty"`
}

ReceivedMessagesRequest is request type for the Query/ReceivedMessages RPC method

func (*ReceivedMessagesRequest) Descriptor

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

func (*ReceivedMessagesRequest) GetAddress

func (m *ReceivedMessagesRequest) GetAddress() string

func (*ReceivedMessagesRequest) GetTopics

func (m *ReceivedMessagesRequest) GetTopics() string

func (*ReceivedMessagesRequest) Marshal

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

func (*ReceivedMessagesRequest) MarshalTo

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

func (*ReceivedMessagesRequest) MarshalToSizedBuffer

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

func (*ReceivedMessagesRequest) ProtoMessage

func (*ReceivedMessagesRequest) ProtoMessage()

func (*ReceivedMessagesRequest) Reset

func (m *ReceivedMessagesRequest) Reset()

func (*ReceivedMessagesRequest) Size

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

func (*ReceivedMessagesRequest) String

func (m *ReceivedMessagesRequest) String() string

func (*ReceivedMessagesRequest) Unmarshal

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

func (*ReceivedMessagesRequest) XXX_DiscardUnknown

func (m *ReceivedMessagesRequest) XXX_DiscardUnknown()

func (*ReceivedMessagesRequest) XXX_Marshal

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

func (*ReceivedMessagesRequest) XXX_Merge

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

func (*ReceivedMessagesRequest) XXX_Size

func (m *ReceivedMessagesRequest) XXX_Size() int

func (*ReceivedMessagesRequest) XXX_Unmarshal

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

type ReceivedMessagesResponse

type ReceivedMessagesResponse struct {
	Messages []*Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}

ReceivedMessagesResponse is response type for the Query/ReceivedMessages RPC method

func (*ReceivedMessagesResponse) Descriptor

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

func (*ReceivedMessagesResponse) GetMessages

func (m *ReceivedMessagesResponse) GetMessages() []*Msg

func (*ReceivedMessagesResponse) Marshal

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

func (*ReceivedMessagesResponse) MarshalTo

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

func (*ReceivedMessagesResponse) MarshalToSizedBuffer

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

func (*ReceivedMessagesResponse) ProtoMessage

func (*ReceivedMessagesResponse) ProtoMessage()

func (*ReceivedMessagesResponse) Reset

func (m *ReceivedMessagesResponse) Reset()

func (*ReceivedMessagesResponse) Size

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

func (*ReceivedMessagesResponse) String

func (m *ReceivedMessagesResponse) String() string

func (*ReceivedMessagesResponse) Unmarshal

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

func (*ReceivedMessagesResponse) XXX_DiscardUnknown

func (m *ReceivedMessagesResponse) XXX_DiscardUnknown()

func (*ReceivedMessagesResponse) XXX_Marshal

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

func (*ReceivedMessagesResponse) XXX_Merge

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

func (*ReceivedMessagesResponse) XXX_Size

func (m *ReceivedMessagesResponse) XXX_Size() int

func (*ReceivedMessagesResponse) XXX_Unmarshal

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

type SentMessagesRequest

type SentMessagesRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

SentMessagesRequest is request type for the Query/SentMessages RPC method

func (*SentMessagesRequest) Descriptor

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

func (*SentMessagesRequest) GetAddress

func (m *SentMessagesRequest) GetAddress() string

func (*SentMessagesRequest) Marshal

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

func (*SentMessagesRequest) MarshalTo

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

func (*SentMessagesRequest) MarshalToSizedBuffer

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

func (*SentMessagesRequest) ProtoMessage

func (*SentMessagesRequest) ProtoMessage()

func (*SentMessagesRequest) Reset

func (m *SentMessagesRequest) Reset()

func (*SentMessagesRequest) Size

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

func (*SentMessagesRequest) String

func (m *SentMessagesRequest) String() string

func (*SentMessagesRequest) Unmarshal

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

func (*SentMessagesRequest) XXX_DiscardUnknown

func (m *SentMessagesRequest) XXX_DiscardUnknown()

func (*SentMessagesRequest) XXX_Marshal

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

func (*SentMessagesRequest) XXX_Merge

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

func (*SentMessagesRequest) XXX_Size

func (m *SentMessagesRequest) XXX_Size() int

func (*SentMessagesRequest) XXX_Unmarshal

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

type SentMessagesResponse

type SentMessagesResponse struct {
	Messages []*Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}

SentMessagesResponse is response type for the Query/SentMessages RPC method

func (*SentMessagesResponse) Descriptor

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

func (*SentMessagesResponse) GetMessages

func (m *SentMessagesResponse) GetMessages() []*Msg

func (*SentMessagesResponse) Marshal

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

func (*SentMessagesResponse) MarshalTo

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

func (*SentMessagesResponse) MarshalToSizedBuffer

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

func (*SentMessagesResponse) ProtoMessage

func (*SentMessagesResponse) ProtoMessage()

func (*SentMessagesResponse) Reset

func (m *SentMessagesResponse) Reset()

func (*SentMessagesResponse) Size

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

func (*SentMessagesResponse) String

func (m *SentMessagesResponse) String() string

func (*SentMessagesResponse) Unmarshal

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

func (*SentMessagesResponse) XXX_DiscardUnknown

func (m *SentMessagesResponse) XXX_DiscardUnknown()

func (*SentMessagesResponse) XXX_Marshal

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

func (*SentMessagesResponse) XXX_Merge

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

func (*SentMessagesResponse) XXX_Size

func (m *SentMessagesResponse) XXX_Size() int

func (*SentMessagesResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Send

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ReceivedMessages

func (*UnimplementedQueryServer) SentMessages

Jump to

Keyboard shortcuts

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