Versions in this module Expand all Collapse all v0 v0.3.2 Jul 15, 2020 v0.3.1 Jul 5, 2020 v0.3.0 Jul 4, 2020 v0.2.2 Feb 24, 2020 v0.2.1 Jan 22, 2020 v0.2.0 Jan 6, 2020 v0.1.2 Jan 4, 2020 v0.1.1 Jan 3, 2020 v0.1.0 Dec 23, 2019 Changes in this version + var AudienceColumns = struct{ ... } + var AudienceRels = struct{ ... } + var AudienceWhere = struct{ ... } + var ErrSyncFail = errors.New("models: failed to synchronize data after insert") + var GroupColumns = struct{ ... } + var GroupRels = struct{ ... } + var GroupWhere = struct{ ... } + var JWTKeyColumns = struct{ ... } + var JWTKeyRels = struct{} + var JWTKeyWhere = struct{ ... } + var PasswordColumns = struct{ ... } + var PasswordRels = struct{ ... } + var PasswordWhere = struct{ ... } + var TableNames = struct{ ... } + var UserColumns = struct{ ... } + var UserRels = struct{ ... } + var UserWhere = struct{ ... } + func AddAudienceHook(hookPoint boil.HookPoint, audienceHook AudienceHook) + func AddGroupHook(hookPoint boil.HookPoint, groupHook GroupHook) + func AddJWTKeyHook(hookPoint boil.HookPoint, jwtKeyHook JWTKeyHook) + func AddPasswordHook(hookPoint boil.HookPoint, passwordHook PasswordHook) + func AddUserHook(hookPoint boil.HookPoint, userHook UserHook) + func AudienceExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Audiences(mods ...qm.QueryMod) audienceQuery + func GroupExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Groups(mods ...qm.QueryMod) groupQuery + func JWTKeyExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func JWTKeys(mods ...qm.QueryMod) jwtKeyQuery + func NewQuery(mods ...qm.QueryMod) *queries.Query + func PasswordExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Passwords(mods ...qm.QueryMod) passwordQuery + func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error) + func Users(mods ...qm.QueryMod) userQuery + type Audience struct + CreatedAt time.Time + Description string + ID int + L audienceL + Name string + R *audienceR + UpdatedAt time.Time + func FindAudience(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Audience, error) + func (o *Audience) AddUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error + func (o *Audience) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Audience) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Audience) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Audience) RemoveUsers(ctx context.Context, exec boil.ContextExecutor, related ...*User) error + func (o *Audience) SetUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error + func (o *Audience) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Audience) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *Audience) Users(mods ...qm.QueryMod) userQuery + type AudienceHook func(context.Context, boil.ContextExecutor, *Audience) error + type AudienceSlice []*Audience + func (o *AudienceSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o AudienceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o AudienceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type Group struct + CreatedAt time.Time + Description string + ID int + L groupL + Name string + R *groupR + UpdatedAt time.Time + func FindGroup(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Group, error) + func (o *Group) AddUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error + func (o *Group) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Group) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Group) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Group) RemoveUsers(ctx context.Context, exec boil.ContextExecutor, related ...*User) error + func (o *Group) SetUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error + func (o *Group) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Group) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *Group) Users(mods ...qm.QueryMod) userQuery + type GroupHook func(context.Context, boil.ContextExecutor, *Group) error + type GroupSlice []*Group + func (o *GroupSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o GroupSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o GroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type JWTKey struct + CreatedAt time.Time + ID int + L jwtKeyL + PublicKey []byte + R *jwtKeyR + func FindJWTKey(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*JWTKey, error) + func (o *JWTKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *JWTKey) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *JWTKey) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *JWTKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *JWTKey) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type JWTKeyHook func(context.Context, boil.ContextExecutor, *JWTKey) error + type JWTKeySlice []*JWTKey + func (o *JWTKeySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o JWTKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o JWTKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type M map[string]interface + type Password struct + CreatedAt time.Time + Hash []byte + ID int + L passwordL + R *passwordR + Salt []byte + UpdatedAt time.Time + UserID int + func FindPassword(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Password, error) + func (o *Password) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *Password) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *Password) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *Password) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error + func (o *Password) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *Password) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *Password) User(mods ...qm.QueryMod) userQuery + type PasswordHook func(context.Context, boil.ContextExecutor, *Password) error + type PasswordSlice []*Password + func (o *PasswordSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o PasswordSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o PasswordSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + type User struct + CreatedAt time.Time + Email string + ID int + L userL + Name string + R *userR + UpdatedAt time.Time + func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*User, error) + func (o *User) AddAudiences(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *User) AddGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error + func (o *User) Audiences(mods ...qm.QueryMod) audienceQuery + func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *User) Groups(mods ...qm.QueryMod) groupQuery + func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *User) Password(mods ...qm.QueryMod) passwordQuery + func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *User) RemoveAudiences(ctx context.Context, exec boil.ContextExecutor, related ...*Audience) error + func (o *User) RemoveGroups(ctx context.Context, exec boil.ContextExecutor, related ...*Group) error + func (o *User) SetAudiences(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *User) SetGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error + func (o *User) SetPassword(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Password) error + func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + type UserHook func(context.Context, boil.ContextExecutor, *User) error + type UserSlice []*User + func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)