Versions in this module Expand all Collapse all v0 v0.3.1 Nov 3, 2018 Changes in this version + var ErrIntOverflowExample = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthExample = fmt.Errorf("proto: negative length found during unmarshaling") + var Filtering_Mode_name = map[int32]string + var Filtering_Mode_value = map[string]int32 + var SortCriteria_Order_name = map[int32]string + var SortCriteria_Order_value = map[string]int32 + func ExampleContains() map[string]interface + func ExampleFields() []string + func ExampleItemContains() map[string]interface + func ExampleItemFields() []string + func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer) + type Empty struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedEmpty(r randyExample, easy bool) *Empty + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (dst *Empty) XXX_Merge(src proto.Message) + func (m *Empty) Marshal() (dAtA []byte, err error) + func (m *Empty) MarshalTo(dAtA []byte) (int, error) + func (m *Empty) Reset() + func (m *Empty) Size() (n int) + func (m *Empty) Unmarshal(dAtA []byte) error + func (m *Empty) XXX_DiscardUnknown() + func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Empty) XXX_Size() int + func (m *Empty) XXX_Unmarshal(b []byte) error + func (this *Empty) Equal(that interface{}) bool + func (this *Empty) GoString() string + func (this *Empty) String() string + type Example struct + CreatedAt *time.Time + DeletedAt *time.Time + Id int64 + Items []*ExampleItem + Mess string + Name string + Organization string + Product string + State string + UpdatedAt *time.Time + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func ConvertExampleFromType(from ExampleType) (Example, error) + func NewPopulatedExample(r randyExample, easy bool) *Example + func (*Example) Descriptor() ([]byte, []int) + func (*Example) ProtoMessage() + func (dst *Example) XXX_Merge(src proto.Message) + func (m *Example) GetCreatedAt() *time.Time + func (m *Example) GetDeletedAt() *time.Time + func (m *Example) GetId() int64 + func (m *Example) GetItems() []*ExampleItem + func (m *Example) GetMess() string + func (m *Example) GetName() string + func (m *Example) GetOrganization() string + func (m *Example) GetProduct() string + func (m *Example) GetState() string + func (m *Example) GetUpdatedAt() *time.Time + func (m *Example) Marshal() (dAtA []byte, err error) + func (m *Example) MarshalTo(dAtA []byte) (int, error) + func (m *Example) Reset() + func (m *Example) Size() (n int) + func (m *Example) Unmarshal(dAtA []byte) error + func (m *Example) XXX_DiscardUnknown() + func (m *Example) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Example) XXX_Size() int + func (m *Example) XXX_Unmarshal(b []byte) error + func (this *Example) Equal(that interface{}) bool + func (this *Example) GoString() string + func (this *Example) String() string + type ExampleItem struct + CreatedAt *time.Time + DeletedAt *time.Time + Id int64 + Mess string + MoveID int64 + Name string + UpdatedAt *time.Time + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func ConvertExampleItemFromType(from ExampleItemType) (ExampleItem, error) + func NewPopulatedExampleItem(r randyExample, easy bool) *ExampleItem + func (*ExampleItem) Descriptor() ([]byte, []int) + func (*ExampleItem) ProtoMessage() + func (dst *ExampleItem) XXX_Merge(src proto.Message) + func (m *ExampleItem) GetCreatedAt() *time.Time + func (m *ExampleItem) GetDeletedAt() *time.Time + func (m *ExampleItem) GetId() int64 + func (m *ExampleItem) GetMess() string + func (m *ExampleItem) GetMoveID() int64 + func (m *ExampleItem) GetName() string + func (m *ExampleItem) GetUpdatedAt() *time.Time + func (m *ExampleItem) Marshal() (dAtA []byte, err error) + func (m *ExampleItem) MarshalTo(dAtA []byte) (int, error) + func (m *ExampleItem) Reset() + func (m *ExampleItem) Size() (n int) + func (m *ExampleItem) Unmarshal(dAtA []byte) error + func (m *ExampleItem) XXX_DiscardUnknown() + func (m *ExampleItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ExampleItem) XXX_Size() int + func (m *ExampleItem) XXX_Unmarshal(b []byte) error + func (this *ExampleItem) Equal(that interface{}) bool + func (this *ExampleItem) GoString() string + func (this *ExampleItem) String() string + type ExampleItemType struct + CreatedAt *time.Time + DeletedAt *time.Time + ID int64 + MoveID int64 + Name string + UpdatedAt *time.Time + func ConvertExampleItemToType(from ExampleItem) (ExampleItemType, error) + type ExampleServiceClient interface + Create func(ctx context.Context, in *Mutation, opts ...grpc.CallOption) (*MutationResponse, error) + List func(ctx context.Context, in *Query, opts ...grpc.CallOption) (*ResponseList, error) + Read func(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error) + Update func(ctx context.Context, in *Mutation, opts ...grpc.CallOption) (*Empty, error) + func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient + type ExampleServiceServer interface + Create func(context.Context, *Mutation) (*MutationResponse, error) + List func(context.Context, *Query) (*ResponseList, error) + Read func(context.Context, *Query) (*Response, error) + Update func(context.Context, *Mutation) (*Empty, error) + type ExampleType struct + CreatedAt *time.Time + DeletedAt *time.Time + ID int64 + Items []*ExampleItem + Name string + Organization string + Product string + State string + UpdatedAt *time.Time + func ConvertExampleToType(from Example) (ExampleType, error) + type Filtering struct + Mode Filtering_Mode + Name string + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedFiltering(r randyExample, easy bool) *Filtering + func (*Filtering) Descriptor() ([]byte, []int) + func (*Filtering) ProtoMessage() + func (dst *Filtering) XXX_Merge(src proto.Message) + func (m *Filtering) GetMode() Filtering_Mode + func (m *Filtering) GetName() string + func (m *Filtering) GetValue() string + func (m *Filtering) Marshal() (dAtA []byte, err error) + func (m *Filtering) MarshalTo(dAtA []byte) (int, error) + func (m *Filtering) Reset() + func (m *Filtering) Size() (n int) + func (m *Filtering) Unmarshal(dAtA []byte) error + func (m *Filtering) XXX_DiscardUnknown() + func (m *Filtering) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Filtering) XXX_Size() int + func (m *Filtering) XXX_Unmarshal(b []byte) error + func (this *Filtering) Equal(that interface{}) bool + func (this *Filtering) GoString() string + func (this *Filtering) String() string + type Filtering_Mode int32 + const EQ + const GE + const GT + const IS_NULL + const LE + const LT + const NE + const NOT_NULL + func (Filtering_Mode) EnumDescriptor() ([]byte, []int) + func (x Filtering_Mode) String() string + type Mutation struct + Fields []*MutationField + Id string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedMutation(r randyExample, easy bool) *Mutation + func (*Mutation) Descriptor() ([]byte, []int) + func (*Mutation) ProtoMessage() + func (dst *Mutation) XXX_Merge(src proto.Message) + func (m *Mutation) GetFields() []*MutationField + func (m *Mutation) GetId() string + func (m *Mutation) Marshal() (dAtA []byte, err error) + func (m *Mutation) MarshalTo(dAtA []byte) (int, error) + func (m *Mutation) Reset() + func (m *Mutation) Size() (n int) + func (m *Mutation) Unmarshal(dAtA []byte) error + func (m *Mutation) XXX_DiscardUnknown() + func (m *Mutation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Mutation) XXX_Size() int + func (m *Mutation) XXX_Unmarshal(b []byte) error + func (this *Mutation) Equal(that interface{}) bool + func (this *Mutation) GoString() string + func (this *Mutation) String() string + type MutationField struct + Name string + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedMutationField(r randyExample, easy bool) *MutationField + func (*MutationField) Descriptor() ([]byte, []int) + func (*MutationField) ProtoMessage() + func (dst *MutationField) XXX_Merge(src proto.Message) + func (m *MutationField) GetName() string + func (m *MutationField) GetValue() string + func (m *MutationField) Marshal() (dAtA []byte, err error) + func (m *MutationField) MarshalTo(dAtA []byte) (int, error) + func (m *MutationField) Reset() + func (m *MutationField) Size() (n int) + func (m *MutationField) Unmarshal(dAtA []byte) error + func (m *MutationField) XXX_DiscardUnknown() + func (m *MutationField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MutationField) XXX_Size() int + func (m *MutationField) XXX_Unmarshal(b []byte) error + func (this *MutationField) Equal(that interface{}) bool + func (this *MutationField) GoString() string + func (this *MutationField) String() string + type MutationResponse struct + Id int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedMutationResponse(r randyExample, easy bool) *MutationResponse + func (*MutationResponse) Descriptor() ([]byte, []int) + func (*MutationResponse) ProtoMessage() + func (dst *MutationResponse) XXX_Merge(src proto.Message) + func (m *MutationResponse) GetId() int64 + func (m *MutationResponse) Marshal() (dAtA []byte, err error) + func (m *MutationResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MutationResponse) Reset() + func (m *MutationResponse) Size() (n int) + func (m *MutationResponse) Unmarshal(dAtA []byte) error + func (m *MutationResponse) XXX_DiscardUnknown() + func (m *MutationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MutationResponse) XXX_Size() int + func (m *MutationResponse) XXX_Unmarshal(b []byte) error + func (this *MutationResponse) Equal(that interface{}) bool + func (this *MutationResponse) GoString() string + func (this *MutationResponse) String() string + type PageInfo struct + Current int64 + Limit int64 + Offset int64 + Size_ int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedPageInfo(r randyExample, easy bool) *PageInfo + func (*PageInfo) Descriptor() ([]byte, []int) + func (*PageInfo) ProtoMessage() + func (dst *PageInfo) XXX_Merge(src proto.Message) + func (m *PageInfo) GetCurrent() int64 + func (m *PageInfo) GetLimit() int64 + func (m *PageInfo) GetOffset() int64 + func (m *PageInfo) GetSize_() int64 + func (m *PageInfo) Marshal() (dAtA []byte, err error) + func (m *PageInfo) MarshalTo(dAtA []byte) (int, error) + func (m *PageInfo) Reset() + func (m *PageInfo) Size() (n int) + func (m *PageInfo) Unmarshal(dAtA []byte) error + func (m *PageInfo) XXX_DiscardUnknown() + func (m *PageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PageInfo) XXX_Size() int + func (m *PageInfo) XXX_Unmarshal(b []byte) error + func (this *PageInfo) Equal(that interface{}) bool + func (this *PageInfo) GoString() string + func (this *PageInfo) String() string + type Query struct + Field []string + Filter []*Filtering + Id string + Ids []string + Limit int64 + Params isQuery_Params + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedQuery(r randyExample, easy bool) *Query + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (*Query) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...) + func (dst *Query) XXX_Merge(src proto.Message) + func (m *Query) GetField() []string + func (m *Query) GetFilter() []*Filtering + func (m *Query) GetFirst() int64 + func (m *Query) GetId() string + func (m *Query) GetIds() []string + func (m *Query) GetLast() int64 + func (m *Query) GetLimit() int64 + func (m *Query) GetPage() int64 + func (m *Query) GetParams() isQuery_Params + func (m *Query) Marshal() (dAtA []byte, err error) + func (m *Query) MarshalTo(dAtA []byte) (int, error) + func (m *Query) Reset() + func (m *Query) Size() (n int) + func (m *Query) Unmarshal(dAtA []byte) error + func (m *Query) XXX_DiscardUnknown() + func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Query) XXX_Size() int + func (m *Query) XXX_Unmarshal(b []byte) error + func (this *Query) Equal(that interface{}) bool + func (this *Query) GoString() string + func (this *Query) String() string + type QueryExample struct + DB *sqlx.DB + Verbose int + func NewQueryExample(verbose int) *QueryExample + func (p *QueryExample) BuildMultiQuery(in *Query, field string) (string, []interface{}) + func (p *QueryExample) BuildOneQuery(in *Query, field string) (string, []interface{}) + func (p *QueryExample) BuildQuery(in *Query, f string, reserved bool, one bool) (string, []interface{}) + func (p *QueryExample) Close() error + func (p *QueryExample) ContainsField(item string) bool + func (p *QueryExample) Count(in *Query) int64 + func (p *QueryExample) DefaultFields() string + func (p *QueryExample) Scan(val interface{}) error + func (p *QueryExample) SetDB(db *sqlx.DB) + func (p *QueryExample) TableName() string + func (p *QueryExample) Value() (driver.Value, error) + type QueryExampleItem struct + DB *sqlx.DB + Verbose int + func NewQueryExampleItem(verbose int) *QueryExampleItem + func (p *QueryExampleItem) BuildMultiQuery(in *Query, field string) (string, []interface{}) + func (p *QueryExampleItem) BuildOneQuery(in *Query, field string) (string, []interface{}) + func (p *QueryExampleItem) BuildQuery(in *Query, f string, reserved bool, one bool) (string, []interface{}) + func (p *QueryExampleItem) Close() error + func (p *QueryExampleItem) ContainsField(item string) bool + func (p *QueryExampleItem) Count(in *Query) int64 + func (p *QueryExampleItem) DefaultFields() string + func (p *QueryExampleItem) Scan(val interface{}) error + func (p *QueryExampleItem) SetDB(db *sqlx.DB) + func (p *QueryExampleItem) TableName() string + func (p *QueryExampleItem) Value() (driver.Value, error) + type Query_First struct + First int64 + func NewPopulatedQuery_First(r randyExample, easy bool) *Query_First + func (m *Query_First) MarshalTo(dAtA []byte) (int, error) + func (m *Query_First) Size() (n int) + func (this *Query_First) Equal(that interface{}) bool + func (this *Query_First) GoString() string + func (this *Query_First) String() string + type Query_Last struct + Last int64 + func NewPopulatedQuery_Last(r randyExample, easy bool) *Query_Last + func (m *Query_Last) MarshalTo(dAtA []byte) (int, error) + func (m *Query_Last) Size() (n int) + func (this *Query_Last) Equal(that interface{}) bool + func (this *Query_Last) GoString() string + func (this *Query_Last) String() string + type Query_Page struct + Page int64 + func NewPopulatedQuery_Page(r randyExample, easy bool) *Query_Page + func (m *Query_Page) MarshalTo(dAtA []byte) (int, error) + func (m *Query_Page) Size() (n int) + func (this *Query_Page) Equal(that interface{}) bool + func (this *Query_Page) GoString() string + func (this *Query_Page) String() string + type Response struct + Data []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedResponse(r randyExample, easy bool) *Response + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (dst *Response) XXX_Merge(src proto.Message) + func (m *Response) GetData() []byte + func (m *Response) Marshal() (dAtA []byte, err error) + func (m *Response) MarshalTo(dAtA []byte) (int, error) + func (m *Response) Reset() + func (m *Response) Size() (n int) + func (m *Response) Unmarshal(dAtA []byte) error + func (m *Response) XXX_DiscardUnknown() + func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Response) XXX_Size() int + func (m *Response) XXX_Unmarshal(b []byte) error + func (this *Response) Equal(that interface{}) bool + func (this *Response) GoString() string + func (this *Response) String() string + type ResponseList struct + Data [][]byte + PageInfo *PageInfo + Total int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedResponseList(r randyExample, easy bool) *ResponseList + func (*ResponseList) Descriptor() ([]byte, []int) + func (*ResponseList) ProtoMessage() + func (dst *ResponseList) XXX_Merge(src proto.Message) + func (m *ResponseList) GetData() [][]byte + func (m *ResponseList) GetPageInfo() *PageInfo + func (m *ResponseList) GetTotal() int64 + func (m *ResponseList) Marshal() (dAtA []byte, err error) + func (m *ResponseList) MarshalTo(dAtA []byte) (int, error) + func (m *ResponseList) Reset() + func (m *ResponseList) Size() (n int) + func (m *ResponseList) Unmarshal(dAtA []byte) error + func (m *ResponseList) XXX_DiscardUnknown() + func (m *ResponseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ResponseList) XXX_Size() int + func (m *ResponseList) XXX_Unmarshal(b []byte) error + func (this *ResponseList) Equal(that interface{}) bool + func (this *ResponseList) GoString() string + func (this *ResponseList) String() string + type Result struct + Total int64 + type SortCriteria struct + Order SortCriteria_Order + Tag string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedSortCriteria(r randyExample, easy bool) *SortCriteria + func (*SortCriteria) Descriptor() ([]byte, []int) + func (*SortCriteria) ProtoMessage() + func (dst *SortCriteria) XXX_Merge(src proto.Message) + func (m *SortCriteria) GetOrder() SortCriteria_Order + func (m *SortCriteria) GetTag() string + func (m *SortCriteria) Marshal() (dAtA []byte, err error) + func (m *SortCriteria) MarshalTo(dAtA []byte) (int, error) + func (m *SortCriteria) Reset() + func (m *SortCriteria) Size() (n int) + func (m *SortCriteria) Unmarshal(dAtA []byte) error + func (m *SortCriteria) XXX_DiscardUnknown() + func (m *SortCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SortCriteria) XXX_Size() int + func (m *SortCriteria) XXX_Unmarshal(b []byte) error + func (this *SortCriteria) Equal(that interface{}) bool + func (this *SortCriteria) GoString() string + func (this *SortCriteria) String() string + type SortCriteria_Order int32 + const ASC + const DESC + func (SortCriteria_Order) EnumDescriptor() ([]byte, []int) + func (x SortCriteria_Order) String() string + type Sorting struct + Sort []*SortCriteria + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewPopulatedSorting(r randyExample, easy bool) *Sorting + func (*Sorting) Descriptor() ([]byte, []int) + func (*Sorting) ProtoMessage() + func (dst *Sorting) XXX_Merge(src proto.Message) + func (m *Sorting) GetSort() []*SortCriteria + func (m *Sorting) Marshal() (dAtA []byte, err error) + func (m *Sorting) MarshalTo(dAtA []byte) (int, error) + func (m *Sorting) Reset() + func (m *Sorting) Size() (n int) + func (m *Sorting) Unmarshal(dAtA []byte) error + func (m *Sorting) XXX_DiscardUnknown() + func (m *Sorting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Sorting) XXX_Size() int + func (m *Sorting) XXX_Unmarshal(b []byte) error + func (this *Sorting) Equal(that interface{}) bool + func (this *Sorting) GoString() string + func (this *Sorting) String() string