Documentation ¶
Index ¶
- Variables
- func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)
- type AttachmentFilter
- func (*AttachmentFilter) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentFilter) GetContentTypes() []string
- func (x *AttachmentFilter) GetNames() []string
- func (x *AttachmentFilter) GetSize() *AttachmentSizeFilter
- func (*AttachmentFilter) ProtoMessage()
- func (x *AttachmentFilter) ProtoReflect() protoreflect.Message
- func (x *AttachmentFilter) Reset()
- func (x *AttachmentFilter) String() string
- type AttachmentSizeFilter
- func (*AttachmentSizeFilter) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentSizeFilter) GetExact() []int64
- func (x *AttachmentSizeFilter) GetRanges() []*AttachmentSizeRange
- func (*AttachmentSizeFilter) ProtoMessage()
- func (x *AttachmentSizeFilter) ProtoReflect() protoreflect.Message
- func (x *AttachmentSizeFilter) Reset()
- func (x *AttachmentSizeFilter) String() string
- type AttachmentSizeRange
- func (*AttachmentSizeRange) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentSizeRange) GetMax() int64
- func (x *AttachmentSizeRange) GetMin() int64
- func (*AttachmentSizeRange) ProtoMessage()
- func (x *AttachmentSizeRange) ProtoReflect() protoreflect.Message
- func (x *AttachmentSizeRange) Reset()
- func (x *AttachmentSizeRange) String() string
- type Letter
- func (*Letter) Descriptor() ([]byte, []int)deprecated
- func (x *Letter) GetId() string
- func (x *Letter) GetLetter() *proto1.Letter
- func (x *Letter) GetSendError() string
- func (x *Letter) GetSentAt() *timestamp.Timestamp
- func (*Letter) ProtoMessage()
- func (x *Letter) ProtoReflect() protoreflect.Message
- func (x *Letter) Reset()
- func (x *Letter) String() string
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetAttachment() *AttachmentFilter
- func (x *Query) GetBcc() []string
- func (x *Query) GetCc() []string
- func (x *Query) GetFrom() []string
- func (x *Query) GetSentAt() *SentAtFilter
- func (x *Query) GetSort() *SortConfig
- func (x *Query) GetSubjects() []string
- func (x *Query) GetTo() []string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type QueryResult
- type QueryServiceClient
- type QueryServiceServer
- type SentAtFilter
- func (*SentAtFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SentAtFilter) GetAfter() *timestamp.Timestamp
- func (x *SentAtFilter) GetBefore() *timestamp.Timestamp
- func (*SentAtFilter) ProtoMessage()
- func (x *SentAtFilter) ProtoReflect() protoreflect.Message
- func (x *SentAtFilter) Reset()
- func (x *SentAtFilter) String() string
- type SortConfig
- func (*SortConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SortConfig) GetDirection() SortDirection
- func (x *SortConfig) GetSortBy() Sorting
- func (*SortConfig) ProtoMessage()
- func (x *SortConfig) ProtoReflect() protoreflect.Message
- func (x *SortConfig) Reset()
- func (x *SortConfig) String() string
- type SortDirection
- func (SortDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortDirection) Enum() *SortDirection
- func (SortDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortDirection) Number() protoreflect.EnumNumber
- func (x SortDirection) String() string
- func (SortDirection) Type() protoreflect.EnumType
- type Sorting
- type UUID
- type UnimplementedQueryServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Sorting_name = map[int32]string{ 0: "BySendDate", } Sorting_value = map[string]int32{ "BySendDate": 0, } )
Enum value maps for Sorting.
var ( SortDirection_name = map[int32]string{ 0: "Asc", 1: "Desc", } SortDirection_value = map[string]int32{ "Asc": 0, "Desc": 1, } )
Enum value maps for SortDirection.
var File_letter_proto protoreflect.FileDescriptor
var File_query_proto protoreflect.FileDescriptor
Functions ¶
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)
Types ¶
type AttachmentFilter ¶
type AttachmentFilter struct { Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` ContentTypes []string `protobuf:"bytes,2,rep,name=contentTypes,proto3" json:"contentTypes,omitempty"` Size *AttachmentSizeFilter `protobuf:"bytes,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*AttachmentFilter) Descriptor
deprecated
func (*AttachmentFilter) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentFilter.ProtoReflect.Descriptor instead.
func (*AttachmentFilter) GetContentTypes ¶
func (x *AttachmentFilter) GetContentTypes() []string
func (*AttachmentFilter) GetNames ¶
func (x *AttachmentFilter) GetNames() []string
func (*AttachmentFilter) GetSize ¶
func (x *AttachmentFilter) GetSize() *AttachmentSizeFilter
func (*AttachmentFilter) ProtoMessage ¶
func (*AttachmentFilter) ProtoMessage()
func (*AttachmentFilter) ProtoReflect ¶
func (x *AttachmentFilter) ProtoReflect() protoreflect.Message
func (*AttachmentFilter) Reset ¶
func (x *AttachmentFilter) Reset()
func (*AttachmentFilter) String ¶
func (x *AttachmentFilter) String() string
type AttachmentSizeFilter ¶
type AttachmentSizeFilter struct { Exact []int64 `protobuf:"varint,1,rep,packed,name=exact,proto3" json:"exact,omitempty"` Ranges []*AttachmentSizeRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` // contains filtered or unexported fields }
func (*AttachmentSizeFilter) Descriptor
deprecated
func (*AttachmentSizeFilter) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentSizeFilter.ProtoReflect.Descriptor instead.
func (*AttachmentSizeFilter) GetExact ¶
func (x *AttachmentSizeFilter) GetExact() []int64
func (*AttachmentSizeFilter) GetRanges ¶
func (x *AttachmentSizeFilter) GetRanges() []*AttachmentSizeRange
func (*AttachmentSizeFilter) ProtoMessage ¶
func (*AttachmentSizeFilter) ProtoMessage()
func (*AttachmentSizeFilter) ProtoReflect ¶
func (x *AttachmentSizeFilter) ProtoReflect() protoreflect.Message
func (*AttachmentSizeFilter) Reset ¶
func (x *AttachmentSizeFilter) Reset()
func (*AttachmentSizeFilter) String ¶
func (x *AttachmentSizeFilter) String() string
type AttachmentSizeRange ¶
type AttachmentSizeRange struct { Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` // contains filtered or unexported fields }
func (*AttachmentSizeRange) Descriptor
deprecated
func (*AttachmentSizeRange) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentSizeRange.ProtoReflect.Descriptor instead.
func (*AttachmentSizeRange) GetMax ¶
func (x *AttachmentSizeRange) GetMax() int64
func (*AttachmentSizeRange) GetMin ¶
func (x *AttachmentSizeRange) GetMin() int64
func (*AttachmentSizeRange) ProtoMessage ¶
func (*AttachmentSizeRange) ProtoMessage()
func (*AttachmentSizeRange) ProtoReflect ¶
func (x *AttachmentSizeRange) ProtoReflect() protoreflect.Message
func (*AttachmentSizeRange) Reset ¶
func (x *AttachmentSizeRange) Reset()
func (*AttachmentSizeRange) String ¶
func (x *AttachmentSizeRange) String() string
type Letter ¶
type Letter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Letter *proto1.Letter `protobuf:"bytes,2,opt,name=letter,proto3" json:"letter,omitempty"` SentAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=sentAt,proto3" json:"sentAt,omitempty"` SendError string `protobuf:"bytes,4,opt,name=sendError,proto3" json:"sendError,omitempty"` // contains filtered or unexported fields }
func (*Letter) Descriptor
deprecated
func (*Letter) GetSendError ¶
func (*Letter) ProtoMessage ¶
func (*Letter) ProtoMessage()
func (*Letter) ProtoReflect ¶
func (x *Letter) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { SentAt *SentAtFilter `protobuf:"bytes,1,opt,name=sentAt,proto3" json:"sentAt,omitempty"` Subjects []string `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"` From []string `protobuf:"bytes,3,rep,name=from,proto3" json:"from,omitempty"` To []string `protobuf:"bytes,4,rep,name=to,proto3" json:"to,omitempty"` Cc []string `protobuf:"bytes,5,rep,name=cc,proto3" json:"cc,omitempty"` Bcc []string `protobuf:"bytes,6,rep,name=bcc,proto3" json:"bcc,omitempty"` Attachment *AttachmentFilter `protobuf:"bytes,7,opt,name=attachment,proto3" json:"attachment,omitempty"` Sort *SortConfig `protobuf:"bytes,8,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetAttachment ¶
func (x *Query) GetAttachment() *AttachmentFilter
func (*Query) GetSentAt ¶
func (x *Query) GetSentAt() *SentAtFilter
func (*Query) GetSort ¶
func (x *Query) GetSort() *SortConfig
func (*Query) GetSubjects ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryResult ¶
type QueryResult struct { Letters []*Letter `protobuf:"bytes,1,rep,name=letters,proto3" json:"letters,omitempty"` // contains filtered or unexported fields }
func (*QueryResult) Descriptor
deprecated
func (*QueryResult) Descriptor() ([]byte, []int)
Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.
func (*QueryResult) GetLetters ¶
func (x *QueryResult) GetLetters() []*Letter
func (*QueryResult) ProtoMessage ¶
func (*QueryResult) ProtoMessage()
func (*QueryResult) ProtoReflect ¶
func (x *QueryResult) ProtoReflect() protoreflect.Message
func (*QueryResult) Reset ¶
func (x *QueryResult) Reset()
func (*QueryResult) String ¶
func (x *QueryResult) String() string
type QueryServiceClient ¶
type QueryServiceClient interface { Run(ctx context.Context, in *Query, opts ...grpc.CallOption) (*QueryResult, error) Get(ctx context.Context, in *UUID, opts ...grpc.CallOption) (*Letter, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc.ClientConnInterface) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { Run(context.Context, *Query) (*QueryResult, error) Get(context.Context, *UUID) (*Letter, error) }
QueryServiceServer is the server API for QueryService service.
type SentAtFilter ¶
type SentAtFilter struct { Before *timestamp.Timestamp `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` After *timestamp.Timestamp `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"` // contains filtered or unexported fields }
func (*SentAtFilter) Descriptor
deprecated
func (*SentAtFilter) Descriptor() ([]byte, []int)
Deprecated: Use SentAtFilter.ProtoReflect.Descriptor instead.
func (*SentAtFilter) GetAfter ¶
func (x *SentAtFilter) GetAfter() *timestamp.Timestamp
func (*SentAtFilter) GetBefore ¶
func (x *SentAtFilter) GetBefore() *timestamp.Timestamp
func (*SentAtFilter) ProtoMessage ¶
func (*SentAtFilter) ProtoMessage()
func (*SentAtFilter) ProtoReflect ¶
func (x *SentAtFilter) ProtoReflect() protoreflect.Message
func (*SentAtFilter) Reset ¶
func (x *SentAtFilter) Reset()
func (*SentAtFilter) String ¶
func (x *SentAtFilter) String() string
type SortConfig ¶
type SortConfig struct { SortBy Sorting `protobuf:"varint,1,opt,name=sortBy,proto3,enum=postdog.store.Sorting" json:"sortBy,omitempty"` Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=postdog.store.SortDirection" json:"direction,omitempty"` // contains filtered or unexported fields }
func (*SortConfig) Descriptor
deprecated
func (*SortConfig) Descriptor() ([]byte, []int)
Deprecated: Use SortConfig.ProtoReflect.Descriptor instead.
func (*SortConfig) GetDirection ¶
func (x *SortConfig) GetDirection() SortDirection
func (*SortConfig) GetSortBy ¶
func (x *SortConfig) GetSortBy() Sorting
func (*SortConfig) ProtoMessage ¶
func (*SortConfig) ProtoMessage()
func (*SortConfig) ProtoReflect ¶
func (x *SortConfig) ProtoReflect() protoreflect.Message
func (*SortConfig) Reset ¶
func (x *SortConfig) Reset()
func (*SortConfig) String ¶
func (x *SortConfig) String() string
type SortDirection ¶
type SortDirection int32
const ( SortDirection_Asc SortDirection = 0 SortDirection_Desc SortDirection = 1 )
func (SortDirection) Descriptor ¶
func (SortDirection) Descriptor() protoreflect.EnumDescriptor
func (SortDirection) Enum ¶
func (x SortDirection) Enum() *SortDirection
func (SortDirection) EnumDescriptor
deprecated
func (SortDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) Number ¶
func (x SortDirection) Number() protoreflect.EnumNumber
func (SortDirection) String ¶
func (x SortDirection) String() string
func (SortDirection) Type ¶
func (SortDirection) Type() protoreflect.EnumType
type Sorting ¶
type Sorting int32
const (
Sorting_BySendDate Sorting = 0
)
func (Sorting) Descriptor ¶
func (Sorting) Descriptor() protoreflect.EnumDescriptor
func (Sorting) EnumDescriptor
deprecated
func (Sorting) Number ¶
func (x Sorting) Number() protoreflect.EnumNumber
func (Sorting) Type ¶
func (Sorting) Type() protoreflect.EnumType
type UUID ¶ added in v0.5.0
type UUID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UUID) Descriptor
deprecated
added in
v0.5.0
func (*UUID) ProtoMessage ¶ added in v0.5.0
func (*UUID) ProtoMessage()
func (*UUID) ProtoReflect ¶ added in v0.5.0
func (x *UUID) ProtoReflect() protoreflect.Message
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) Run ¶
func (*UnimplementedQueryServiceServer) Run(context.Context, *Query) (*QueryResult, error)