Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + const BoolKind + const DoubleKind + const FloatKind + const IntKind + const JsonKind + const LongKind + const NullKind + const StringKind + var File_data_address_proto protoreflect.FileDescriptor + var File_data_data_proto protoreflect.FileDescriptor + func ParseSort(fields []string) string + type Address struct + City string + Country string + Latitude string + Line1 string + Line2 string + Line3 string + Longitude string + State string + ZipCode string + func (*Address) Descriptor() ([]byte, []int) + func (*Address) ProtoMessage() + func (x *Address) GetCity() string + func (x *Address) GetCountry() string + func (x *Address) GetLatitude() string + func (x *Address) GetLine1() string + func (x *Address) GetLine2() string + func (x *Address) GetLine3() string + func (x *Address) GetLongitude() string + func (x *Address) GetState() string + func (x *Address) GetZipCode() string + func (x *Address) ProtoReflect() protoreflect.Message + func (x *Address) Reset() + func (x *Address) String() string + type AddressEntity struct + City string + Country string + Latitude string + Line1 string + Line2 string + Line3 string + Longitude string + State string + ZipCode string + func NewAddressEntityFromPb(s *Address) *AddressEntity + func (s *AddressEntity) ToPb() *Address + type AfterCreate struct + Entity TEntity + func NewAfterCreate(entity TEntity) *AfterCreate[TEntity] + type AfterDelete struct + Entity TEntity + func NewAfterDelete(entity TEntity) *AfterDelete[TEntity] + type AfterUpdate struct + Entity TEntity + func NewAfterUpdate(entity TEntity) *AfterUpdate[TEntity] + type BeforeCreate struct + Entity TEntity + func NewBeforeCreate(entity TEntity) *BeforeCreate[TEntity] + type BeforeDelete struct + Entity TEntity + func NewBeforeDelete(entity TEntity) *BeforeDelete[TEntity] + type BeforeUpdate struct + Entity TEntity + P query.Select + func NewBeforeUpdate(entity TEntity) *BeforeUpdate[TEntity] + type DynamicValue struct + Value isDynamicValue_Value + func (*DynamicValue) Descriptor() ([]byte, []int) + func (*DynamicValue) ProtoMessage() + func (m *DynamicValue) GetValue() isDynamicValue_Value + func (x *DynamicValue) GetBoolValue() bool + func (x *DynamicValue) GetDoubleValue() float64 + func (x *DynamicValue) GetFloatValue() float32 + func (x *DynamicValue) GetIntValue() int32 + func (x *DynamicValue) GetJsonValue() *structpb.Struct + func (x *DynamicValue) GetLongValue() int64 + func (x *DynamicValue) GetNullValue() structpb.NullValue + func (x *DynamicValue) GetStringValue() string + func (x *DynamicValue) ProtoReflect() protoreflect.Message + func (x *DynamicValue) Reset() + func (x *DynamicValue) String() string + type DynamicValueFilter struct + Filter isDynamicValueFilter_Filter + func (*DynamicValueFilter) Descriptor() ([]byte, []int) + func (*DynamicValueFilter) ProtoMessage() + func (m *DynamicValueFilter) GetFilter() isDynamicValueFilter_Filter + func (x *DynamicValueFilter) GetBoolValue() *query.BooleanFilterOperators + func (x *DynamicValueFilter) GetDoubleValue() *query.DoubleFilterOperators + func (x *DynamicValueFilter) GetFloatValue() *query.FloatFilterOperators + func (x *DynamicValueFilter) GetIntValue() *query.Int32FilterOperators + func (x *DynamicValueFilter) GetLongValue() *query.Int64FilterOperators + func (x *DynamicValueFilter) GetNullValue() *query.NullFilterOperators + func (x *DynamicValueFilter) GetStringValue() *query.StringFilterOperation + func (x *DynamicValueFilter) ProtoReflect() protoreflect.Message + func (x *DynamicValueFilter) Reset() + func (x *DynamicValueFilter) String() string + type DynamicValueFilter_BoolValue struct + BoolValue *query.BooleanFilterOperators + type DynamicValueFilter_DoubleValue struct + DoubleValue *query.DoubleFilterOperators + type DynamicValueFilter_FloatValue struct + FloatValue *query.FloatFilterOperators + type DynamicValueFilter_IntValue struct + IntValue *query.Int32FilterOperators + type DynamicValueFilter_LongValue struct + LongValue *query.Int64FilterOperators + type DynamicValueFilter_NullValue struct + NullValue *query.NullFilterOperators + type DynamicValueFilter_StringValue struct + StringValue *query.StringFilterOperation + type DynamicValue_BoolValue struct + BoolValue bool + type DynamicValue_DoubleValue struct + DoubleValue float64 + type DynamicValue_FloatValue struct + FloatValue float32 + type DynamicValue_IntValue struct + IntValue int32 + type DynamicValue_JsonValue struct + JsonValue *structpb.Struct + type DynamicValue_LongValue struct + LongValue int64 + type DynamicValue_NullValue struct + NullValue structpb.NullValue + type DynamicValue_StringValue struct + StringValue string + type JSONMap map[string]interface + func (JSONMap) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (m *JSONMap) Scan(val interface{}) error + func (m *JSONMap) UnmarshalJSON(b []byte) error + func (m JSONMap) GormDataType() string + func (m JSONMap) GormValue(ctx context.Context, db *gorm.DB) clause.Expr + func (m JSONMap) MarshalJSON() ([]byte, error) + func (m JSONMap) Value() (driver.Value, error) + type Repo interface + BatchCreate func(ctx context.Context, entity []*TEntity, batchSize int) error + Count func(ctx context.Context, query *TQuery) (total int64, filtered int64, err error) + Create func(ctx context.Context, entity *TEntity) error + Delete func(ctx context.Context, id TKey) error + First func(ctx context.Context, query *TQuery) (*TEntity, error) + Get func(ctx context.Context, id TKey) (*TEntity, error) + List func(ctx context.Context, query *TQuery) ([]*TEntity, error) + Update func(ctx context.Context, id TKey, entity *TEntity, p query.Select) error + Upsert func(ctx context.Context, entity *TEntity) error + type SortOpt struct + Field string + IsDesc bool + func ParseSortIntoOpt(fields []string) []*SortOpt + type Value struct + BoolValue bool + DoubleValue float64 + FloatValue float32 + IntValue int32 + JsonValue JSONMap + Kind string + LongValue int64 + StringValue string + func NewFromDynamicValue(v *DynamicValue) *Value + func (v *Value) GetNativeValue() interface{} + func (v *Value) RunIfBool(f func(v bool)) + func (v *Value) RunIfDouble(f func(v float64)) + func (v *Value) RunIfFloat(f func(v float32)) + func (v *Value) RunIfInt(f func(v int32)) + func (v *Value) RunIfJson(f func(v map[string]interface{})) + func (v *Value) RunIfLong(f func(v int64)) + func (v *Value) RunIfNull(f func()) + func (v *Value) RunIfString(f func(v string)) + func (v *Value) SetAsBool(value bool) + func (v *Value) SetAsDouble(value float64) + func (v *Value) SetAsFloat(value float32) + func (v *Value) SetAsInt(value int32) + func (v *Value) SetAsJson(value map[string]interface{}) + func (v *Value) SetAsLong(value int64) + func (v *Value) SetAsNull() + func (v *Value) SetAsString(value string) + func (v *Value) ToDynamicValue() *DynamicValue + func (v *Value) ToStructPb() *structpb.Value