Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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 EventMsgSend
- func (*EventMsgSend) Descriptor() ([]byte, []int)
- func (m *EventMsgSend) GetId() uint64
- func (m *EventMsgSend) GetReceiver() string
- func (m *EventMsgSend) GetSender() string
- func (m *EventMsgSend) Marshal() (dAtA []byte, err error)
- func (m *EventMsgSend) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMsgSend) ProtoMessage()
- func (m *EventMsgSend) Reset()
- func (m *EventMsgSend) Size() (n int)
- func (m *EventMsgSend) String() string
- func (m *EventMsgSend) Unmarshal(dAtA []byte) error
- func (m *EventMsgSend) XXX_DiscardUnknown()
- func (m *EventMsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMsgSend) XXX_Merge(src proto.Message)
- func (m *EventMsgSend) XXX_Size() int
- func (m *EventMsgSend) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (gs GenesisState) Validate() 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 Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (sm Msg) GetId() uint64
- func (sm Msg) GetMessage() string
- func (sm Msg) GetSender() string
- func (sm Msg) GetTo() string
- func (sm Msg) GetTopics() string
- func (m *Msg) Marshal() (dAtA []byte, err error)
- func (m *Msg) MarshalTo(dAtA []byte) (int, error)
- func (m *Msg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) Size() (n int)
- func (sm Msg) String() string
- func (m *Msg) Unmarshal(dAtA []byte) error
- func (sm Msg) Validate() error
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)
- func (mm MsgSend) GetSignBytes() []byte
- func (mm MsgSend) GetSigners() []sdk.AccAddress
- func (m *MsgSend) Marshal() (dAtA []byte, err error)
- func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSend) ProtoMessage()
- func (m *MsgSend) Reset()
- func (mm MsgSend) Route() string
- func (m *MsgSend) Size() (n int)
- func (m *MsgSend) String() string
- func (mm MsgSend) Type() string
- func (m *MsgSend) Unmarshal(dAtA []byte) error
- func (mm MsgSend) ValidateBasic() error
- func (m *MsgSend) XXX_DiscardUnknown()
- func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSend) XXX_Merge(src proto.Message)
- func (m *MsgSend) XXX_Size() int
- func (m *MsgSend) XXX_Unmarshal(b []byte) error
- type MsgSendResponse
- func (*MsgSendResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendResponse) ProtoMessage()
- func (m *MsgSendResponse) Reset()
- func (m *MsgSendResponse) Size() (n int)
- func (m *MsgSendResponse) String() string
- func (m *MsgSendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendResponse) XXX_DiscardUnknown()
- func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendResponse) XXX_Size() int
- func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryServer
- type ReceivedMessagesRequest
- func (*ReceivedMessagesRequest) Descriptor() ([]byte, []int)
- func (m *ReceivedMessagesRequest) GetAddress() string
- func (m *ReceivedMessagesRequest) GetTopics() string
- func (m *ReceivedMessagesRequest) Marshal() (dAtA []byte, err error)
- func (m *ReceivedMessagesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ReceivedMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReceivedMessagesRequest) ProtoMessage()
- func (m *ReceivedMessagesRequest) Reset()
- func (m *ReceivedMessagesRequest) Size() (n int)
- func (m *ReceivedMessagesRequest) String() string
- func (m *ReceivedMessagesRequest) Unmarshal(dAtA []byte) error
- func (m *ReceivedMessagesRequest) XXX_DiscardUnknown()
- func (m *ReceivedMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceivedMessagesRequest) XXX_Merge(src proto.Message)
- func (m *ReceivedMessagesRequest) XXX_Size() int
- func (m *ReceivedMessagesRequest) XXX_Unmarshal(b []byte) error
- type ReceivedMessagesResponse
- func (*ReceivedMessagesResponse) Descriptor() ([]byte, []int)
- func (m *ReceivedMessagesResponse) GetMessages() []*Msg
- func (m *ReceivedMessagesResponse) Marshal() (dAtA []byte, err error)
- func (m *ReceivedMessagesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ReceivedMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReceivedMessagesResponse) ProtoMessage()
- func (m *ReceivedMessagesResponse) Reset()
- func (m *ReceivedMessagesResponse) Size() (n int)
- func (m *ReceivedMessagesResponse) String() string
- func (m *ReceivedMessagesResponse) Unmarshal(dAtA []byte) error
- func (m *ReceivedMessagesResponse) XXX_DiscardUnknown()
- func (m *ReceivedMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceivedMessagesResponse) XXX_Merge(src proto.Message)
- func (m *ReceivedMessagesResponse) XXX_Size() int
- func (m *ReceivedMessagesResponse) XXX_Unmarshal(b []byte) error
- type SentMessagesRequest
- func (*SentMessagesRequest) Descriptor() ([]byte, []int)
- func (m *SentMessagesRequest) GetAddress() string
- func (m *SentMessagesRequest) Marshal() (dAtA []byte, err error)
- func (m *SentMessagesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SentMessagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SentMessagesRequest) ProtoMessage()
- func (m *SentMessagesRequest) Reset()
- func (m *SentMessagesRequest) Size() (n int)
- func (m *SentMessagesRequest) String() string
- func (m *SentMessagesRequest) Unmarshal(dAtA []byte) error
- func (m *SentMessagesRequest) XXX_DiscardUnknown()
- func (m *SentMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SentMessagesRequest) XXX_Merge(src proto.Message)
- func (m *SentMessagesRequest) XXX_Size() int
- func (m *SentMessagesRequest) XXX_Unmarshal(b []byte) error
- type SentMessagesResponse
- func (*SentMessagesResponse) Descriptor() ([]byte, []int)
- func (m *SentMessagesResponse) GetMessages() []*Msg
- func (m *SentMessagesResponse) Marshal() (dAtA []byte, err error)
- func (m *SentMessagesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SentMessagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SentMessagesResponse) ProtoMessage()
- func (m *SentMessagesResponse) Reset()
- func (m *SentMessagesResponse) Size() (n int)
- func (m *SentMessagesResponse) String() string
- func (m *SentMessagesResponse) Unmarshal(dAtA []byte) error
- func (m *SentMessagesResponse) XXX_DiscardUnknown()
- func (m *SentMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SentMessagesResponse) XXX_Merge(src proto.Message)
- func (m *SentMessagesResponse) XXX_Size() int
- func (m *SentMessagesResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
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 )
const ( // MsgRoute identifies transaction types MsgRoute = "inbox" TypeMsgSend = "inbox" )
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthInbox = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInbox = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInbox = fmt.Errorf("proto: unexpected end of group") )
var ( PrefixMsg = []byte{0x01} PrefixMsgBySender = []byte{0x02} PrefixMsgByReceiver = []byte{0x03} PrefixMsgByReceiverAndTopics = []byte{0x04} KeyLastMsgId = []byte{0x05} )
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ErrMsgDoesNotExist = sdkerrors.Register(ModuleName, 1, "Msg does not exist")
)
module sentinel errors
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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) 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) 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 (*Msg) Descriptor ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
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 ¶
NewMsg - construct token issue msg.
func (*MsgSend) Descriptor ¶
func (MsgSend) GetSigners ¶
func (mm MsgSend) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgSend) MarshalToSizedBuffer ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (MsgSend) ValidateBasic ¶
ValidateBasic Implements Msg.
func (*MsgSend) XXX_DiscardUnknown ¶
func (m *MsgSend) XXX_DiscardUnknown()
func (*MsgSend) XXX_Marshal ¶
func (*MsgSend) XXX_Unmarshal ¶
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) 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 ¶
func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ReceivedMessages ¶
func (*UnimplementedQueryServer) ReceivedMessages(ctx context.Context, req *ReceivedMessagesRequest) (*ReceivedMessagesResponse, error)
func (*UnimplementedQueryServer) SentMessages ¶
func (*UnimplementedQueryServer) SentMessages(ctx context.Context, req *SentMessagesRequest) (*SentMessagesResponse, error)