entities

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package entities is a generated protocol buffer package.

It is generated from these files:

service/account/proto/entities/entities.proto

It has these top-level messages:

User
Profile

Index

Constants

This section is empty.

Variables

View Source
var Profile_GenderType_name = map[int32]string{
	0: "GENDER_TYPE_UNSPECIFIED",
	1: "GENDER_TYPE_MALE",
	2: "GENDER_TYPE_FEMALE",
}
View Source
var Profile_GenderType_value = map[string]int32{
	"GENDER_TYPE_UNSPECIFIED": 0,
	"GENDER_TYPE_MALE":        1,
	"GENDER_TYPE_FEMALE":      2,
}

Functions

func DefaultDeleteProfile

func DefaultDeleteProfile(ctx context.Context, in *Profile, db *gorm1.DB) error

func DefaultDeleteProfileSet

func DefaultDeleteProfileSet(ctx context.Context, in []*Profile, db *gorm1.DB) error

func DefaultDeleteUser

func DefaultDeleteUser(ctx context.Context, in *User, db *gorm1.DB) error

func DefaultDeleteUserSet

func DefaultDeleteUserSet(ctx context.Context, in []*User, db *gorm1.DB) error

Types

type Profile

type Profile struct {
	// gorm.types.UUID id                      = 1  [(gorm.field).tag = {
	// type: "uuid", primary_key: true, default: "uuid_generate_v4()" }]; primary
	// key
	Id        *types.UUID          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	Tz        string               `protobuf:"bytes,5,opt,name=tz,proto3" json:"tz,omitempty"`
	Avatar    string               `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
	// FIXME: https://github.com/jinzhu/gorm/issues/1978
	Gender               Profile_GenderType    `protobuf:"varint,7,opt,name=gender,proto3,enum=mkit.service.account.entities.v1.Profile_GenderType" json:"gender,omitempty"`
	Birthday             *timestamp.Timestamp  `protobuf:"bytes,8,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Age                  uint32                `protobuf:"varint,9,opt,name=age,proto3" json:"age,omitempty"`
	PreferredTheme       *wrappers.StringValue `protobuf:"bytes,10,opt,name=preferred_theme,json=preferredTheme,proto3" json:"preferred_theme,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Profile Entity

func DefaultApplyFieldMaskProfile

func DefaultApplyFieldMaskProfile(ctx context.Context, patchee *Profile, patcher *Profile, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Profile, error)

DefaultApplyFieldMaskProfile patches an pbObject with patcher according to a field mask.

func DefaultCreateProfile

func DefaultCreateProfile(ctx context.Context, in *Profile, db *gorm1.DB) (*Profile, error)

DefaultCreateProfile executes a basic gorm create call

func DefaultListProfile

func DefaultListProfile(ctx context.Context, db *gorm1.DB) ([]*Profile, error)

DefaultListProfile executes a gorm list call

func DefaultPatchProfile

func DefaultPatchProfile(ctx context.Context, in *Profile, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Profile, error)

DefaultPatchProfile executes a basic gorm update call with patch behavior

func DefaultPatchSetProfile

func DefaultPatchSetProfile(ctx context.Context, objects []*Profile, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*Profile, error)

DefaultPatchSetProfile executes a bulk gorm update call with patch behavior

func DefaultReadProfile

func DefaultReadProfile(ctx context.Context, in *Profile, db *gorm1.DB) (*Profile, error)

DefaultReadProfile executes a basic gorm read call

func DefaultStrictUpdateProfile

func DefaultStrictUpdateProfile(ctx context.Context, in *Profile, db *gorm1.DB) (*Profile, error)

DefaultStrictUpdateProfile clears first level 1:many children and then executes a gorm update call

func (*Profile) Descriptor

func (*Profile) Descriptor() ([]byte, []int)

func (*Profile) GetAge

func (m *Profile) GetAge() uint32

func (*Profile) GetAvatar

func (m *Profile) GetAvatar() string

func (*Profile) GetBirthday

func (m *Profile) GetBirthday() *timestamp.Timestamp

func (*Profile) GetCreatedAt

func (m *Profile) GetCreatedAt() *timestamp.Timestamp

func (*Profile) GetDeletedAt

func (m *Profile) GetDeletedAt() *timestamp.Timestamp

func (*Profile) GetGender

func (m *Profile) GetGender() Profile_GenderType

func (*Profile) GetId

func (m *Profile) GetId() *types.UUID

func (*Profile) GetPreferredTheme

func (m *Profile) GetPreferredTheme() *wrappers.StringValue

func (*Profile) GetTz

func (m *Profile) GetTz() string

func (*Profile) GetUpdatedAt

func (m *Profile) GetUpdatedAt() *timestamp.Timestamp

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) String

func (m *Profile) String() string

func (*Profile) ToORM

func (m *Profile) ToORM(ctx context.Context) (ProfileORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*Profile) Validate

func (m *Profile) Validate() error

Validate is disabled for Profile. This method will always return nil.

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Profile) XXX_Merge

func (m *Profile) XXX_Merge(src proto.Message)

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

func (m *Profile) XXX_Unmarshal(b []byte) error

type ProfileORM

type ProfileORM struct {
	Avatar         string
	Birthday       *time.Time `gorm:"not null"`
	CreatedAt      *time.Time `gorm:"not null"`
	DeletedAt      *time.Time `gorm:"index:idx_profiles_deleted_at"`
	Gender         string
	Id             go_uuid1.UUID `gorm:"type:uuid;primary_key;unique;not null"`
	PreferredTheme *string
	Tz             string
	UpdatedAt      *time.Time `gorm:"not null"`
	UserId         *go_uuid1.UUID
}

func (*ProfileORM) AfterToPB

func (m *ProfileORM) AfterToPB(ctx context.Context, profile *Profile) error

AfterToPB implements the posthook interface for the Profile type. This allows us to customize conversion behavior. In this example, we set the User's Age based on the Birthday, instead of storing it separately in the DB

func (*ProfileORM) BeforeCreate

func (m *ProfileORM) BeforeCreate(scope *gorm.Scope) error

BeforeCreate implements the GORM BeforeCreate interface for the ProfileORM type.

func (ProfileORM) TableName

func (ProfileORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ProfileORM) ToPB

func (m *ProfileORM) ToPB(ctx context.Context) (Profile, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type ProfileORMWithAfterCreate_

type ProfileORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type ProfileORMWithAfterDeleteSet

type ProfileORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Profile, *gorm1.DB) error
}

type ProfileORMWithAfterDelete_

type ProfileORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type ProfileORMWithAfterListFind

type ProfileORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]ProfileORM) error
}

type ProfileORMWithAfterReadFind

type ProfileORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type ProfileORMWithAfterStrictUpdateSave

type ProfileORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type ProfileORMWithBeforeCreate_

type ProfileORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeDeleteSet

type ProfileORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Profile, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeDelete_

type ProfileORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeListApplyQuery

type ProfileORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeListFind

type ProfileORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeReadApplyQuery

type ProfileORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeReadFind

type ProfileORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeStrictUpdateCleanup

type ProfileORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileORMWithBeforeStrictUpdateSave

type ProfileORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileValidationError

type ProfileValidationError struct {
	// contains filtered or unexported fields
}

ProfileValidationError is the validation error returned by Profile.Validate if the designated constraints aren't met.

func (ProfileValidationError) Cause

func (e ProfileValidationError) Cause() error

Cause function returns cause value.

func (ProfileValidationError) Error

func (e ProfileValidationError) Error() string

Error satisfies the builtin error interface

func (ProfileValidationError) ErrorName

func (e ProfileValidationError) ErrorName() string

ErrorName returns error name.

func (ProfileValidationError) Field

func (e ProfileValidationError) Field() string

Field function returns field value.

func (ProfileValidationError) Key

func (e ProfileValidationError) Key() bool

Key function returns key value.

func (ProfileValidationError) Reason

func (e ProfileValidationError) Reason() string

Reason function returns reason value.

type ProfileWithAfterPatchSave

type ProfileWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Profile, *field_mask1.FieldMask, *gorm1.DB) error
}

type ProfileWithAfterToORM

type ProfileWithAfterToORM interface {
	AfterToORM(context.Context, *ProfileORM) error
}

ProfileAfterToORM called after default ToORM code

type ProfileWithAfterToPB

type ProfileWithAfterToPB interface {
	AfterToPB(context.Context, *Profile) error
}

ProfileAfterToPB called after default ToPB code

type ProfileWithBeforePatchApplyFieldMask

type ProfileWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Profile, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileWithBeforePatchRead

type ProfileWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Profile, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileWithBeforePatchSave

type ProfileWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Profile, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type ProfileWithBeforeToORM

type ProfileWithBeforeToORM interface {
	BeforeToORM(context.Context, *ProfileORM) error
}

ProfileBeforeToORM called before default ToORM code

type ProfileWithBeforeToPB

type ProfileWithBeforeToPB interface {
	BeforeToPB(context.Context, *Profile) error
}

ProfileBeforeToPB called before default ToPB code

type Profile_GenderType

type Profile_GenderType int32
const (
	Profile_GENDER_TYPE_UNSPECIFIED Profile_GenderType = 0
	Profile_GENDER_TYPE_MALE        Profile_GenderType = 1
	Profile_GENDER_TYPE_FEMALE      Profile_GenderType = 2
)

func (Profile_GenderType) EnumDescriptor

func (Profile_GenderType) EnumDescriptor() ([]byte, []int)

func (Profile_GenderType) String

func (x Profile_GenderType) String() string

type User

type User struct {
	Id                   *types.UUID           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt            *timestamp.Timestamp  `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp  `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt            *timestamp.Timestamp  `protobuf:"bytes,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	Username             *wrappers.StringValue `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
	FirstName            string                `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName             string                `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Email                string                `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"`
	Profile              *Profile              `protobuf:"bytes,11,opt,name=profile,proto3" json:"profile,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

User Entity

func DefaultApplyFieldMaskUser

func DefaultApplyFieldMaskUser(ctx context.Context, patchee *User, patcher *User, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*User, error)

DefaultApplyFieldMaskUser patches an pbObject with patcher according to a field mask.

func DefaultCreateUser

func DefaultCreateUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)

DefaultCreateUser executes a basic gorm create call

func DefaultListUser

func DefaultListUser(ctx context.Context, db *gorm1.DB) ([]*User, error)

DefaultListUser executes a gorm list call

func DefaultPatchSetUser

func DefaultPatchSetUser(ctx context.Context, objects []*User, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*User, error)

DefaultPatchSetUser executes a bulk gorm update call with patch behavior

func DefaultPatchUser

func DefaultPatchUser(ctx context.Context, in *User, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*User, error)

DefaultPatchUser executes a basic gorm update call with patch behavior

func DefaultReadUser

func DefaultReadUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)

DefaultReadUser executes a basic gorm read call

func DefaultStrictUpdateUser

func DefaultStrictUpdateUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)

DefaultStrictUpdateUser clears first level 1:many children and then executes a gorm update call

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetCreatedAt

func (m *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetDeletedAt

func (m *User) GetDeletedAt() *timestamp.Timestamp

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetId

func (m *User) GetId() *types.UUID

func (*User) GetLastName

func (m *User) GetLastName() string

func (*User) GetProfile

func (m *User) GetProfile() *Profile

func (*User) GetUpdatedAt

func (m *User) GetUpdatedAt() *timestamp.Timestamp

func (*User) GetUsername

func (m *User) GetUsername() *wrappers.StringValue

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) ToORM

func (m *User) ToORM(ctx context.Context) (UserORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*User) Validate

func (m *User) Validate() error

Validate is disabled for User. This method will always return nil.

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type UserORM

type UserORM struct {
	CreatedAt *time.Time    `gorm:"not null"`
	DeletedAt *time.Time    `gorm:"index:idx_users_deleted_at"`
	Email     string        `gorm:"not null"`
	FirstName string        `gorm:"size:255;not null"`
	Id        go_uuid1.UUID `gorm:"type:uuid;primary_key;unique;not null"`
	LastName  string        `gorm:"not null"`
	Profile   *ProfileORM   `gorm:"foreignkey:UserId;association_foreignkey:Id;preload:true"`
	UpdatedAt *time.Time    `gorm:"not null"`
	Username  *string       `gorm:"size:100;not null"`
}

func (*UserORM) BeforeCreate

func (m *UserORM) BeforeCreate(scope *gorm.Scope) error

BeforeCreate implements the GORM BeforeCreate interface for the UserORM type. you can use this method to generate new UUID for CREATE operation or let database create it with this annotation: {type: "uuid", primary_key: true, not_null:true, default: "uuid_generate_v4()"}]; we prefer First method as it works with both SQLite & PostgreSQL

func (UserORM) TableName

func (UserORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*UserORM) ToPB

func (m *UserORM) ToPB(ctx context.Context) (User, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type UserORMWithAfterCreate_

type UserORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type UserORMWithAfterDeleteSet

type UserORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*User, *gorm1.DB) error
}

type UserORMWithAfterDelete_

type UserORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type UserORMWithAfterListFind

type UserORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]UserORM) error
}

type UserORMWithAfterReadFind

type UserORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type UserORMWithAfterStrictUpdateSave

type UserORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type UserORMWithBeforeCreate_

type UserORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeDeleteSet

type UserORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*User, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeDelete_

type UserORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeListApplyQuery

type UserORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeListFind

type UserORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeReadApplyQuery

type UserORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeReadFind

type UserORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeStrictUpdateCleanup

type UserORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserORMWithBeforeStrictUpdateSave

type UserORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type UserValidationError

type UserValidationError struct {
	// contains filtered or unexported fields
}

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

type UserWithAfterPatchSave

type UserWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *User, *field_mask1.FieldMask, *gorm1.DB) error
}

type UserWithAfterToORM

type UserWithAfterToORM interface {
	AfterToORM(context.Context, *UserORM) error
}

UserAfterToORM called after default ToORM code

type UserWithAfterToPB

type UserWithAfterToPB interface {
	AfterToPB(context.Context, *User) error
}

UserAfterToPB called after default ToPB code

type UserWithBeforePatchApplyFieldMask

type UserWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *User, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type UserWithBeforePatchRead

type UserWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *User, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type UserWithBeforePatchSave

type UserWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *User, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type UserWithBeforeToORM

type UserWithBeforeToORM interface {
	BeforeToORM(context.Context, *UserORM) error
}

UserBeforeToORM called before default ToORM code

type UserWithBeforeToPB

type UserWithBeforeToPB interface {
	BeforeToPB(context.Context, *User) error
}

UserBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL