Documentation ¶
Overview ¶
Package example is a generated protocol buffer package.
It is generated from these files:
example/feature_demo/test.proto example/feature_demo/test2.proto
It has these top-level messages:
TestTypes TypeWithID MultiaccountTypeWithID MultiaccountTypeWithoutID APIOnlyType TypeBecomesEmpty IntPoint CreateIntPointRequest CreateIntPointResponse ReadIntPointRequest ReadIntPointResponse UpdateIntPointRequest UpdateIntPointResponse DeleteIntPointRequest ListIntPointResponse Something
Package example is a generated protocol buffer package.
It is generated from these files:
example/feature_demo/test.proto example/feature_demo/test2.proto
It has these top-level messages:
TestTypes TypeWithID MultiaccountTypeWithID MultiaccountTypeWithoutID APIOnlyType TypeBecomesEmpty IntPoint CreateIntPointRequest CreateIntPointResponse ReadIntPointRequest ReadIntPointResponse UpdateIntPointRequest UpdateIntPointResponse DeleteIntPointRequest ListIntPointResponse Something
Index ¶
- Variables
- func DefaultDeleteIntPoint(ctx context.Context, in *IntPoint, db *gorm.DB) error
- func DefaultDeleteMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) error
- func DefaultDeleteMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) error
- func DefaultDeleteTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) error
- func DefaultDeleteTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) error
- func DefaultDeleteTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) error
- func RegisterIntPointServer(s *grpc.Server, srv IntPointServer)
- type APIOnlyType
- type CreateIntPointRequest
- type CreateIntPointResponse
- type DeleteIntPointRequest
- type IntPoint
- func ConvertIntPointFromORM(from IntPointORM) (IntPoint, error)
- func DefaultCreateIntPoint(ctx context.Context, in *IntPoint, db *gorm.DB) (*IntPoint, error)
- func DefaultListIntPoint(ctx context.Context, db *gorm.DB) ([]*IntPoint, error)
- func DefaultReadIntPoint(ctx context.Context, in *IntPoint, db *gorm.DB) (*IntPoint, error)
- func DefaultStrictUpdateIntPoint(ctx context.Context, in *IntPoint, db *gorm.DB) (*IntPoint, error)
- func DefaultUpdateIntPoint(ctx context.Context, in *IntPoint, db *gorm.DB) (*IntPoint, error)
- type IntPointClient
- type IntPointDefaultServer
- func (m *IntPointDefaultServer) Create(ctx context.Context, in *CreateIntPointRequest) (*CreateIntPointResponse, error)
- func (m *IntPointDefaultServer) CreateSomething(ctx context.Context, in *Something) (*Something, error)
- func (m *IntPointDefaultServer) CustomMethod(ctx context.Context, in *google_protobuf2.Empty) (*google_protobuf2.Empty, error)
- func (m *IntPointDefaultServer) Delete(ctx context.Context, in *DeleteIntPointRequest) (*google_protobuf2.Empty, error)
- func (m *IntPointDefaultServer) List(ctx context.Context, in *google_protobuf2.Empty) (*ListIntPointResponse, error)
- func (m *IntPointDefaultServer) Read(ctx context.Context, in *ReadIntPointRequest) (*ReadIntPointResponse, error)
- func (m *IntPointDefaultServer) Update(ctx context.Context, in *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
- type IntPointORM
- type IntPointServer
- type ListIntPointResponse
- type MultiaccountTypeWithID
- func ConvertMultiaccountTypeWithIDFromORM(from MultiaccountTypeWithIDORM) (MultiaccountTypeWithID, error)
- func DefaultCreateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
- func DefaultListMultiaccountTypeWithID(ctx context.Context, db *gorm.DB) ([]*MultiaccountTypeWithID, error)
- func DefaultReadMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
- func DefaultStrictUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
- func DefaultUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
- type MultiaccountTypeWithIDORM
- type MultiaccountTypeWithoutID
- func ConvertMultiaccountTypeWithoutIDFromORM(from MultiaccountTypeWithoutIDORM) (MultiaccountTypeWithoutID, error)
- func DefaultCreateMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
- func DefaultListMultiaccountTypeWithoutID(ctx context.Context, db *gorm.DB) ([]*MultiaccountTypeWithoutID, error)
- func DefaultReadMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
- func DefaultStrictUpdateMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
- type MultiaccountTypeWithoutIDORM
- type ReadIntPointRequest
- type ReadIntPointResponse
- type Something
- type TestTypes
- func ConvertTestTypesFromORM(from TestTypesORM) (TestTypes, error)
- func DefaultCreateTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) (*TestTypes, error)
- func DefaultListTestTypes(ctx context.Context, db *gorm.DB) ([]*TestTypes, error)
- func DefaultReadTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) (*TestTypes, error)
- func DefaultStrictUpdateTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) (*TestTypes, error)
- func DefaultUpdateTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) (*TestTypes, error)
- func (*TestTypes) Descriptor() ([]byte, []int)
- func (m *TestTypes) GetApiOnlyString() string
- func (m *TestTypes) GetBecomesInt() TestTypesStatus
- func (m *TestTypes) GetCreatedAt() *google_protobuf3.Timestamp
- func (m *TestTypes) GetNothingness() *google_protobuf2.Empty
- func (m *TestTypes) GetNumbers() []int32
- func (m *TestTypes) GetOptionalString() *google_protobuf1.StringValue
- func (m *TestTypes) GetTypeWithIdId() uint32
- func (m *TestTypes) GetUuid() *gormable_types.UUIDValue
- func (*TestTypes) ProtoMessage()
- func (m *TestTypes) Reset()
- func (m *TestTypes) String() string
- type TestTypesORM
- type TestTypesStatus
- type TypeBecomesEmpty
- func ConvertTypeBecomesEmptyFromORM(from TypeBecomesEmptyORM) (TypeBecomesEmpty, error)
- func DefaultCreateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
- func DefaultListTypeBecomesEmpty(ctx context.Context, db *gorm.DB) ([]*TypeBecomesEmpty, error)
- func DefaultReadTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
- func DefaultStrictUpdateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
- func DefaultUpdateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
- type TypeBecomesEmptyORM
- type TypeWithID
- func ConvertTypeWithIDFromORM(from TypeWithIDORM) (TypeWithID, error)
- func DefaultCreateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
- func DefaultListTypeWithID(ctx context.Context, db *gorm.DB) ([]*TypeWithID, error)
- func DefaultReadTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
- func DefaultStrictUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
- func DefaultUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
- func (*TypeWithID) Descriptor() ([]byte, []int)
- func (m *TypeWithID) GetANestedObject() *TestTypes
- func (m *TypeWithID) GetId() uint32
- func (m *TypeWithID) GetIp() string
- func (m *TypeWithID) GetThings() []*TestTypes
- func (*TypeWithID) ProtoMessage()
- func (m *TypeWithID) Reset()
- func (m *TypeWithID) String() string
- type TypeWithIDORM
- type UpdateIntPointRequest
- type UpdateIntPointResponse
Constants ¶
This section is empty.
Variables ¶
var TestTypesStatus_name = map[int32]string{
0: "UNKNOWN",
1: "GOOD",
2: "BAD",
}
var TestTypesStatus_value = map[string]int32{
"UNKNOWN": 0,
"GOOD": 1,
"BAD": 2,
}
Functions ¶
func DefaultDeleteIntPoint ¶
func DefaultDeleteMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultDeleteMultiaccountTypeWithoutID ¶ added in v0.2.0
func DefaultDeleteTestTypes ¶
func DefaultDeleteTypeWithID ¶
func RegisterIntPointServer ¶ added in v0.2.0
func RegisterIntPointServer(s *grpc.Server, srv IntPointServer)
Types ¶
type APIOnlyType ¶ added in v0.2.0
type APIOnlyType struct {
Contents string `protobuf:"bytes,1,opt,name=contents" json:"contents,omitempty"`
}
func (*APIOnlyType) Descriptor ¶ added in v0.2.0
func (*APIOnlyType) Descriptor() ([]byte, []int)
func (*APIOnlyType) GetContents ¶ added in v0.2.0
func (m *APIOnlyType) GetContents() string
func (*APIOnlyType) ProtoMessage ¶ added in v0.2.0
func (*APIOnlyType) ProtoMessage()
func (*APIOnlyType) Reset ¶ added in v0.2.0
func (m *APIOnlyType) Reset()
func (*APIOnlyType) String ¶ added in v0.2.0
func (m *APIOnlyType) String() string
type CreateIntPointRequest ¶ added in v0.2.0
type CreateIntPointRequest struct {
Payload *IntPoint `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}
func (*CreateIntPointRequest) Descriptor ¶ added in v0.2.0
func (*CreateIntPointRequest) Descriptor() ([]byte, []int)
func (*CreateIntPointRequest) GetPayload ¶ added in v0.2.0
func (m *CreateIntPointRequest) GetPayload() *IntPoint
func (*CreateIntPointRequest) ProtoMessage ¶ added in v0.2.0
func (*CreateIntPointRequest) ProtoMessage()
func (*CreateIntPointRequest) Reset ¶ added in v0.2.0
func (m *CreateIntPointRequest) Reset()
func (*CreateIntPointRequest) String ¶ added in v0.2.0
func (m *CreateIntPointRequest) String() string
type CreateIntPointResponse ¶ added in v0.2.0
type CreateIntPointResponse struct {
Result *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*CreateIntPointResponse) Descriptor ¶ added in v0.2.0
func (*CreateIntPointResponse) Descriptor() ([]byte, []int)
func (*CreateIntPointResponse) GetResult ¶ added in v0.2.0
func (m *CreateIntPointResponse) GetResult() *IntPoint
func (*CreateIntPointResponse) ProtoMessage ¶ added in v0.2.0
func (*CreateIntPointResponse) ProtoMessage()
func (*CreateIntPointResponse) Reset ¶ added in v0.2.0
func (m *CreateIntPointResponse) Reset()
func (*CreateIntPointResponse) String ¶ added in v0.2.0
func (m *CreateIntPointResponse) String() string
type DeleteIntPointRequest ¶ added in v0.2.0
type DeleteIntPointRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteIntPointRequest) Descriptor ¶ added in v0.2.0
func (*DeleteIntPointRequest) Descriptor() ([]byte, []int)
func (*DeleteIntPointRequest) GetId ¶ added in v0.2.0
func (m *DeleteIntPointRequest) GetId() uint32
func (*DeleteIntPointRequest) ProtoMessage ¶ added in v0.2.0
func (*DeleteIntPointRequest) ProtoMessage()
func (*DeleteIntPointRequest) Reset ¶ added in v0.2.0
func (m *DeleteIntPointRequest) Reset()
func (*DeleteIntPointRequest) String ¶ added in v0.2.0
func (m *DeleteIntPointRequest) String() string
type IntPoint ¶
type IntPoint struct { Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` X int32 `protobuf:"varint,2,opt,name=x" json:"x,omitempty"` Y int32 `protobuf:"varint,3,opt,name=y" json:"y,omitempty"` }
func ConvertIntPointFromORM ¶
func ConvertIntPointFromORM(from IntPointORM) (IntPoint, error)
ConvertIntPointFromORM takes an orm object and returns a pb object
func DefaultCreateIntPoint ¶
//////////////////////// CURDL for objects DefaultCreateIntPoint executes a basic gorm create call
func DefaultListIntPoint ¶
DefaultListIntPoint executes a gorm list call
func DefaultReadIntPoint ¶
DefaultReadIntPoint executes a basic gorm read call
func DefaultStrictUpdateIntPoint ¶
DefaultStrictUpdateIntPoint clears first level 1:many children and then executes a gorm update call
func DefaultUpdateIntPoint ¶
DefaultUpdateIntPoint executes a basic gorm update call
func (*IntPoint) Descriptor ¶
func (*IntPoint) ProtoMessage ¶
func (*IntPoint) ProtoMessage()
type IntPointClient ¶ added in v0.2.0
type IntPointClient interface { Create(ctx context.Context, in *CreateIntPointRequest, opts ...grpc.CallOption) (*CreateIntPointResponse, error) Read(ctx context.Context, in *ReadIntPointRequest, opts ...grpc.CallOption) (*ReadIntPointResponse, error) Update(ctx context.Context, in *UpdateIntPointRequest, opts ...grpc.CallOption) (*UpdateIntPointResponse, error) List(ctx context.Context, in *google_protobuf2.Empty, opts ...grpc.CallOption) (*ListIntPointResponse, error) Delete(ctx context.Context, in *DeleteIntPointRequest, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) CustomMethod(ctx context.Context, in *google_protobuf2.Empty, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) CreateSomething(ctx context.Context, in *Something, opts ...grpc.CallOption) (*Something, error) }
func NewIntPointClient ¶ added in v0.2.0
func NewIntPointClient(cc *grpc.ClientConn) IntPointClient
type IntPointDefaultServer ¶ added in v0.2.0
func (*IntPointDefaultServer) Create ¶ added in v0.2.0
func (m *IntPointDefaultServer) Create(ctx context.Context, in *CreateIntPointRequest) (*CreateIntPointResponse, error)
Create ...
func (*IntPointDefaultServer) CreateSomething ¶ added in v0.2.0
func (m *IntPointDefaultServer) CreateSomething(ctx context.Context, in *Something) (*Something, error)
CreateSomething ...
func (*IntPointDefaultServer) CustomMethod ¶ added in v0.2.0
func (m *IntPointDefaultServer) CustomMethod(ctx context.Context, in *google_protobuf2.Empty) (*google_protobuf2.Empty, error)
CustomMethod ...
func (*IntPointDefaultServer) Delete ¶ added in v0.2.0
func (m *IntPointDefaultServer) Delete(ctx context.Context, in *DeleteIntPointRequest) (*google_protobuf2.Empty, error)
Delete ...
func (*IntPointDefaultServer) List ¶ added in v0.2.0
func (m *IntPointDefaultServer) List(ctx context.Context, in *google_protobuf2.Empty) (*ListIntPointResponse, error)
List ...
func (*IntPointDefaultServer) Read ¶ added in v0.2.0
func (m *IntPointDefaultServer) Read(ctx context.Context, in *ReadIntPointRequest) (*ReadIntPointResponse, error)
Read ...
func (*IntPointDefaultServer) Update ¶ added in v0.2.0
func (m *IntPointDefaultServer) Update(ctx context.Context, in *UpdateIntPointRequest) (*UpdateIntPointResponse, error)
Update ...
type IntPointORM ¶
IntPointORM no comment was provided for message type
func ConvertIntPointToORM ¶
func ConvertIntPointToORM(from IntPoint) (IntPointORM, error)
ConvertIntPointToORM takes a pb object and returns an orm object
func (IntPointORM) TableName ¶
func (IntPointORM) TableName() string
TableName overrides the default tablename generated by GORM
type IntPointServer ¶ added in v0.2.0
type IntPointServer interface { Create(context.Context, *CreateIntPointRequest) (*CreateIntPointResponse, error) Read(context.Context, *ReadIntPointRequest) (*ReadIntPointResponse, error) Update(context.Context, *UpdateIntPointRequest) (*UpdateIntPointResponse, error) List(context.Context, *google_protobuf2.Empty) (*ListIntPointResponse, error) Delete(context.Context, *DeleteIntPointRequest) (*google_protobuf2.Empty, error) CustomMethod(context.Context, *google_protobuf2.Empty) (*google_protobuf2.Empty, error) CreateSomething(context.Context, *Something) (*Something, error) }
type ListIntPointResponse ¶ added in v0.2.0
type ListIntPointResponse struct {
Results []*IntPoint `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}
func (*ListIntPointResponse) Descriptor ¶ added in v0.2.0
func (*ListIntPointResponse) Descriptor() ([]byte, []int)
func (*ListIntPointResponse) GetResults ¶ added in v0.2.0
func (m *ListIntPointResponse) GetResults() []*IntPoint
func (*ListIntPointResponse) ProtoMessage ¶ added in v0.2.0
func (*ListIntPointResponse) ProtoMessage()
func (*ListIntPointResponse) Reset ¶ added in v0.2.0
func (m *ListIntPointResponse) Reset()
func (*ListIntPointResponse) String ¶ added in v0.2.0
func (m *ListIntPointResponse) String() string
type MultiaccountTypeWithID ¶ added in v0.2.0
type MultiaccountTypeWithID struct { Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` SomeField string `protobuf:"bytes,2,opt,name=some_field,json=someField" json:"some_field,omitempty"` }
func ConvertMultiaccountTypeWithIDFromORM ¶ added in v0.2.0
func ConvertMultiaccountTypeWithIDFromORM(from MultiaccountTypeWithIDORM) (MultiaccountTypeWithID, error)
ConvertMultiaccountTypeWithIDFromORM takes an orm object and returns a pb object
func DefaultCreateMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultCreateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
DefaultCreateMultiaccountTypeWithID executes a basic gorm create call
func DefaultListMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultListMultiaccountTypeWithID(ctx context.Context, db *gorm.DB) ([]*MultiaccountTypeWithID, error)
DefaultListMultiaccountTypeWithID executes a gorm list call
func DefaultReadMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultReadMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
DefaultReadMultiaccountTypeWithID executes a basic gorm read call
func DefaultStrictUpdateMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultStrictUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
DefaultStrictUpdateMultiaccountTypeWithID clears first level 1:many children and then executes a gorm update call
func DefaultUpdateMultiaccountTypeWithID ¶ added in v0.2.0
func DefaultUpdateMultiaccountTypeWithID(ctx context.Context, in *MultiaccountTypeWithID, db *gorm.DB) (*MultiaccountTypeWithID, error)
DefaultUpdateMultiaccountTypeWithID executes a basic gorm update call
func (*MultiaccountTypeWithID) Descriptor ¶ added in v0.2.0
func (*MultiaccountTypeWithID) Descriptor() ([]byte, []int)
func (*MultiaccountTypeWithID) GetId ¶ added in v0.2.0
func (m *MultiaccountTypeWithID) GetId() uint64
func (*MultiaccountTypeWithID) GetSomeField ¶ added in v0.2.0
func (m *MultiaccountTypeWithID) GetSomeField() string
func (*MultiaccountTypeWithID) ProtoMessage ¶ added in v0.2.0
func (*MultiaccountTypeWithID) ProtoMessage()
func (*MultiaccountTypeWithID) Reset ¶ added in v0.2.0
func (m *MultiaccountTypeWithID) Reset()
func (*MultiaccountTypeWithID) String ¶ added in v0.2.0
func (m *MultiaccountTypeWithID) String() string
type MultiaccountTypeWithIDORM ¶ added in v0.2.0
MultiaccountTypeWithIDORM no comment was provided for message type
func ConvertMultiaccountTypeWithIDToORM ¶ added in v0.2.0
func ConvertMultiaccountTypeWithIDToORM(from MultiaccountTypeWithID) (MultiaccountTypeWithIDORM, error)
ConvertMultiaccountTypeWithIDToORM takes a pb object and returns an orm object
func (MultiaccountTypeWithIDORM) TableName ¶ added in v0.2.0
func (MultiaccountTypeWithIDORM) TableName() string
TableName overrides the default tablename generated by GORM
type MultiaccountTypeWithoutID ¶ added in v0.2.0
type MultiaccountTypeWithoutID struct {
SomeField string `protobuf:"bytes,1,opt,name=some_field,json=someField" json:"some_field,omitempty"`
}
func ConvertMultiaccountTypeWithoutIDFromORM ¶ added in v0.2.0
func ConvertMultiaccountTypeWithoutIDFromORM(from MultiaccountTypeWithoutIDORM) (MultiaccountTypeWithoutID, error)
ConvertMultiaccountTypeWithoutIDFromORM takes an orm object and returns a pb object
func DefaultCreateMultiaccountTypeWithoutID ¶ added in v0.2.0
func DefaultCreateMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
DefaultCreateMultiaccountTypeWithoutID executes a basic gorm create call
func DefaultListMultiaccountTypeWithoutID ¶ added in v0.2.0
func DefaultListMultiaccountTypeWithoutID(ctx context.Context, db *gorm.DB) ([]*MultiaccountTypeWithoutID, error)
DefaultListMultiaccountTypeWithoutID executes a gorm list call
func DefaultReadMultiaccountTypeWithoutID ¶ added in v0.2.0
func DefaultReadMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
DefaultReadMultiaccountTypeWithoutID executes a basic gorm read call
func DefaultStrictUpdateMultiaccountTypeWithoutID ¶ added in v0.2.0
func DefaultStrictUpdateMultiaccountTypeWithoutID(ctx context.Context, in *MultiaccountTypeWithoutID, db *gorm.DB) (*MultiaccountTypeWithoutID, error)
DefaultStrictUpdateMultiaccountTypeWithoutID clears first level 1:many children and then executes a gorm update call
func (*MultiaccountTypeWithoutID) Descriptor ¶ added in v0.2.0
func (*MultiaccountTypeWithoutID) Descriptor() ([]byte, []int)
func (*MultiaccountTypeWithoutID) GetSomeField ¶ added in v0.2.0
func (m *MultiaccountTypeWithoutID) GetSomeField() string
func (*MultiaccountTypeWithoutID) ProtoMessage ¶ added in v0.2.0
func (*MultiaccountTypeWithoutID) ProtoMessage()
func (*MultiaccountTypeWithoutID) Reset ¶ added in v0.2.0
func (m *MultiaccountTypeWithoutID) Reset()
func (*MultiaccountTypeWithoutID) String ¶ added in v0.2.0
func (m *MultiaccountTypeWithoutID) String() string
type MultiaccountTypeWithoutIDORM ¶ added in v0.2.0
MultiaccountTypeWithoutIDORM no comment was provided for message type
func ConvertMultiaccountTypeWithoutIDToORM ¶ added in v0.2.0
func ConvertMultiaccountTypeWithoutIDToORM(from MultiaccountTypeWithoutID) (MultiaccountTypeWithoutIDORM, error)
ConvertMultiaccountTypeWithoutIDToORM takes a pb object and returns an orm object
func (MultiaccountTypeWithoutIDORM) TableName ¶ added in v0.2.0
func (MultiaccountTypeWithoutIDORM) TableName() string
TableName overrides the default tablename generated by GORM
type ReadIntPointRequest ¶ added in v0.2.0
type ReadIntPointRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ReadIntPointRequest) Descriptor ¶ added in v0.2.0
func (*ReadIntPointRequest) Descriptor() ([]byte, []int)
func (*ReadIntPointRequest) GetId ¶ added in v0.2.0
func (m *ReadIntPointRequest) GetId() uint32
func (*ReadIntPointRequest) ProtoMessage ¶ added in v0.2.0
func (*ReadIntPointRequest) ProtoMessage()
func (*ReadIntPointRequest) Reset ¶ added in v0.2.0
func (m *ReadIntPointRequest) Reset()
func (*ReadIntPointRequest) String ¶ added in v0.2.0
func (m *ReadIntPointRequest) String() string
type ReadIntPointResponse ¶ added in v0.2.0
type ReadIntPointResponse struct {
Result *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*ReadIntPointResponse) Descriptor ¶ added in v0.2.0
func (*ReadIntPointResponse) Descriptor() ([]byte, []int)
func (*ReadIntPointResponse) GetResult ¶ added in v0.2.0
func (m *ReadIntPointResponse) GetResult() *IntPoint
func (*ReadIntPointResponse) ProtoMessage ¶ added in v0.2.0
func (*ReadIntPointResponse) ProtoMessage()
func (*ReadIntPointResponse) Reset ¶ added in v0.2.0
func (m *ReadIntPointResponse) Reset()
func (*ReadIntPointResponse) String ¶ added in v0.2.0
func (m *ReadIntPointResponse) String() string
type Something ¶ added in v0.2.0
type Something struct { }
func (*Something) Descriptor ¶ added in v0.2.0
func (*Something) ProtoMessage ¶ added in v0.2.0
func (*Something) ProtoMessage()
type TestTypes ¶
type TestTypes struct { ApiOnlyString string `protobuf:"bytes,1,opt,name=api_only_string,json=apiOnlyString" json:"api_only_string,omitempty"` Numbers []int32 `protobuf:"varint,2,rep,packed,name=numbers" json:"numbers,omitempty"` OptionalString *google_protobuf1.StringValue `protobuf:"bytes,3,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"` BecomesInt TestTypesStatus `protobuf:"varint,4,opt,name=becomes_int,json=becomesInt,enum=example.TestTypesStatus" json:"becomes_int,omitempty"` Nothingness *google_protobuf2.Empty `protobuf:"bytes,5,opt,name=nothingness" json:"nothingness,omitempty"` Uuid *gormable_types.UUIDValue `protobuf:"bytes,6,opt,name=uuid" json:"uuid,omitempty"` CreatedAt *google_protobuf3.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` TypeWithIdId uint32 `protobuf:"varint,8,opt,name=type_with_id_id,json=typeWithIdId" json:"type_with_id_id,omitempty"` }
test_types is a message that serves as an example
func ConvertTestTypesFromORM ¶
func ConvertTestTypesFromORM(from TestTypesORM) (TestTypes, error)
ConvertTestTypesFromORM takes an orm object and returns a pb object
func DefaultCreateTestTypes ¶
//////////////////////// CURDL for objects DefaultCreateTestTypes executes a basic gorm create call
func DefaultListTestTypes ¶
DefaultListTestTypes executes a gorm list call
func DefaultReadTestTypes ¶
DefaultReadTestTypes executes a basic gorm read call
func DefaultStrictUpdateTestTypes ¶
func DefaultStrictUpdateTestTypes(ctx context.Context, in *TestTypes, db *gorm.DB) (*TestTypes, error)
DefaultStrictUpdateTestTypes clears first level 1:many children and then executes a gorm update call
func DefaultUpdateTestTypes ¶
DefaultUpdateTestTypes executes a basic gorm update call
func (*TestTypes) Descriptor ¶
func (*TestTypes) GetApiOnlyString ¶
func (*TestTypes) GetBecomesInt ¶
func (m *TestTypes) GetBecomesInt() TestTypesStatus
func (*TestTypes) GetCreatedAt ¶
func (m *TestTypes) GetCreatedAt() *google_protobuf3.Timestamp
func (*TestTypes) GetNothingness ¶
func (m *TestTypes) GetNothingness() *google_protobuf2.Empty
func (*TestTypes) GetNumbers ¶
func (*TestTypes) GetOptionalString ¶
func (m *TestTypes) GetOptionalString() *google_protobuf1.StringValue
func (*TestTypes) GetTypeWithIdId ¶ added in v0.2.0
func (*TestTypes) GetUuid ¶
func (m *TestTypes) GetUuid() *gormable_types.UUIDValue
func (*TestTypes) ProtoMessage ¶
func (*TestTypes) ProtoMessage()
type TestTypesORM ¶
type TestTypesORM struct { // Skipping field from proto option: ApiOnlyString // The non-ORMable repeated field "Numbers" can't be included OptionalString *string BecomesInt int32 // Empty type has no ORM equivalency Uuid *uuid.UUID `sql:"type:uuid"` CreatedAt time.Time TypeWithIdId uint32 }
TestTypesORM is a message that serves as an example
func ConvertTestTypesToORM ¶
func ConvertTestTypesToORM(from TestTypes) (TestTypesORM, error)
ConvertTestTypesToORM takes a pb object and returns an orm object
func (TestTypesORM) TableName ¶
func (TestTypesORM) TableName() string
TableName overrides the default tablename generated by GORM
type TestTypesStatus ¶
type TestTypesStatus int32
const ( TestTypes_UNKNOWN TestTypesStatus = 0 TestTypes_GOOD TestTypesStatus = 1 TestTypes_BAD TestTypesStatus = 2 )
func (TestTypesStatus) EnumDescriptor ¶
func (TestTypesStatus) EnumDescriptor() ([]byte, []int)
func (TestTypesStatus) String ¶
func (x TestTypesStatus) String() string
type TypeBecomesEmpty ¶
type TypeBecomesEmpty struct {
AThing *APIOnlyType `protobuf:"bytes,1,opt,name=a_thing,json=aThing" json:"a_thing,omitempty"`
}
func ConvertTypeBecomesEmptyFromORM ¶
func ConvertTypeBecomesEmptyFromORM(from TypeBecomesEmptyORM) (TypeBecomesEmpty, error)
ConvertTypeBecomesEmptyFromORM takes an orm object and returns a pb object
func DefaultCreateTypeBecomesEmpty ¶
func DefaultCreateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
DefaultCreateTypeBecomesEmpty executes a basic gorm create call
func DefaultListTypeBecomesEmpty ¶
DefaultListTypeBecomesEmpty executes a gorm list call
func DefaultReadTypeBecomesEmpty ¶
func DefaultReadTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
DefaultReadTypeBecomesEmpty executes a basic gorm read call
func DefaultStrictUpdateTypeBecomesEmpty ¶
func DefaultStrictUpdateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
DefaultStrictUpdateTypeBecomesEmpty clears first level 1:many children and then executes a gorm update call
func DefaultUpdateTypeBecomesEmpty ¶
func DefaultUpdateTypeBecomesEmpty(ctx context.Context, in *TypeBecomesEmpty, db *gorm.DB) (*TypeBecomesEmpty, error)
DefaultUpdateTypeBecomesEmpty executes a basic gorm update call
func (*TypeBecomesEmpty) Descriptor ¶
func (*TypeBecomesEmpty) Descriptor() ([]byte, []int)
func (*TypeBecomesEmpty) GetAThing ¶
func (m *TypeBecomesEmpty) GetAThing() *APIOnlyType
func (*TypeBecomesEmpty) ProtoMessage ¶
func (*TypeBecomesEmpty) ProtoMessage()
func (*TypeBecomesEmpty) Reset ¶
func (m *TypeBecomesEmpty) Reset()
func (*TypeBecomesEmpty) String ¶
func (m *TypeBecomesEmpty) String() string
type TypeBecomesEmptyORM ¶
type TypeBecomesEmptyORM struct { }
TypeBecomesEmptyORM no comment was provided for message type
func ConvertTypeBecomesEmptyToORM ¶
func ConvertTypeBecomesEmptyToORM(from TypeBecomesEmpty) (TypeBecomesEmptyORM, error)
ConvertTypeBecomesEmptyToORM takes a pb object and returns an orm object
func (TypeBecomesEmptyORM) TableName ¶
func (TypeBecomesEmptyORM) TableName() string
TableName overrides the default tablename generated by GORM
type TypeWithID ¶ added in v0.2.0
type TypeWithID struct { Ip string `protobuf:"bytes,1,opt,name=ip" json:"ip,omitempty"` Things []*TestTypes `protobuf:"bytes,3,rep,name=things" json:"things,omitempty"` ANestedObject *TestTypes `protobuf:"bytes,4,opt,name=a_nested_object,json=aNestedObject" json:"a_nested_object,omitempty"` Id uint32 `protobuf:"varint,5,opt,name=id" json:"id,omitempty"` }
func ConvertTypeWithIDFromORM ¶
func ConvertTypeWithIDFromORM(from TypeWithIDORM) (TypeWithID, error)
ConvertTypeWithIDFromORM takes an orm object and returns a pb object
func DefaultCreateTypeWithID ¶
func DefaultCreateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
DefaultCreateTypeWithID executes a basic gorm create call
func DefaultListTypeWithID ¶ added in v0.2.0
DefaultListTypeWithID executes a gorm list call
func DefaultReadTypeWithID ¶
func DefaultReadTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
DefaultReadTypeWithID executes a basic gorm read call
func DefaultStrictUpdateTypeWithID ¶
func DefaultStrictUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
DefaultStrictUpdateTypeWithID clears first level 1:many children and then executes a gorm update call
func DefaultUpdateTypeWithID ¶
func DefaultUpdateTypeWithID(ctx context.Context, in *TypeWithID, db *gorm.DB) (*TypeWithID, error)
DefaultUpdateTypeWithID executes a basic gorm update call
func (*TypeWithID) Descriptor ¶ added in v0.2.0
func (*TypeWithID) Descriptor() ([]byte, []int)
func (*TypeWithID) GetANestedObject ¶ added in v0.2.0
func (m *TypeWithID) GetANestedObject() *TestTypes
func (*TypeWithID) GetId ¶ added in v0.2.0
func (m *TypeWithID) GetId() uint32
func (*TypeWithID) GetIp ¶ added in v0.2.0
func (m *TypeWithID) GetIp() string
func (*TypeWithID) GetThings ¶ added in v0.2.0
func (m *TypeWithID) GetThings() []*TestTypes
func (*TypeWithID) ProtoMessage ¶ added in v0.2.0
func (*TypeWithID) ProtoMessage()
func (*TypeWithID) Reset ¶ added in v0.2.0
func (m *TypeWithID) Reset()
func (*TypeWithID) String ¶ added in v0.2.0
func (m *TypeWithID) String() string
type TypeWithIDORM ¶
type TypeWithIDORM struct { Uuid int32 `gorm:"primary_key"` Ip string `gorm:"ip_addr"` Things []*TestTypesORM `gorm:"foreignkey:TypeWithIDId"` ANestedObject *TestTypesORM `gorm:"foreignkey:TypeWithIDId"` Id uint32 }
TypeWithIDORM no comment was provided for message type
func ConvertTypeWithIDToORM ¶
func ConvertTypeWithIDToORM(from TypeWithID) (TypeWithIDORM, error)
ConvertTypeWithIDToORM takes a pb object and returns an orm object
func (TypeWithIDORM) TableName ¶
func (TypeWithIDORM) TableName() string
TableName overrides the default tablename generated by GORM
type UpdateIntPointRequest ¶ added in v0.2.0
type UpdateIntPointRequest struct {
Payload *IntPoint `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}
func (*UpdateIntPointRequest) Descriptor ¶ added in v0.2.0
func (*UpdateIntPointRequest) Descriptor() ([]byte, []int)
func (*UpdateIntPointRequest) GetPayload ¶ added in v0.2.0
func (m *UpdateIntPointRequest) GetPayload() *IntPoint
func (*UpdateIntPointRequest) ProtoMessage ¶ added in v0.2.0
func (*UpdateIntPointRequest) ProtoMessage()
func (*UpdateIntPointRequest) Reset ¶ added in v0.2.0
func (m *UpdateIntPointRequest) Reset()
func (*UpdateIntPointRequest) String ¶ added in v0.2.0
func (m *UpdateIntPointRequest) String() string
type UpdateIntPointResponse ¶ added in v0.2.0
type UpdateIntPointResponse struct {
Result *IntPoint `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*UpdateIntPointResponse) Descriptor ¶ added in v0.2.0
func (*UpdateIntPointResponse) Descriptor() ([]byte, []int)
func (*UpdateIntPointResponse) GetResult ¶ added in v0.2.0
func (m *UpdateIntPointResponse) GetResult() *IntPoint
func (*UpdateIntPointResponse) ProtoMessage ¶ added in v0.2.0
func (*UpdateIntPointResponse) ProtoMessage()
func (*UpdateIntPointResponse) Reset ¶ added in v0.2.0
func (m *UpdateIntPointResponse) Reset()
func (*UpdateIntPointResponse) String ¶ added in v0.2.0
func (m *UpdateIntPointResponse) String() string