Documentation
¶
Index ¶
- func DefaultDeleteUser(ctx context.Context, in *User, db *gorm1.DB) error
- func DefaultDeleteUserSet(ctx context.Context, in []*User, db *gorm1.DB) error
- type Gender
- func (*Gender) Descriptor() ([]byte, []int)
- func (m *Gender) GetFemale() bool
- func (m *Gender) GetGenderNonBinary() bool
- func (m *Gender) GetMale() bool
- func (m *Gender) GetTransgender() bool
- func (*Gender) ProtoMessage()
- func (m *Gender) Reset()
- func (m *Gender) String() string
- func (this *Gender) Validate() error
- func (m *Gender) XXX_DiscardUnknown()
- func (m *Gender) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Gender) XXX_Merge(src proto.Message)
- func (m *Gender) XXX_Size() int
- func (m *Gender) XXX_Unmarshal(b []byte) error
- type IHashable
- type User
- func DefaultApplyFieldMaskUser(ctx context.Context, patchee *User, patcher *User, ...) (*User, error)
- func DefaultCreateUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)
- func DefaultListUser(ctx context.Context, db *gorm1.DB) ([]*User, error)
- func DefaultPatchSetUser(ctx context.Context, objects []*User, updateMasks []*field_mask1.FieldMask, ...) ([]*User, error)
- func DefaultPatchUser(ctx context.Context, in *User, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*User, error)
- func DefaultReadUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)
- func DefaultStrictUpdateUser(ctx context.Context, in *User, db *gorm1.DB) (*User, error)
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAuthnid() uint32
- func (m *User) GetBirthDate() string
- func (m *User) GetCreatedAt() *timestamp.Timestamp
- func (m *User) GetDeletedAt() *timestamp.Timestamp
- func (m *User) GetEmail() string
- func (m *User) GetFirstName() string
- func (m *User) GetGender() *Gender
- func (m *User) GetId() uint32
- func (m *User) GetIsActive() bool
- func (m *User) GetIsOnline() bool
- func (m *User) GetLastName() string
- func (m *User) GetPassword() string
- func (u User) GetPasswordToHash() string
- func (m *User) GetUpdatedAt() *timestamp.Timestamp
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) ToORM(ctx context.Context) (UserORM, error)
- func (this *User) Validate() error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserORM
- type UserORMWithAfterCreate_
- type UserORMWithAfterDeleteSet
- type UserORMWithAfterDelete_
- type UserORMWithAfterListFind
- type UserORMWithAfterReadFind
- type UserORMWithAfterStrictUpdateSave
- type UserORMWithBeforeCreate_
- type UserORMWithBeforeDeleteSet
- type UserORMWithBeforeDelete_
- type UserORMWithBeforeListApplyQuery
- type UserORMWithBeforeListFind
- type UserORMWithBeforeReadApplyQuery
- type UserORMWithBeforeReadFind
- type UserORMWithBeforeStrictUpdateCleanup
- type UserORMWithBeforeStrictUpdateSave
- type UserWithAfterPatchSave
- type UserWithAfterToORM
- type UserWithAfterToPB
- type UserWithBeforePatchApplyFieldMask
- type UserWithBeforePatchRead
- type UserWithBeforePatchSave
- type UserWithBeforeToORM
- type UserWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gender ¶
type Gender struct { Male bool `protobuf:"varint,1,opt,name=male,proto3" json:"male,omitempty"` Female bool `protobuf:"varint,2,opt,name=female,proto3" json:"female,omitempty"` Transgender bool `protobuf:"varint,3,opt,name=transgender,proto3" json:"transgender,omitempty"` GenderNonBinary bool `protobuf:"varint,4,opt,name=genderNonBinary,proto3" json:"genderNonBinary,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Gender) Descriptor ¶
func (*Gender) GetGenderNonBinary ¶
func (*Gender) GetTransgender ¶
func (*Gender) ProtoMessage ¶
func (*Gender) ProtoMessage()
func (*Gender) XXX_DiscardUnknown ¶
func (m *Gender) XXX_DiscardUnknown()
func (*Gender) XXX_Marshal ¶
func (*Gender) XXX_Unmarshal ¶
type IHashable ¶
type IHashable interface {
GetPasswordToHash() string
}
IHashable provides interface definitions for various models associated with this service
type User ¶
type User struct { Id uint32 `protobuf:"varint,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"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,6,opt,name=lastName,proto3" json:"lastName,omitempty"` Gender *Gender `protobuf:"bytes,7,opt,name=gender,proto3" json:"gender,omitempty"` Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"` BirthDate string `protobuf:"bytes,10,opt,name=birthDate,proto3" json:"birthDate,omitempty"` IsActive bool `protobuf:"varint,11,opt,name=isActive,proto3" json:"isActive,omitempty"` IsOnline bool `protobuf:"varint,12,opt,name=isOnline,proto3" json:"isOnline,omitempty"` Username string `protobuf:"bytes,13,opt,name=username,proto3" json:"username,omitempty"` Authnid uint32 `protobuf:"varint,14,opt,name=authnid,proto3" json:"authnid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
DefaultCreateUser executes a basic gorm create call
func DefaultListUser ¶
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 ¶
DefaultReadUser executes a basic gorm read call
func DefaultStrictUpdateUser ¶
DefaultStrictUpdateUser clears first level 1:many children and then executes a gorm update call
func (*User) Descriptor ¶
func (*User) GetAuthnid ¶
func (*User) GetBirthDate ¶
func (*User) GetCreatedAt ¶
func (*User) GetDeletedAt ¶
func (*User) GetFirstName ¶
func (*User) GetIsActive ¶
func (*User) GetIsOnline ¶
func (*User) GetLastName ¶
func (*User) GetPassword ¶
func (User) GetPasswordToHash ¶
GetPasswordToHash resturns a password from a user object
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ToORM ¶
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) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserORM ¶
type UserORM struct { Authnid uint32 BirthDate string CreatedAt *time.Time DeletedAt *time.Time Email string FirstName string Id uint32 `gorm:"type:serial;primary_key;auto_increment"` IsActive bool IsOnline bool LastName string Password string UpdatedAt *time.Time Username string }
func (UserORM) GetPasswordToHash ¶
GetPasswordToHash returns a password from a user orm model
type UserORMWithAfterCreate_ ¶
type UserORMWithAfterDelete_ ¶
type UserWithAfterPatchSave ¶
type UserWithAfterToORM ¶
UserAfterToORM called after default ToORM code
type UserWithAfterToPB ¶
UserAfterToPB called after default ToPB code
type UserWithBeforePatchRead ¶
type UserWithBeforePatchSave ¶
type UserWithBeforeToORM ¶
UserBeforeToORM called before default ToORM code