Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type DeleteMessageReply
- func (*DeleteMessageReply) Descriptor() ([]byte, []int)
- func (*DeleteMessageReply) ProtoMessage()
- func (m *DeleteMessageReply) Reset()
- func (m *DeleteMessageReply) String() string
- func (m *DeleteMessageReply) XXX_DiscardUnknown()
- func (m *DeleteMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteMessageReply) XXX_Merge(src proto.Message)
- func (m *DeleteMessageReply) XXX_Size() int
- func (m *DeleteMessageReply) XXX_Unmarshal(b []byte) error
- type DeleteMessageRequest
- func (*DeleteMessageRequest) Descriptor() ([]byte, []int)
- func (m *DeleteMessageRequest) GetID() string
- func (*DeleteMessageRequest) ProtoMessage()
- func (m *DeleteMessageRequest) Reset()
- func (m *DeleteMessageRequest) String() string
- func (m *DeleteMessageRequest) XXX_DiscardUnknown()
- func (m *DeleteMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteMessageRequest) XXX_Merge(src proto.Message)
- func (m *DeleteMessageRequest) XXX_Size() int
- func (m *DeleteMessageRequest) XXX_Unmarshal(b []byte) error
- type GetThreadReply
- func (*GetThreadReply) Descriptor() ([]byte, []int)
- func (m *GetThreadReply) GetID() []byte
- func (m *GetThreadReply) GetIsDB() bool
- func (m *GetThreadReply) GetName() string
- func (*GetThreadReply) ProtoMessage()
- func (m *GetThreadReply) Reset()
- func (m *GetThreadReply) String() string
- func (m *GetThreadReply) XXX_DiscardUnknown()
- func (m *GetThreadReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetThreadReply) XXX_Merge(src proto.Message)
- func (m *GetThreadReply) XXX_Size() int
- func (m *GetThreadReply) XXX_Unmarshal(b []byte) error
- type GetThreadRequest
- func (*GetThreadRequest) Descriptor() ([]byte, []int)
- func (m *GetThreadRequest) GetName() string
- func (*GetThreadRequest) ProtoMessage()
- func (m *GetThreadRequest) Reset()
- func (m *GetThreadRequest) String() string
- func (m *GetThreadRequest) XXX_DiscardUnknown()
- func (m *GetThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetThreadRequest) XXX_Merge(src proto.Message)
- func (m *GetThreadRequest) XXX_Size() int
- func (m *GetThreadRequest) XXX_Unmarshal(b []byte) error
- type ListInboxMessagesRequest
- func (*ListInboxMessagesRequest) Descriptor() ([]byte, []int)
- func (m *ListInboxMessagesRequest) GetAscending() bool
- func (m *ListInboxMessagesRequest) GetLimit() int64
- func (m *ListInboxMessagesRequest) GetSeek() string
- func (m *ListInboxMessagesRequest) GetStatus() ListInboxMessagesRequest_Status
- func (*ListInboxMessagesRequest) ProtoMessage()
- func (m *ListInboxMessagesRequest) Reset()
- func (m *ListInboxMessagesRequest) String() string
- func (m *ListInboxMessagesRequest) XXX_DiscardUnknown()
- func (m *ListInboxMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListInboxMessagesRequest) XXX_Merge(src proto.Message)
- func (m *ListInboxMessagesRequest) XXX_Size() int
- func (m *ListInboxMessagesRequest) XXX_Unmarshal(b []byte) error
- type ListInboxMessagesRequest_Status
- type ListMessagesReply
- func (*ListMessagesReply) Descriptor() ([]byte, []int)
- func (m *ListMessagesReply) GetMessages() []*Message
- func (*ListMessagesReply) ProtoMessage()
- func (m *ListMessagesReply) Reset()
- func (m *ListMessagesReply) String() string
- func (m *ListMessagesReply) XXX_DiscardUnknown()
- func (m *ListMessagesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListMessagesReply) XXX_Merge(src proto.Message)
- func (m *ListMessagesReply) XXX_Size() int
- func (m *ListMessagesReply) XXX_Unmarshal(b []byte) error
- type ListSentboxMessagesRequest
- func (*ListSentboxMessagesRequest) Descriptor() ([]byte, []int)
- func (m *ListSentboxMessagesRequest) GetAscending() bool
- func (m *ListSentboxMessagesRequest) GetLimit() int64
- func (m *ListSentboxMessagesRequest) GetSeek() string
- func (*ListSentboxMessagesRequest) ProtoMessage()
- func (m *ListSentboxMessagesRequest) Reset()
- func (m *ListSentboxMessagesRequest) String() string
- func (m *ListSentboxMessagesRequest) XXX_DiscardUnknown()
- func (m *ListSentboxMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListSentboxMessagesRequest) XXX_Merge(src proto.Message)
- func (m *ListSentboxMessagesRequest) XXX_Size() int
- func (m *ListSentboxMessagesRequest) XXX_Unmarshal(b []byte) error
- type ListThreadsReply
- func (*ListThreadsReply) Descriptor() ([]byte, []int)
- func (m *ListThreadsReply) GetList() []*GetThreadReply
- func (*ListThreadsReply) ProtoMessage()
- func (m *ListThreadsReply) Reset()
- func (m *ListThreadsReply) String() string
- func (m *ListThreadsReply) XXX_DiscardUnknown()
- func (m *ListThreadsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListThreadsReply) XXX_Merge(src proto.Message)
- func (m *ListThreadsReply) XXX_Size() int
- func (m *ListThreadsReply) XXX_Unmarshal(b []byte) error
- type ListThreadsRequest
- func (*ListThreadsRequest) Descriptor() ([]byte, []int)
- func (*ListThreadsRequest) ProtoMessage()
- func (m *ListThreadsRequest) Reset()
- func (m *ListThreadsRequest) String() string
- func (m *ListThreadsRequest) XXX_DiscardUnknown()
- func (m *ListThreadsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListThreadsRequest) XXX_Merge(src proto.Message)
- func (m *ListThreadsRequest) XXX_Size() int
- func (m *ListThreadsRequest) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBody() []byte
- func (m *Message) GetCreatedAt() int64
- func (m *Message) GetFrom() string
- func (m *Message) GetID() string
- func (m *Message) GetReadAt() int64
- func (m *Message) GetSignature() []byte
- func (m *Message) GetTo() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type ReadInboxMessageReply
- func (*ReadInboxMessageReply) Descriptor() ([]byte, []int)
- func (m *ReadInboxMessageReply) GetReadAt() int64
- func (*ReadInboxMessageReply) ProtoMessage()
- func (m *ReadInboxMessageReply) Reset()
- func (m *ReadInboxMessageReply) String() string
- func (m *ReadInboxMessageReply) XXX_DiscardUnknown()
- func (m *ReadInboxMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadInboxMessageReply) XXX_Merge(src proto.Message)
- func (m *ReadInboxMessageReply) XXX_Size() int
- func (m *ReadInboxMessageReply) XXX_Unmarshal(b []byte) error
- type ReadInboxMessageRequest
- func (*ReadInboxMessageRequest) Descriptor() ([]byte, []int)
- func (m *ReadInboxMessageRequest) GetID() string
- func (*ReadInboxMessageRequest) ProtoMessage()
- func (m *ReadInboxMessageRequest) Reset()
- func (m *ReadInboxMessageRequest) String() string
- func (m *ReadInboxMessageRequest) XXX_DiscardUnknown()
- func (m *ReadInboxMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadInboxMessageRequest) XXX_Merge(src proto.Message)
- func (m *ReadInboxMessageRequest) XXX_Size() int
- func (m *ReadInboxMessageRequest) XXX_Unmarshal(b []byte) error
- type SendMessageReply
- func (*SendMessageReply) Descriptor() ([]byte, []int)
- func (m *SendMessageReply) GetCreatedAt() int64
- func (m *SendMessageReply) GetID() string
- func (*SendMessageReply) ProtoMessage()
- func (m *SendMessageReply) Reset()
- func (m *SendMessageReply) String() string
- func (m *SendMessageReply) XXX_DiscardUnknown()
- func (m *SendMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMessageReply) XXX_Merge(src proto.Message)
- func (m *SendMessageReply) XXX_Size() int
- func (m *SendMessageReply) XXX_Unmarshal(b []byte) error
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)
- func (m *SendMessageRequest) GetFromBody() []byte
- func (m *SendMessageRequest) GetFromSignature() []byte
- func (m *SendMessageRequest) GetTo() string
- func (m *SendMessageRequest) GetToBody() []byte
- func (m *SendMessageRequest) GetToSignature() []byte
- func (*SendMessageRequest) ProtoMessage()
- func (m *SendMessageRequest) Reset()
- func (m *SendMessageRequest) String() string
- func (m *SendMessageRequest) XXX_DiscardUnknown()
- func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendMessageRequest) XXX_Merge(src proto.Message)
- func (m *SendMessageRequest) XXX_Size() int
- func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error
- type SetupMailboxReply
- func (*SetupMailboxReply) Descriptor() ([]byte, []int)
- func (m *SetupMailboxReply) GetMailboxID() []byte
- func (*SetupMailboxReply) ProtoMessage()
- func (m *SetupMailboxReply) Reset()
- func (m *SetupMailboxReply) String() string
- func (m *SetupMailboxReply) XXX_DiscardUnknown()
- func (m *SetupMailboxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetupMailboxReply) XXX_Merge(src proto.Message)
- func (m *SetupMailboxReply) XXX_Size() int
- func (m *SetupMailboxReply) XXX_Unmarshal(b []byte) error
- type SetupMailboxRequest
- func (*SetupMailboxRequest) Descriptor() ([]byte, []int)
- func (*SetupMailboxRequest) ProtoMessage()
- func (m *SetupMailboxRequest) Reset()
- func (m *SetupMailboxRequest) String() string
- func (m *SetupMailboxRequest) XXX_DiscardUnknown()
- func (m *SetupMailboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetupMailboxRequest) XXX_Merge(src proto.Message)
- func (m *SetupMailboxRequest) XXX_Size() int
- func (m *SetupMailboxRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedAPIServer
- func (*UnimplementedAPIServer) DeleteInboxMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageReply, error)
- func (*UnimplementedAPIServer) DeleteSentboxMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageReply, error)
- func (*UnimplementedAPIServer) GetThread(ctx context.Context, req *GetThreadRequest) (*GetThreadReply, error)
- func (*UnimplementedAPIServer) ListInboxMessages(ctx context.Context, req *ListInboxMessagesRequest) (*ListMessagesReply, error)
- func (*UnimplementedAPIServer) ListSentboxMessages(ctx context.Context, req *ListSentboxMessagesRequest) (*ListMessagesReply, error)
- func (*UnimplementedAPIServer) ListThreads(ctx context.Context, req *ListThreadsRequest) (*ListThreadsReply, error)
- func (*UnimplementedAPIServer) ReadInboxMessage(ctx context.Context, req *ReadInboxMessageRequest) (*ReadInboxMessageReply, error)
- func (*UnimplementedAPIServer) SendMessage(ctx context.Context, req *SendMessageRequest) (*SendMessageReply, error)
- func (*UnimplementedAPIServer) SetupMailbox(ctx context.Context, req *SetupMailboxRequest) (*SetupMailboxReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ListInboxMessagesRequest_Status_name = map[int32]string{
0: "ALL",
1: "READ",
2: "UNREAD",
}
View Source
var ListInboxMessagesRequest_Status_value = map[string]int32{
"ALL": 0,
"READ": 1,
"UNREAD": 2,
}
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { GetThread(ctx context.Context, in *GetThreadRequest, opts ...grpc.CallOption) (*GetThreadReply, error) ListThreads(ctx context.Context, in *ListThreadsRequest, opts ...grpc.CallOption) (*ListThreadsReply, error) SetupMailbox(ctx context.Context, in *SetupMailboxRequest, opts ...grpc.CallOption) (*SetupMailboxReply, error) SendMessage(ctx context.Context, in *SendMessageRequest, opts ...grpc.CallOption) (*SendMessageReply, error) ListInboxMessages(ctx context.Context, in *ListInboxMessagesRequest, opts ...grpc.CallOption) (*ListMessagesReply, error) ListSentboxMessages(ctx context.Context, in *ListSentboxMessagesRequest, opts ...grpc.CallOption) (*ListMessagesReply, error) ReadInboxMessage(ctx context.Context, in *ReadInboxMessageRequest, opts ...grpc.CallOption) (*ReadInboxMessageReply, error) DeleteInboxMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageReply, error) DeleteSentboxMessage(ctx context.Context, in *DeleteMessageRequest, opts ...grpc.CallOption) (*DeleteMessageReply, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { GetThread(context.Context, *GetThreadRequest) (*GetThreadReply, error) ListThreads(context.Context, *ListThreadsRequest) (*ListThreadsReply, error) SetupMailbox(context.Context, *SetupMailboxRequest) (*SetupMailboxReply, error) SendMessage(context.Context, *SendMessageRequest) (*SendMessageReply, error) ListInboxMessages(context.Context, *ListInboxMessagesRequest) (*ListMessagesReply, error) ListSentboxMessages(context.Context, *ListSentboxMessagesRequest) (*ListMessagesReply, error) ReadInboxMessage(context.Context, *ReadInboxMessageRequest) (*ReadInboxMessageReply, error) DeleteInboxMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageReply, error) DeleteSentboxMessage(context.Context, *DeleteMessageRequest) (*DeleteMessageReply, error) }
APIServer is the server API for API service.
type DeleteMessageReply ¶ added in v1.0.14
type DeleteMessageReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteMessageReply) Descriptor ¶ added in v1.0.14
func (*DeleteMessageReply) Descriptor() ([]byte, []int)
func (*DeleteMessageReply) ProtoMessage ¶ added in v1.0.14
func (*DeleteMessageReply) ProtoMessage()
func (*DeleteMessageReply) Reset ¶ added in v1.0.14
func (m *DeleteMessageReply) Reset()
func (*DeleteMessageReply) String ¶ added in v1.0.14
func (m *DeleteMessageReply) String() string
func (*DeleteMessageReply) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *DeleteMessageReply) XXX_DiscardUnknown()
func (*DeleteMessageReply) XXX_Marshal ¶ added in v1.0.14
func (m *DeleteMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteMessageReply) XXX_Merge ¶ added in v1.0.14
func (m *DeleteMessageReply) XXX_Merge(src proto.Message)
func (*DeleteMessageReply) XXX_Size ¶ added in v1.0.14
func (m *DeleteMessageReply) XXX_Size() int
func (*DeleteMessageReply) XXX_Unmarshal ¶ added in v1.0.14
func (m *DeleteMessageReply) XXX_Unmarshal(b []byte) error
type DeleteMessageRequest ¶ added in v1.0.14
type DeleteMessageRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteMessageRequest) Descriptor ¶ added in v1.0.14
func (*DeleteMessageRequest) Descriptor() ([]byte, []int)
func (*DeleteMessageRequest) GetID ¶ added in v1.0.14
func (m *DeleteMessageRequest) GetID() string
func (*DeleteMessageRequest) ProtoMessage ¶ added in v1.0.14
func (*DeleteMessageRequest) ProtoMessage()
func (*DeleteMessageRequest) Reset ¶ added in v1.0.14
func (m *DeleteMessageRequest) Reset()
func (*DeleteMessageRequest) String ¶ added in v1.0.14
func (m *DeleteMessageRequest) String() string
func (*DeleteMessageRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *DeleteMessageRequest) XXX_DiscardUnknown()
func (*DeleteMessageRequest) XXX_Marshal ¶ added in v1.0.14
func (m *DeleteMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteMessageRequest) XXX_Merge ¶ added in v1.0.14
func (m *DeleteMessageRequest) XXX_Merge(src proto.Message)
func (*DeleteMessageRequest) XXX_Size ¶ added in v1.0.14
func (m *DeleteMessageRequest) XXX_Size() int
func (*DeleteMessageRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *DeleteMessageRequest) XXX_Unmarshal(b []byte) error
type GetThreadReply ¶
type GetThreadReply struct { ID []byte `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IsDB bool `protobuf:"varint,3,opt,name=isDB,proto3" json:"isDB,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetThreadReply) Descriptor ¶
func (*GetThreadReply) Descriptor() ([]byte, []int)
func (*GetThreadReply) GetID ¶
func (m *GetThreadReply) GetID() []byte
func (*GetThreadReply) GetIsDB ¶ added in v1.0.2
func (m *GetThreadReply) GetIsDB() bool
func (*GetThreadReply) GetName ¶
func (m *GetThreadReply) GetName() string
func (*GetThreadReply) ProtoMessage ¶
func (*GetThreadReply) ProtoMessage()
func (*GetThreadReply) Reset ¶
func (m *GetThreadReply) Reset()
func (*GetThreadReply) String ¶
func (m *GetThreadReply) String() string
func (*GetThreadReply) XXX_DiscardUnknown ¶
func (m *GetThreadReply) XXX_DiscardUnknown()
func (*GetThreadReply) XXX_Marshal ¶
func (m *GetThreadReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetThreadReply) XXX_Merge ¶
func (m *GetThreadReply) XXX_Merge(src proto.Message)
func (*GetThreadReply) XXX_Size ¶
func (m *GetThreadReply) XXX_Size() int
func (*GetThreadReply) XXX_Unmarshal ¶
func (m *GetThreadReply) XXX_Unmarshal(b []byte) error
type GetThreadRequest ¶
type GetThreadRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetThreadRequest) Descriptor ¶
func (*GetThreadRequest) Descriptor() ([]byte, []int)
func (*GetThreadRequest) GetName ¶
func (m *GetThreadRequest) GetName() string
func (*GetThreadRequest) ProtoMessage ¶
func (*GetThreadRequest) ProtoMessage()
func (*GetThreadRequest) Reset ¶
func (m *GetThreadRequest) Reset()
func (*GetThreadRequest) String ¶
func (m *GetThreadRequest) String() string
func (*GetThreadRequest) XXX_DiscardUnknown ¶
func (m *GetThreadRequest) XXX_DiscardUnknown()
func (*GetThreadRequest) XXX_Marshal ¶
func (m *GetThreadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetThreadRequest) XXX_Merge ¶
func (m *GetThreadRequest) XXX_Merge(src proto.Message)
func (*GetThreadRequest) XXX_Size ¶
func (m *GetThreadRequest) XXX_Size() int
func (*GetThreadRequest) XXX_Unmarshal ¶
func (m *GetThreadRequest) XXX_Unmarshal(b []byte) error
type ListInboxMessagesRequest ¶ added in v1.0.14
type ListInboxMessagesRequest struct { Seek string `protobuf:"bytes,1,opt,name=seek,proto3" json:"seek,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Ascending bool `protobuf:"varint,3,opt,name=ascending,proto3" json:"ascending,omitempty"` Status ListInboxMessagesRequest_Status `protobuf:"varint,4,opt,name=status,proto3,enum=users.pb.ListInboxMessagesRequest_Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListInboxMessagesRequest) Descriptor ¶ added in v1.0.14
func (*ListInboxMessagesRequest) Descriptor() ([]byte, []int)
func (*ListInboxMessagesRequest) GetAscending ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) GetAscending() bool
func (*ListInboxMessagesRequest) GetLimit ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) GetLimit() int64
func (*ListInboxMessagesRequest) GetSeek ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) GetSeek() string
func (*ListInboxMessagesRequest) GetStatus ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) GetStatus() ListInboxMessagesRequest_Status
func (*ListInboxMessagesRequest) ProtoMessage ¶ added in v1.0.14
func (*ListInboxMessagesRequest) ProtoMessage()
func (*ListInboxMessagesRequest) Reset ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) Reset()
func (*ListInboxMessagesRequest) String ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) String() string
func (*ListInboxMessagesRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) XXX_DiscardUnknown()
func (*ListInboxMessagesRequest) XXX_Marshal ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListInboxMessagesRequest) XXX_Merge ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) XXX_Merge(src proto.Message)
func (*ListInboxMessagesRequest) XXX_Size ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) XXX_Size() int
func (*ListInboxMessagesRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *ListInboxMessagesRequest) XXX_Unmarshal(b []byte) error
type ListInboxMessagesRequest_Status ¶ added in v1.0.14
type ListInboxMessagesRequest_Status int32
const ( ListInboxMessagesRequest_ALL ListInboxMessagesRequest_Status = 0 ListInboxMessagesRequest_READ ListInboxMessagesRequest_Status = 1 ListInboxMessagesRequest_UNREAD ListInboxMessagesRequest_Status = 2 )
func (ListInboxMessagesRequest_Status) EnumDescriptor ¶ added in v1.0.14
func (ListInboxMessagesRequest_Status) EnumDescriptor() ([]byte, []int)
func (ListInboxMessagesRequest_Status) String ¶ added in v1.0.14
func (x ListInboxMessagesRequest_Status) String() string
type ListMessagesReply ¶ added in v1.0.14
type ListMessagesReply struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListMessagesReply) Descriptor ¶ added in v1.0.14
func (*ListMessagesReply) Descriptor() ([]byte, []int)
func (*ListMessagesReply) GetMessages ¶ added in v1.0.14
func (m *ListMessagesReply) GetMessages() []*Message
func (*ListMessagesReply) ProtoMessage ¶ added in v1.0.14
func (*ListMessagesReply) ProtoMessage()
func (*ListMessagesReply) Reset ¶ added in v1.0.14
func (m *ListMessagesReply) Reset()
func (*ListMessagesReply) String ¶ added in v1.0.14
func (m *ListMessagesReply) String() string
func (*ListMessagesReply) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *ListMessagesReply) XXX_DiscardUnknown()
func (*ListMessagesReply) XXX_Marshal ¶ added in v1.0.14
func (m *ListMessagesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListMessagesReply) XXX_Merge ¶ added in v1.0.14
func (m *ListMessagesReply) XXX_Merge(src proto.Message)
func (*ListMessagesReply) XXX_Size ¶ added in v1.0.14
func (m *ListMessagesReply) XXX_Size() int
func (*ListMessagesReply) XXX_Unmarshal ¶ added in v1.0.14
func (m *ListMessagesReply) XXX_Unmarshal(b []byte) error
type ListSentboxMessagesRequest ¶ added in v1.0.14
type ListSentboxMessagesRequest struct { Seek string `protobuf:"bytes,1,opt,name=seek,proto3" json:"seek,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Ascending bool `protobuf:"varint,3,opt,name=ascending,proto3" json:"ascending,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListSentboxMessagesRequest) Descriptor ¶ added in v1.0.14
func (*ListSentboxMessagesRequest) Descriptor() ([]byte, []int)
func (*ListSentboxMessagesRequest) GetAscending ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) GetAscending() bool
func (*ListSentboxMessagesRequest) GetLimit ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) GetLimit() int64
func (*ListSentboxMessagesRequest) GetSeek ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) GetSeek() string
func (*ListSentboxMessagesRequest) ProtoMessage ¶ added in v1.0.14
func (*ListSentboxMessagesRequest) ProtoMessage()
func (*ListSentboxMessagesRequest) Reset ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) Reset()
func (*ListSentboxMessagesRequest) String ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) String() string
func (*ListSentboxMessagesRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) XXX_DiscardUnknown()
func (*ListSentboxMessagesRequest) XXX_Marshal ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSentboxMessagesRequest) XXX_Merge ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) XXX_Merge(src proto.Message)
func (*ListSentboxMessagesRequest) XXX_Size ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) XXX_Size() int
func (*ListSentboxMessagesRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *ListSentboxMessagesRequest) XXX_Unmarshal(b []byte) error
type ListThreadsReply ¶
type ListThreadsReply struct { List []*GetThreadReply `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListThreadsReply) Descriptor ¶
func (*ListThreadsReply) Descriptor() ([]byte, []int)
func (*ListThreadsReply) GetList ¶
func (m *ListThreadsReply) GetList() []*GetThreadReply
func (*ListThreadsReply) ProtoMessage ¶
func (*ListThreadsReply) ProtoMessage()
func (*ListThreadsReply) Reset ¶
func (m *ListThreadsReply) Reset()
func (*ListThreadsReply) String ¶
func (m *ListThreadsReply) String() string
func (*ListThreadsReply) XXX_DiscardUnknown ¶
func (m *ListThreadsReply) XXX_DiscardUnknown()
func (*ListThreadsReply) XXX_Marshal ¶
func (m *ListThreadsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListThreadsReply) XXX_Merge ¶
func (m *ListThreadsReply) XXX_Merge(src proto.Message)
func (*ListThreadsReply) XXX_Size ¶
func (m *ListThreadsReply) XXX_Size() int
func (*ListThreadsReply) XXX_Unmarshal ¶
func (m *ListThreadsReply) XXX_Unmarshal(b []byte) error
type ListThreadsRequest ¶
type ListThreadsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListThreadsRequest) Descriptor ¶
func (*ListThreadsRequest) Descriptor() ([]byte, []int)
func (*ListThreadsRequest) ProtoMessage ¶
func (*ListThreadsRequest) ProtoMessage()
func (*ListThreadsRequest) Reset ¶
func (m *ListThreadsRequest) Reset()
func (*ListThreadsRequest) String ¶
func (m *ListThreadsRequest) String() string
func (*ListThreadsRequest) XXX_DiscardUnknown ¶
func (m *ListThreadsRequest) XXX_DiscardUnknown()
func (*ListThreadsRequest) XXX_Marshal ¶
func (m *ListThreadsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListThreadsRequest) XXX_Merge ¶
func (m *ListThreadsRequest) XXX_Merge(src proto.Message)
func (*ListThreadsRequest) XXX_Size ¶
func (m *ListThreadsRequest) XXX_Size() int
func (*ListThreadsRequest) XXX_Unmarshal ¶
func (m *ListThreadsRequest) XXX_Unmarshal(b []byte) error
type Message ¶ added in v1.0.14
type Message struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` CreatedAt int64 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` ReadAt int64 `protobuf:"varint,7,opt,name=readAt,proto3" json:"readAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶ added in v1.0.14
func (*Message) GetCreatedAt ¶ added in v1.0.14
func (*Message) GetSignature ¶ added in v1.0.14
func (*Message) ProtoMessage ¶ added in v1.0.14
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶ added in v1.0.14
func (*Message) XXX_Unmarshal ¶ added in v1.0.14
type ReadInboxMessageReply ¶ added in v1.0.14
type ReadInboxMessageReply struct { ReadAt int64 `protobuf:"varint,1,opt,name=readAt,proto3" json:"readAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadInboxMessageReply) Descriptor ¶ added in v1.0.14
func (*ReadInboxMessageReply) Descriptor() ([]byte, []int)
func (*ReadInboxMessageReply) GetReadAt ¶ added in v1.0.14
func (m *ReadInboxMessageReply) GetReadAt() int64
func (*ReadInboxMessageReply) ProtoMessage ¶ added in v1.0.14
func (*ReadInboxMessageReply) ProtoMessage()
func (*ReadInboxMessageReply) Reset ¶ added in v1.0.14
func (m *ReadInboxMessageReply) Reset()
func (*ReadInboxMessageReply) String ¶ added in v1.0.14
func (m *ReadInboxMessageReply) String() string
func (*ReadInboxMessageReply) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *ReadInboxMessageReply) XXX_DiscardUnknown()
func (*ReadInboxMessageReply) XXX_Marshal ¶ added in v1.0.14
func (m *ReadInboxMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadInboxMessageReply) XXX_Merge ¶ added in v1.0.14
func (m *ReadInboxMessageReply) XXX_Merge(src proto.Message)
func (*ReadInboxMessageReply) XXX_Size ¶ added in v1.0.14
func (m *ReadInboxMessageReply) XXX_Size() int
func (*ReadInboxMessageReply) XXX_Unmarshal ¶ added in v1.0.14
func (m *ReadInboxMessageReply) XXX_Unmarshal(b []byte) error
type ReadInboxMessageRequest ¶ added in v1.0.14
type ReadInboxMessageRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadInboxMessageRequest) Descriptor ¶ added in v1.0.14
func (*ReadInboxMessageRequest) Descriptor() ([]byte, []int)
func (*ReadInboxMessageRequest) GetID ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) GetID() string
func (*ReadInboxMessageRequest) ProtoMessage ¶ added in v1.0.14
func (*ReadInboxMessageRequest) ProtoMessage()
func (*ReadInboxMessageRequest) Reset ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) Reset()
func (*ReadInboxMessageRequest) String ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) String() string
func (*ReadInboxMessageRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) XXX_DiscardUnknown()
func (*ReadInboxMessageRequest) XXX_Marshal ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadInboxMessageRequest) XXX_Merge ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) XXX_Merge(src proto.Message)
func (*ReadInboxMessageRequest) XXX_Size ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) XXX_Size() int
func (*ReadInboxMessageRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *ReadInboxMessageRequest) XXX_Unmarshal(b []byte) error
type SendMessageReply ¶ added in v1.0.14
type SendMessageReply struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendMessageReply) Descriptor ¶ added in v1.0.14
func (*SendMessageReply) Descriptor() ([]byte, []int)
func (*SendMessageReply) GetCreatedAt ¶ added in v1.0.14
func (m *SendMessageReply) GetCreatedAt() int64
func (*SendMessageReply) GetID ¶ added in v1.0.14
func (m *SendMessageReply) GetID() string
func (*SendMessageReply) ProtoMessage ¶ added in v1.0.14
func (*SendMessageReply) ProtoMessage()
func (*SendMessageReply) Reset ¶ added in v1.0.14
func (m *SendMessageReply) Reset()
func (*SendMessageReply) String ¶ added in v1.0.14
func (m *SendMessageReply) String() string
func (*SendMessageReply) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *SendMessageReply) XXX_DiscardUnknown()
func (*SendMessageReply) XXX_Marshal ¶ added in v1.0.14
func (m *SendMessageReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMessageReply) XXX_Merge ¶ added in v1.0.14
func (m *SendMessageReply) XXX_Merge(src proto.Message)
func (*SendMessageReply) XXX_Size ¶ added in v1.0.14
func (m *SendMessageReply) XXX_Size() int
func (*SendMessageReply) XXX_Unmarshal ¶ added in v1.0.14
func (m *SendMessageReply) XXX_Unmarshal(b []byte) error
type SendMessageRequest ¶ added in v1.0.14
type SendMessageRequest struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` ToBody []byte `protobuf:"bytes,2,opt,name=toBody,proto3" json:"toBody,omitempty"` ToSignature []byte `protobuf:"bytes,3,opt,name=toSignature,proto3" json:"toSignature,omitempty"` FromBody []byte `protobuf:"bytes,4,opt,name=fromBody,proto3" json:"fromBody,omitempty"` FromSignature []byte `protobuf:"bytes,5,opt,name=fromSignature,proto3" json:"fromSignature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendMessageRequest) Descriptor ¶ added in v1.0.14
func (*SendMessageRequest) Descriptor() ([]byte, []int)
func (*SendMessageRequest) GetFromBody ¶ added in v1.0.14
func (m *SendMessageRequest) GetFromBody() []byte
func (*SendMessageRequest) GetFromSignature ¶ added in v1.0.14
func (m *SendMessageRequest) GetFromSignature() []byte
func (*SendMessageRequest) GetTo ¶ added in v1.0.14
func (m *SendMessageRequest) GetTo() string
func (*SendMessageRequest) GetToBody ¶ added in v1.0.14
func (m *SendMessageRequest) GetToBody() []byte
func (*SendMessageRequest) GetToSignature ¶ added in v1.0.14
func (m *SendMessageRequest) GetToSignature() []byte
func (*SendMessageRequest) ProtoMessage ¶ added in v1.0.14
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) Reset ¶ added in v1.0.14
func (m *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶ added in v1.0.14
func (m *SendMessageRequest) String() string
func (*SendMessageRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *SendMessageRequest) XXX_DiscardUnknown()
func (*SendMessageRequest) XXX_Marshal ¶ added in v1.0.14
func (m *SendMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMessageRequest) XXX_Merge ¶ added in v1.0.14
func (m *SendMessageRequest) XXX_Merge(src proto.Message)
func (*SendMessageRequest) XXX_Size ¶ added in v1.0.14
func (m *SendMessageRequest) XXX_Size() int
func (*SendMessageRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *SendMessageRequest) XXX_Unmarshal(b []byte) error
type SetupMailboxReply ¶ added in v1.0.14
type SetupMailboxReply struct { MailboxID []byte `protobuf:"bytes,1,opt,name=mailboxID,proto3" json:"mailboxID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetupMailboxReply) Descriptor ¶ added in v1.0.14
func (*SetupMailboxReply) Descriptor() ([]byte, []int)
func (*SetupMailboxReply) GetMailboxID ¶ added in v1.0.14
func (m *SetupMailboxReply) GetMailboxID() []byte
func (*SetupMailboxReply) ProtoMessage ¶ added in v1.0.14
func (*SetupMailboxReply) ProtoMessage()
func (*SetupMailboxReply) Reset ¶ added in v1.0.14
func (m *SetupMailboxReply) Reset()
func (*SetupMailboxReply) String ¶ added in v1.0.14
func (m *SetupMailboxReply) String() string
func (*SetupMailboxReply) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *SetupMailboxReply) XXX_DiscardUnknown()
func (*SetupMailboxReply) XXX_Marshal ¶ added in v1.0.14
func (m *SetupMailboxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetupMailboxReply) XXX_Merge ¶ added in v1.0.14
func (m *SetupMailboxReply) XXX_Merge(src proto.Message)
func (*SetupMailboxReply) XXX_Size ¶ added in v1.0.14
func (m *SetupMailboxReply) XXX_Size() int
func (*SetupMailboxReply) XXX_Unmarshal ¶ added in v1.0.14
func (m *SetupMailboxReply) XXX_Unmarshal(b []byte) error
type SetupMailboxRequest ¶ added in v1.0.14
type SetupMailboxRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SetupMailboxRequest) Descriptor ¶ added in v1.0.14
func (*SetupMailboxRequest) Descriptor() ([]byte, []int)
func (*SetupMailboxRequest) ProtoMessage ¶ added in v1.0.14
func (*SetupMailboxRequest) ProtoMessage()
func (*SetupMailboxRequest) Reset ¶ added in v1.0.14
func (m *SetupMailboxRequest) Reset()
func (*SetupMailboxRequest) String ¶ added in v1.0.14
func (m *SetupMailboxRequest) String() string
func (*SetupMailboxRequest) XXX_DiscardUnknown ¶ added in v1.0.14
func (m *SetupMailboxRequest) XXX_DiscardUnknown()
func (*SetupMailboxRequest) XXX_Marshal ¶ added in v1.0.14
func (m *SetupMailboxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetupMailboxRequest) XXX_Merge ¶ added in v1.0.14
func (m *SetupMailboxRequest) XXX_Merge(src proto.Message)
func (*SetupMailboxRequest) XXX_Size ¶ added in v1.0.14
func (m *SetupMailboxRequest) XXX_Size() int
func (*SetupMailboxRequest) XXX_Unmarshal ¶ added in v1.0.14
func (m *SetupMailboxRequest) XXX_Unmarshal(b []byte) error
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) DeleteInboxMessage ¶ added in v1.0.14
func (*UnimplementedAPIServer) DeleteInboxMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageReply, error)
func (*UnimplementedAPIServer) DeleteSentboxMessage ¶ added in v1.0.14
func (*UnimplementedAPIServer) DeleteSentboxMessage(ctx context.Context, req *DeleteMessageRequest) (*DeleteMessageReply, error)
func (*UnimplementedAPIServer) GetThread ¶
func (*UnimplementedAPIServer) GetThread(ctx context.Context, req *GetThreadRequest) (*GetThreadReply, error)
func (*UnimplementedAPIServer) ListInboxMessages ¶ added in v1.0.14
func (*UnimplementedAPIServer) ListInboxMessages(ctx context.Context, req *ListInboxMessagesRequest) (*ListMessagesReply, error)
func (*UnimplementedAPIServer) ListSentboxMessages ¶ added in v1.0.14
func (*UnimplementedAPIServer) ListSentboxMessages(ctx context.Context, req *ListSentboxMessagesRequest) (*ListMessagesReply, error)
func (*UnimplementedAPIServer) ListThreads ¶
func (*UnimplementedAPIServer) ListThreads(ctx context.Context, req *ListThreadsRequest) (*ListThreadsReply, error)
func (*UnimplementedAPIServer) ReadInboxMessage ¶ added in v1.0.14
func (*UnimplementedAPIServer) ReadInboxMessage(ctx context.Context, req *ReadInboxMessageRequest) (*ReadInboxMessageReply, error)
func (*UnimplementedAPIServer) SendMessage ¶ added in v1.0.14
func (*UnimplementedAPIServer) SendMessage(ctx context.Context, req *SendMessageRequest) (*SendMessageReply, error)
func (*UnimplementedAPIServer) SetupMailbox ¶ added in v1.0.14
func (*UnimplementedAPIServer) SetupMailbox(ctx context.Context, req *SetupMailboxRequest) (*SetupMailboxReply, error)
Click to show internal directories.
Click to hide internal directories.