storeproto

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sorting_name = map[int32]string{
		0: "BySendDate",
	}
	Sorting_value = map[string]int32{
		"BySendDate": 0,
	}
)

Enum value maps for Sorting.

View Source
var (
	SortDirection_name = map[int32]string{
		0: "Asc",
		1: "Desc",
	}
	SortDirection_value = map[string]int32{
		"Asc":  0,
		"Desc": 1,
	}
)

Enum value maps for SortDirection.

View Source
var File_letter_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Letter.ProtoReflect.Descriptor instead.

func (*Letter) GetId added in v0.5.0

func (x *Letter) GetId() string

func (*Letter) GetLetter

func (x *Letter) GetLetter() *proto1.Letter

func (*Letter) GetSendError

func (x *Letter) GetSendError() string

func (*Letter) GetSentAt

func (x *Letter) GetSentAt() *timestamp.Timestamp

func (*Letter) ProtoMessage

func (*Letter) ProtoMessage()

func (*Letter) ProtoReflect

func (x *Letter) ProtoReflect() protoreflect.Message

func (*Letter) Reset

func (x *Letter) Reset()

func (*Letter) String

func (x *Letter) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetAttachment

func (x *Query) GetAttachment() *AttachmentFilter

func (*Query) GetBcc

func (x *Query) GetBcc() []string

func (*Query) GetCc

func (x *Query) GetCc() []string

func (*Query) GetFrom

func (x *Query) GetFrom() []string

func (*Query) GetSentAt

func (x *Query) GetSentAt() *SentAtFilter

func (*Query) GetSort

func (x *Query) GetSort() *SortConfig

func (*Query) GetSubjects

func (x *Query) GetSubjects() []string

func (*Query) GetTo

func (x *Query) GetTo() []string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

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.

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) Enum

func (x SortDirection) Enum() *SortDirection

func (SortDirection) EnumDescriptor deprecated

func (SortDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortDirection.Descriptor instead.

func (SortDirection) Number

func (SortDirection) String

func (x SortDirection) String() string

func (SortDirection) Type

type Sorting

type Sorting int32
const (
	Sorting_BySendDate Sorting = 0
)

func (Sorting) Descriptor

func (Sorting) Descriptor() protoreflect.EnumDescriptor

func (Sorting) Enum

func (x Sorting) Enum() *Sorting

func (Sorting) EnumDescriptor deprecated

func (Sorting) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sorting.Descriptor instead.

func (Sorting) Number

func (x Sorting) Number() protoreflect.EnumNumber

func (Sorting) String

func (x Sorting) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetId added in v0.5.0

func (x *UUID) GetId() string

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

func (*UUID) Reset added in v0.5.0

func (x *UUID) Reset()

func (*UUID) String added in v0.5.0

func (x *UUID) String() string

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) Get added in v0.5.0

func (*UnimplementedQueryServiceServer) Run

Jump to

Keyboard shortcuts

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