Documentation ¶
Index ¶
- Variables
- func ExampleFields() []string
- func ExampleFieldsContain(item string) bool
- func ExampleFieldsMap() map[string]interface{}
- func ExampleFieldsString() string
- func ExampleItemFields() []string
- func ExampleItemFieldsContain(item string) bool
- func ExampleItemFieldsMap() map[string]interface{}
- func ExampleItemFieldsString() string
- func ExampleItemTableName() string
- func ExampleTableName() string
- func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (this *Empty) Equal(that interface{}) bool
- func (this *Empty) GoString() string
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (this *Empty) String() string
- 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_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Example
- func (*Example) Descriptor() ([]byte, []int)
- func (this *Example) Equal(that interface{}) bool
- 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 (this *Example) GoString() string
- func (m *Example) Marshal() (dAtA []byte, err error)
- func (m *Example) MarshalTo(dAtA []byte) (int, error)
- func (m *Example) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Example) ProtoMessage()
- func (m *Example) Reset()
- func (m *Example) Size() (n int)
- func (this *Example) String() string
- 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_Merge(src proto.Message)
- func (m *Example) XXX_Size() int
- func (m *Example) XXX_Unmarshal(b []byte) error
- type ExampleItem
- func (*ExampleItem) Descriptor() ([]byte, []int)
- func (this *ExampleItem) Equal(that interface{}) bool
- 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 (this *ExampleItem) GoString() string
- func (m *ExampleItem) Marshal() (dAtA []byte, err error)
- func (m *ExampleItem) MarshalTo(dAtA []byte) (int, error)
- func (m *ExampleItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExampleItem) ProtoMessage()
- func (m *ExampleItem) Reset()
- func (m *ExampleItem) Size() (n int)
- func (this *ExampleItem) String() string
- 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_Merge(src proto.Message)
- func (m *ExampleItem) XXX_Size() int
- func (m *ExampleItem) XXX_Unmarshal(b []byte) error
- type ExampleServiceClient
- type ExampleServiceServer
- type Mutation
- func (*Mutation) Descriptor() ([]byte, []int)
- func (this *Mutation) Equal(that interface{}) bool
- func (m *Mutation) GetFields() []*MutationField
- func (m *Mutation) GetId() string
- func (this *Mutation) GoString() string
- func (m *Mutation) Marshal() (dAtA []byte, err error)
- func (m *Mutation) MarshalTo(dAtA []byte) (int, error)
- func (m *Mutation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mutation) ProtoMessage()
- func (m *Mutation) Reset()
- func (m *Mutation) Size() (n int)
- func (this *Mutation) String() string
- 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_Merge(src proto.Message)
- func (m *Mutation) XXX_Size() int
- func (m *Mutation) XXX_Unmarshal(b []byte) error
- type MutationField
- func (*MutationField) Descriptor() ([]byte, []int)
- func (this *MutationField) Equal(that interface{}) bool
- func (m *MutationField) GetName() string
- func (m *MutationField) GetValue() string
- func (this *MutationField) GoString() string
- func (m *MutationField) Marshal() (dAtA []byte, err error)
- func (m *MutationField) MarshalTo(dAtA []byte) (int, error)
- func (m *MutationField) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MutationField) ProtoMessage()
- func (m *MutationField) Reset()
- func (m *MutationField) Size() (n int)
- func (this *MutationField) String() string
- 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_Merge(src proto.Message)
- func (m *MutationField) XXX_Size() int
- func (m *MutationField) XXX_Unmarshal(b []byte) error
- type MutationResponse
- func (*MutationResponse) Descriptor() ([]byte, []int)
- func (this *MutationResponse) Equal(that interface{}) bool
- func (m *MutationResponse) GetId() int64
- func (this *MutationResponse) GoString() string
- func (m *MutationResponse) Marshal() (dAtA []byte, err error)
- func (m *MutationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MutationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MutationResponse) ProtoMessage()
- func (m *MutationResponse) Reset()
- func (m *MutationResponse) Size() (n int)
- func (this *MutationResponse) String() string
- 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_Merge(src proto.Message)
- func (m *MutationResponse) XXX_Size() int
- func (m *MutationResponse) XXX_Unmarshal(b []byte) error
- type QueryExample
- func (p *QueryExample) BuildMultiQuery(in *sql.SqlQuery, field string) (string, []interface{})
- func (p *QueryExample) BuildOneQuery(in *sql.SqlQuery, field string) (string, []interface{})
- func (p *QueryExample) BuildQuery(in *sql.SqlQuery, f string, reserved bool, one bool) (string, []interface{})
- func (p *QueryExample) Close() error
- func (p *QueryExample) Count(in *sql.SqlQuery) int64
- func (p *QueryExample) Scan(val interface{}) error
- func (p *QueryExample) SetDB(db *sqlx.DB)
- func (p *QueryExample) Value() (driver.Value, error)
- type QueryExampleItem
- func (p *QueryExampleItem) BuildMultiQuery(in *sql.SqlQuery, field string) (string, []interface{})
- func (p *QueryExampleItem) BuildOneQuery(in *sql.SqlQuery, field string) (string, []interface{})
- func (p *QueryExampleItem) BuildQuery(in *sql.SqlQuery, f string, reserved bool, one bool) (string, []interface{})
- func (p *QueryExampleItem) Close() error
- func (p *QueryExampleItem) Count(in *sql.SqlQuery) int64
- func (p *QueryExampleItem) Scan(val interface{}) error
- func (p *QueryExampleItem) SetDB(db *sqlx.DB)
- func (p *QueryExampleItem) Value() (driver.Value, error)
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (this *Response) Equal(that interface{}) bool
- func (m *Response) GetData() []byte
- func (this *Response) GoString() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (this *Response) String() string
- 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_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ResponseList
- func (*ResponseList) Descriptor() ([]byte, []int)
- func (this *ResponseList) Equal(that interface{}) bool
- func (m *ResponseList) GetData() [][]byte
- func (m *ResponseList) GetPageInfo() *sql.SqlPageInfo
- func (m *ResponseList) GetTotal() int64
- func (this *ResponseList) GoString() string
- func (m *ResponseList) Marshal() (dAtA []byte, err error)
- func (m *ResponseList) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseList) ProtoMessage()
- func (m *ResponseList) Reset()
- func (m *ResponseList) Size() (n int)
- func (this *ResponseList) String() string
- 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_Merge(src proto.Message)
- func (m *ResponseList) XXX_Size() int
- func (m *ResponseList) XXX_Unmarshal(b []byte) error
- type UnimplementedExampleServiceServer
- func (*UnimplementedExampleServiceServer) Create(ctx context.Context, req *Mutation) (*MutationResponse, error)
- func (*UnimplementedExampleServiceServer) List(ctx context.Context, req *sql.SqlQuery) (*ResponseList, error)
- func (*UnimplementedExampleServiceServer) Read(ctx context.Context, req *sql.SqlQuery) (*Response, error)
- func (*UnimplementedExampleServiceServer) Update(ctx context.Context, req *Mutation) (*Empty, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ExampleFields ¶
func ExampleFields() []string
func ExampleFieldsContain ¶ added in v0.3.10
func ExampleFieldsMap ¶ added in v0.3.10
func ExampleFieldsMap() map[string]interface{}
func ExampleFieldsString ¶ added in v0.3.10
func ExampleFieldsString() string
func ExampleItemFields ¶
func ExampleItemFields() []string
func ExampleItemFieldsContain ¶ added in v0.3.10
func ExampleItemFieldsMap ¶ added in v0.3.10
func ExampleItemFieldsMap() map[string]interface{}
func ExampleItemFieldsString ¶ added in v0.3.10
func ExampleItemFieldsString() string
func ExampleItemTableName ¶ added in v0.3.10
func ExampleItemTableName() string
TableName overrides the default tablename generated by QueryExampleItem
func ExampleTableName ¶ added in v0.3.10
func ExampleTableName() string
TableName overrides the default tablename generated by QueryExample
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedEmpty ¶
func (*Empty) Descriptor ¶
func (*Empty) MarshalToSizedBuffer ¶ added in v0.3.5
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Example ¶
type Example struct { // option (sql.opts).gorm = true; Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" db:"id"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty" db:"deleted_at"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Mess string `protobuf:"bytes,6,opt,name=mess,proto3" json:"mess,omitempty"` Product string `protobuf:"bytes,7,opt,name=product,proto3" json:"product,omitempty"` Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` State string `protobuf:"bytes,9,opt,name=state,proto3" json:"state,omitempty"` Items []*ExampleItem `protobuf:"bytes,10,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedExample ¶
func (*Example) Descriptor ¶
func (*Example) GetCreatedAt ¶
func (*Example) GetDeletedAt ¶
func (*Example) GetItems ¶
func (m *Example) GetItems() []*ExampleItem
func (*Example) GetOrganization ¶
func (*Example) GetProduct ¶
func (*Example) GetUpdatedAt ¶
func (*Example) MarshalToSizedBuffer ¶ added in v0.3.5
func (*Example) ProtoMessage ¶
func (*Example) ProtoMessage()
func (*Example) XXX_DiscardUnknown ¶
func (m *Example) XXX_DiscardUnknown()
func (*Example) XXX_Marshal ¶
func (*Example) XXX_Unmarshal ¶
type ExampleItem ¶
type ExampleItem struct { // option (sql.opts).gorm = true; Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" db:"id"` CreatedAt *time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at,omitempty"` UpdatedAt *time.Time `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at,omitempty"` DeletedAt *time.Time `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3,stdtime" json:"deleted_at,omitempty" db:"deleted_at"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Mess string `protobuf:"bytes,6,opt,name=mess,proto3" json:"mess,omitempty"` MoveID int64 `protobuf:"varint,7,opt,name=move_id,json=moveId,proto3" json:"move_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedExampleItem ¶
func NewPopulatedExampleItem(r randyExample, easy bool) *ExampleItem
func (*ExampleItem) Descriptor ¶
func (*ExampleItem) Descriptor() ([]byte, []int)
func (*ExampleItem) Equal ¶
func (this *ExampleItem) Equal(that interface{}) bool
func (*ExampleItem) GetCreatedAt ¶
func (m *ExampleItem) GetCreatedAt() *time.Time
func (*ExampleItem) GetDeletedAt ¶
func (m *ExampleItem) GetDeletedAt() *time.Time
func (*ExampleItem) GetId ¶
func (m *ExampleItem) GetId() int64
func (*ExampleItem) GetMess ¶
func (m *ExampleItem) GetMess() string
func (*ExampleItem) GetMoveID ¶
func (m *ExampleItem) GetMoveID() int64
func (*ExampleItem) GetName ¶
func (m *ExampleItem) GetName() string
func (*ExampleItem) GetUpdatedAt ¶
func (m *ExampleItem) GetUpdatedAt() *time.Time
func (*ExampleItem) GoString ¶
func (this *ExampleItem) GoString() string
func (*ExampleItem) Marshal ¶
func (m *ExampleItem) Marshal() (dAtA []byte, err error)
func (*ExampleItem) MarshalToSizedBuffer ¶ added in v0.3.5
func (m *ExampleItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExampleItem) ProtoMessage ¶
func (*ExampleItem) ProtoMessage()
func (*ExampleItem) Reset ¶
func (m *ExampleItem) Reset()
func (*ExampleItem) Size ¶
func (m *ExampleItem) Size() (n int)
func (*ExampleItem) String ¶
func (this *ExampleItem) String() string
func (*ExampleItem) Unmarshal ¶
func (m *ExampleItem) Unmarshal(dAtA []byte) error
func (*ExampleItem) XXX_DiscardUnknown ¶
func (m *ExampleItem) XXX_DiscardUnknown()
func (*ExampleItem) XXX_Marshal ¶
func (m *ExampleItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleItem) XXX_Merge ¶
func (m *ExampleItem) XXX_Merge(src proto.Message)
func (*ExampleItem) XXX_Size ¶
func (m *ExampleItem) XXX_Size() int
func (*ExampleItem) XXX_Unmarshal ¶
func (m *ExampleItem) XXX_Unmarshal(b []byte) error
type ExampleServiceClient ¶
type ExampleServiceClient interface { Read(ctx context.Context, in *sql.SqlQuery, opts ...grpc.CallOption) (*Response, error) List(ctx context.Context, in *sql.SqlQuery, opts ...grpc.CallOption) (*ResponseList, error) Create(ctx context.Context, in *Mutation, opts ...grpc.CallOption) (*MutationResponse, error) Update(ctx context.Context, in *Mutation, opts ...grpc.CallOption) (*Empty, error) }
ExampleServiceClient is the client API for ExampleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleServiceClient ¶
func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient
type ExampleServiceServer ¶
type ExampleServiceServer interface { Read(context.Context, *sql.SqlQuery) (*Response, error) List(context.Context, *sql.SqlQuery) (*ResponseList, error) Create(context.Context, *Mutation) (*MutationResponse, error) Update(context.Context, *Mutation) (*Empty, error) }
ExampleServiceServer is the server API for ExampleService service.
type Mutation ¶
type Mutation struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fields []*MutationField `protobuf:"bytes,8,rep,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedMutation ¶
func (*Mutation) Descriptor ¶
func (*Mutation) GetFields ¶
func (m *Mutation) GetFields() []*MutationField
func (*Mutation) MarshalToSizedBuffer ¶ added in v0.3.5
func (*Mutation) ProtoMessage ¶
func (*Mutation) ProtoMessage()
func (*Mutation) XXX_DiscardUnknown ¶
func (m *Mutation) XXX_DiscardUnknown()
func (*Mutation) XXX_Marshal ¶
func (*Mutation) XXX_Unmarshal ¶
type MutationField ¶
type MutationField struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedMutationField ¶
func NewPopulatedMutationField(r randyExample, easy bool) *MutationField
func (*MutationField) Descriptor ¶
func (*MutationField) Descriptor() ([]byte, []int)
func (*MutationField) Equal ¶
func (this *MutationField) Equal(that interface{}) bool
func (*MutationField) GetName ¶
func (m *MutationField) GetName() string
func (*MutationField) GetValue ¶
func (m *MutationField) GetValue() string
func (*MutationField) GoString ¶
func (this *MutationField) GoString() string
func (*MutationField) Marshal ¶
func (m *MutationField) Marshal() (dAtA []byte, err error)
func (*MutationField) MarshalToSizedBuffer ¶ added in v0.3.5
func (m *MutationField) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MutationField) ProtoMessage ¶
func (*MutationField) ProtoMessage()
func (*MutationField) Reset ¶
func (m *MutationField) Reset()
func (*MutationField) Size ¶
func (m *MutationField) Size() (n int)
func (*MutationField) String ¶
func (this *MutationField) String() string
func (*MutationField) Unmarshal ¶
func (m *MutationField) Unmarshal(dAtA []byte) error
func (*MutationField) XXX_DiscardUnknown ¶
func (m *MutationField) XXX_DiscardUnknown()
func (*MutationField) XXX_Marshal ¶
func (m *MutationField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MutationField) XXX_Merge ¶
func (m *MutationField) XXX_Merge(src proto.Message)
func (*MutationField) XXX_Size ¶
func (m *MutationField) XXX_Size() int
func (*MutationField) XXX_Unmarshal ¶
func (m *MutationField) XXX_Unmarshal(b []byte) error
type MutationResponse ¶
type MutationResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedMutationResponse ¶
func NewPopulatedMutationResponse(r randyExample, easy bool) *MutationResponse
func (*MutationResponse) Descriptor ¶
func (*MutationResponse) Descriptor() ([]byte, []int)
func (*MutationResponse) Equal ¶
func (this *MutationResponse) Equal(that interface{}) bool
func (*MutationResponse) GetId ¶
func (m *MutationResponse) GetId() int64
func (*MutationResponse) GoString ¶
func (this *MutationResponse) GoString() string
func (*MutationResponse) Marshal ¶
func (m *MutationResponse) Marshal() (dAtA []byte, err error)
func (*MutationResponse) MarshalToSizedBuffer ¶ added in v0.3.5
func (m *MutationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MutationResponse) ProtoMessage ¶
func (*MutationResponse) ProtoMessage()
func (*MutationResponse) Reset ¶
func (m *MutationResponse) Reset()
func (*MutationResponse) Size ¶
func (m *MutationResponse) Size() (n int)
func (*MutationResponse) String ¶
func (this *MutationResponse) String() string
func (*MutationResponse) Unmarshal ¶
func (m *MutationResponse) Unmarshal(dAtA []byte) error
func (*MutationResponse) XXX_DiscardUnknown ¶
func (m *MutationResponse) XXX_DiscardUnknown()
func (*MutationResponse) XXX_Marshal ¶
func (m *MutationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MutationResponse) XXX_Merge ¶
func (m *MutationResponse) XXX_Merge(src proto.Message)
func (*MutationResponse) XXX_Size ¶
func (m *MutationResponse) XXX_Size() int
func (*MutationResponse) XXX_Unmarshal ¶
func (m *MutationResponse) XXX_Unmarshal(b []byte) error
type QueryExample ¶
func NewQueryExample ¶
func NewQueryExample(verbose int) *QueryExample
NewQueryExample - initialize QueryExample
func (*QueryExample) BuildMultiQuery ¶
func (p *QueryExample) BuildMultiQuery(in *sql.SqlQuery, field string) (string, []interface{})
BuildMultiQuery - return rows
func (*QueryExample) BuildOneQuery ¶
func (p *QueryExample) BuildOneQuery(in *sql.SqlQuery, field string) (string, []interface{})
BuildOneQuery - return one row
func (*QueryExample) BuildQuery ¶
func (*QueryExample) Close ¶
func (p *QueryExample) Close() error
Close closes the database, releasing any open resources.
func (*QueryExample) Scan ¶
func (p *QueryExample) Scan(val interface{}) error
type QueryExampleItem ¶
func NewQueryExampleItem ¶
func NewQueryExampleItem(verbose int) *QueryExampleItem
NewQueryExampleItem - initialize QueryExampleItem
func (*QueryExampleItem) BuildMultiQuery ¶
func (p *QueryExampleItem) BuildMultiQuery(in *sql.SqlQuery, field string) (string, []interface{})
BuildMultiQuery - return rows
func (*QueryExampleItem) BuildOneQuery ¶
func (p *QueryExampleItem) BuildOneQuery(in *sql.SqlQuery, field string) (string, []interface{})
BuildOneQuery - return one row
func (*QueryExampleItem) BuildQuery ¶
func (*QueryExampleItem) Close ¶
func (p *QueryExampleItem) Close() error
Close closes the database, releasing any open resources.
func (*QueryExampleItem) Scan ¶
func (p *QueryExampleItem) Scan(val interface{}) error
func (*QueryExampleItem) SetDB ¶
func (p *QueryExampleItem) SetDB(db *sqlx.DB)
SetDB setting database
type Response ¶
type Response struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedResponse ¶
func (*Response) Descriptor ¶
func (*Response) MarshalToSizedBuffer ¶ added in v0.3.5
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ResponseList ¶
type ResponseList struct { Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` PageInfo *sql.SqlPageInfo `protobuf:"bytes,3,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedResponseList ¶
func NewPopulatedResponseList(r randyExample, easy bool) *ResponseList
func (*ResponseList) Descriptor ¶
func (*ResponseList) Descriptor() ([]byte, []int)
func (*ResponseList) Equal ¶
func (this *ResponseList) Equal(that interface{}) bool
func (*ResponseList) GetData ¶
func (m *ResponseList) GetData() [][]byte
func (*ResponseList) GetPageInfo ¶
func (m *ResponseList) GetPageInfo() *sql.SqlPageInfo
func (*ResponseList) GetTotal ¶
func (m *ResponseList) GetTotal() int64
func (*ResponseList) GoString ¶
func (this *ResponseList) GoString() string
func (*ResponseList) Marshal ¶
func (m *ResponseList) Marshal() (dAtA []byte, err error)
func (*ResponseList) MarshalToSizedBuffer ¶ added in v0.3.5
func (m *ResponseList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseList) ProtoMessage ¶
func (*ResponseList) ProtoMessage()
func (*ResponseList) Reset ¶
func (m *ResponseList) Reset()
func (*ResponseList) Size ¶
func (m *ResponseList) Size() (n int)
func (*ResponseList) String ¶
func (this *ResponseList) String() string
func (*ResponseList) Unmarshal ¶
func (m *ResponseList) Unmarshal(dAtA []byte) error
func (*ResponseList) XXX_DiscardUnknown ¶
func (m *ResponseList) XXX_DiscardUnknown()
func (*ResponseList) XXX_Marshal ¶
func (m *ResponseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseList) XXX_Merge ¶
func (m *ResponseList) XXX_Merge(src proto.Message)
func (*ResponseList) XXX_Size ¶
func (m *ResponseList) XXX_Size() int
func (*ResponseList) XXX_Unmarshal ¶
func (m *ResponseList) XXX_Unmarshal(b []byte) error
type UnimplementedExampleServiceServer ¶ added in v0.3.5
type UnimplementedExampleServiceServer struct { }
UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServiceServer) Create ¶ added in v0.3.5
func (*UnimplementedExampleServiceServer) Create(ctx context.Context, req *Mutation) (*MutationResponse, error)
func (*UnimplementedExampleServiceServer) List ¶ added in v0.3.5
func (*UnimplementedExampleServiceServer) List(ctx context.Context, req *sql.SqlQuery) (*ResponseList, error)