Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2023 Changes in this version + var ApiService_ServiceDesc = grpc.ServiceDesc + var File_api_proto protoreflect.FileDescriptor + var File_gorm_proto protoreflect.FileDescriptor + func DefaultDeleteExample(ctx context.Context, in *Example, db *gorm.DB) error + func DefaultDeleteExampleSet(ctx context.Context, in []*Example, db *gorm.DB) error + func RegisterApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiServiceClient) error + func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterApiServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApiServiceServer) error + func RegisterApiServiceServer(s grpc.ServiceRegistrar, srv ApiServiceServer) + type ApiServiceClient interface + Hello func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HelloResponse, error) + func NewApiServiceClient(cc grpc.ClientConnInterface) ApiServiceClient + type ApiServiceServer interface + Hello func(context.Context, *Empty) (*HelloResponse, error) + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type Example struct + CratedAt *timestamppb.Timestamp + DeletedAt *timestamppb.Timestamp + Id uint64 + UpdatedAt *timestamppb.Timestamp + func DefaultApplyFieldMaskExample(ctx context.Context, patchee *Example, patcher *Example, ...) (*Example, error) + func DefaultCreateExample(ctx context.Context, in *Example, db *gorm.DB) (*Example, error) + func DefaultListExample(ctx context.Context, db *gorm.DB) ([]*Example, error) + func DefaultPatchExample(ctx context.Context, in *Example, updateMask *field_mask.FieldMask, ...) (*Example, error) + func DefaultPatchSetExample(ctx context.Context, objects []*Example, updateMasks []*field_mask.FieldMask, ...) ([]*Example, error) + func DefaultReadExample(ctx context.Context, in *Example, db *gorm.DB) (*Example, error) + func DefaultStrictUpdateExample(ctx context.Context, in *Example, db *gorm.DB) (*Example, error) + func (*Example) Descriptor() ([]byte, []int) + func (*Example) ProtoMessage() + func (m *Example) ToORM(ctx context.Context) (ExampleORM, error) + func (x *Example) GetCratedAt() *timestamppb.Timestamp + func (x *Example) GetDeletedAt() *timestamppb.Timestamp + func (x *Example) GetId() uint64 + func (x *Example) GetUpdatedAt() *timestamppb.Timestamp + func (x *Example) ProtoReflect() protoreflect.Message + func (x *Example) Reset() + func (x *Example) String() string + type ExampleORM struct + CratedAt *time.Time + DeletedAt *time.Time + Id uint64 + UpdatedAt *time.Time + func (ExampleORM) TableName() string + func (m *ExampleORM) ToPB(ctx context.Context) (Example, error) + type ExampleORMWithAfterCreate_ interface + AfterCreate_ func(context.Context, *gorm.DB) error + type ExampleORMWithAfterDeleteSet interface + AfterDeleteSet func(context.Context, []*Example, *gorm.DB) error + type ExampleORMWithAfterDelete_ interface + AfterDelete_ func(context.Context, *gorm.DB) error + type ExampleORMWithAfterListFind interface + AfterListFind func(context.Context, *gorm.DB, *[]ExampleORM) error + type ExampleORMWithAfterReadFind interface + AfterReadFind func(context.Context, *gorm.DB) error + type ExampleORMWithAfterStrictUpdateSave interface + AfterStrictUpdateSave func(context.Context, *gorm.DB) error + type ExampleORMWithBeforeCreate_ interface + BeforeCreate_ func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeDeleteSet interface + BeforeDeleteSet func(context.Context, []*Example, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeDelete_ interface + BeforeDelete_ func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeListApplyQuery interface + BeforeListApplyQuery func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeListFind interface + BeforeListFind func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeReadApplyQuery interface + BeforeReadApplyQuery func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeReadFind interface + BeforeReadFind func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeStrictUpdateCleanup interface + BeforeStrictUpdateCleanup func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleORMWithBeforeStrictUpdateSave interface + BeforeStrictUpdateSave func(context.Context, *gorm.DB) (*gorm.DB, error) + type ExampleWithAfterPatchSave interface + AfterPatchSave func(context.Context, *Example, *field_mask.FieldMask, *gorm.DB) error + type ExampleWithAfterToORM interface + AfterToORM func(context.Context, *ExampleORM) error + type ExampleWithAfterToPB interface + AfterToPB func(context.Context, *Example) error + type ExampleWithBeforePatchApplyFieldMask interface + BeforePatchApplyFieldMask func(context.Context, *Example, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error) + type ExampleWithBeforePatchRead interface + BeforePatchRead func(context.Context, *Example, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error) + type ExampleWithBeforePatchSave interface + BeforePatchSave func(context.Context, *Example, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error) + type ExampleWithBeforeToORM interface + BeforeToORM func(context.Context, *ExampleORM) error + type ExampleWithBeforeToPB interface + BeforeToPB func(context.Context, *Example) error + type HelloResponse struct + HttpStatus *StandardResponse + Message string + func (*HelloResponse) Descriptor() ([]byte, []int) + func (*HelloResponse) ProtoMessage() + func (x *HelloResponse) GetHttpStatus() *StandardResponse + func (x *HelloResponse) GetMessage() string + func (x *HelloResponse) ProtoReflect() protoreflect.Message + func (x *HelloResponse) Reset() + func (x *HelloResponse) String() string + type StandardResponse struct + Code uint64 + Message string + Success bool + func (*StandardResponse) Descriptor() ([]byte, []int) + func (*StandardResponse) ProtoMessage() + func (x *StandardResponse) GetCode() uint64 + func (x *StandardResponse) GetMessage() string + func (x *StandardResponse) GetSuccess() bool + func (x *StandardResponse) ProtoReflect() protoreflect.Message + func (x *StandardResponse) Reset() + func (x *StandardResponse) String() string + type UnimplementedApiServiceServer struct + func (UnimplementedApiServiceServer) Hello(context.Context, *Empty) (*HelloResponse, error) + type UnsafeApiServiceServer interface