Documentation
¶
Overview ¶
Code generated by protoc-gen-dal-gorm. DO NOT EDIT.
Code generated by protoc-gen-dal-gorm. DO NOT EDIT.
Index ¶
- func ListValueFromListValueGORM(dest *structpb.ListValue, src *ListValueGORM, ...) (out *structpb.ListValue, err error)
- func StructFromStructGORM(dest *structpb.Struct, src *StructGORM, ...) (out *structpb.Struct, err error)
- func UserFromUserGORM(dest *v1.User, src *UserGORM, ...) (out *v1.User, err error)
- func ValueFromValueGORM(dest *structpb.Value, src *ValueGORM, ...) (out *structpb.Value, err error)
- type ListValueGORM
- type StructGORM
- type UserGORM
- type ValueGORM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListValueFromListValueGORM ¶
func ListValueFromListValueGORM( dest *structpb.ListValue, src *ListValueGORM, decorator func(dest *structpb.ListValue, src *ListValueGORM) error, ) (out *structpb.ListValue, err error)
ListValueFromListValueGORM converts a ListValueGORM back to structpb.ListValue. The optional decorator function allows custom field transformations.
func StructFromStructGORM ¶
func StructFromStructGORM( dest *structpb.Struct, src *StructGORM, decorator func(dest *structpb.Struct, src *StructGORM) error, ) (out *structpb.Struct, err error)
StructFromStructGORM converts a StructGORM back to structpb.Struct. The optional decorator function allows custom field transformations.
func UserFromUserGORM ¶
func UserFromUserGORM( dest *v1.User, src *UserGORM, decorator func(dest *v1.User, src *UserGORM) error, ) (out *v1.User, err error)
UserFromUserGORM converts a UserGORM back to v1.User. The optional decorator function allows custom field transformations.
func ValueFromValueGORM ¶
func ValueFromValueGORM( dest *structpb.Value, src *ValueGORM, decorator func(dest *structpb.Value, src *ValueGORM) error, ) (out *structpb.Value, err error)
ValueFromValueGORM converts a ValueGORM back to structpb.Value. The optional decorator function allows custom field transformations.
Types ¶
type ListValueGORM ¶
type ListValueGORM struct {
Values []ValueGORM
}
ListValueGORM is the GORM model for google.protobuf.ListValue
func ListValueToListValueGORM ¶
func ListValueToListValueGORM( src *structpb.ListValue, dest *ListValueGORM, decorator func(*structpb.ListValue, *ListValueGORM) error, ) (out *ListValueGORM, err error)
ListValueToListValueGORM converts a structpb.ListValue to ListValueGORM. The optional decorator function allows custom field transformations.
func (*ListValueGORM) Scan ¶
func (m *ListValueGORM) Scan(value interface{}) error
Scan implements sql.Scanner for ListValueGORM
type StructGORM ¶
StructGORM is the GORM model for google.protobuf.Struct
func StructToStructGORM ¶
func StructToStructGORM( src *structpb.Struct, dest *StructGORM, decorator func(*structpb.Struct, *StructGORM) error, ) (out *StructGORM, err error)
StructToStructGORM converts a structpb.Struct to StructGORM. The optional decorator function allows custom field transformations.
func (*StructGORM) Scan ¶
func (m *StructGORM) Scan(value interface{}) error
Scan implements sql.Scanner for StructGORM
type UserGORM ¶
type UserGORM struct {
CreatedAt time.Time
UpdatedAt time.Time
Id string `gorm:"primaryKey"`
Name string
Description string
Tags []string `gorm:"serializer:json"`
ImageUrl string
Email string
Nickname string
Extras StructGORM `gorm:"serializer:json"`
}
UserGORM is the GORM model for goapplib.v1.User
type ValueGORM ¶
type ValueGORM struct {
NullValue structpb.NullValue
NumberValue float64
StringValue string
BoolValue bool
StructValue StructGORM
ListValue ListValueGORM
}
ValueGORM is the GORM model for google.protobuf.Value
func ValueToValueGORM ¶
func ValueToValueGORM( src *structpb.Value, dest *ValueGORM, decorator func(*structpb.Value, *ValueGORM) error, ) (out *ValueGORM, err error)
ValueToValueGORM converts a structpb.Value to ValueGORM. The optional decorator function allows custom field transformations.