wcAuth

package
v1.4012.332 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionsMutator

type SessionsMutator struct {
	rqAuth.Sessions
	// contains filtered or unexported fields
}

SessionsMutator DAO writer/command struct

func NewSessionsMutator

func NewSessionsMutator(adapter *Tt.Adapter) *SessionsMutator

NewSessionsMutator create new ORM writer/command object

func (*SessionsMutator) ClearMutations

func (s *SessionsMutator) ClearMutations()

ClearMutations clear all previously called Set* methods

func (*SessionsMutator) DoDeletePermanentBySessionToken

func (s *SessionsMutator) DoDeletePermanentBySessionToken() bool

DoDeletePermanentBySessionToken permanent delete

func (*SessionsMutator) DoInsert

func (s *SessionsMutator) DoInsert() bool

DoInsert insert, error if already exists

func (*SessionsMutator) DoOverwriteBySessionToken

func (s *SessionsMutator) DoOverwriteBySessionToken() bool

DoOverwriteBySessionToken update all columns, error if not exists, not using mutations/Set*

func (*SessionsMutator) DoUpdateBySessionToken

func (s *SessionsMutator) DoUpdateBySessionToken() bool

DoUpdateBySessionToken update only mutated fields, error if not exists, use Find* and Set* methods instead of direct assignment

func (*SessionsMutator) DoUpsert

func (s *SessionsMutator) DoUpsert() bool

DoUpsert upsert, insert or overwrite, will error only when there's unique secondary key being violated replace = upsert, only error when there's unique secondary key previous name: DoReplace

func (*SessionsMutator) HaveMutation

func (s *SessionsMutator) HaveMutation() bool

HaveMutation check whether Set* methods ever called

func (*SessionsMutator) SetExpiredAt

func (s *SessionsMutator) SetExpiredAt(val int64) bool

SetExpiredAt create mutations, should not duplicate

func (*SessionsMutator) SetSessionToken

func (s *SessionsMutator) SetSessionToken(val string) bool

SetSessionToken create mutations, should not duplicate

func (*SessionsMutator) SetUserId

func (s *SessionsMutator) SetUserId(val uint64) bool

SetUserId create mutations, should not duplicate

type UsersMutator

type UsersMutator struct {
	rqAuth.Users
	// contains filtered or unexported fields
}

UsersMutator DAO writer/command struct

func NewUsersMutator

func NewUsersMutator(adapter *Tt.Adapter) *UsersMutator

NewUsersMutator create new ORM writer/command object

func (*UsersMutator) ClearMutations

func (u *UsersMutator) ClearMutations()

ClearMutations clear all previously called Set* methods

func (*UsersMutator) DoDeletePermanentByEmail

func (u *UsersMutator) DoDeletePermanentByEmail() bool

DoDeletePermanentByEmail permanent delete

func (*UsersMutator) DoDeletePermanentById

func (u *UsersMutator) DoDeletePermanentById() bool

DoDeletePermanentById permanent delete

func (*UsersMutator) DoInsert

func (u *UsersMutator) DoInsert() bool

DoInsert insert, error if already exists

func (*UsersMutator) DoOverwriteByEmail

func (u *UsersMutator) DoOverwriteByEmail() bool

DoOverwriteByEmail update all columns, error if not exists, not using mutations/Set*

func (*UsersMutator) DoOverwriteById

func (u *UsersMutator) DoOverwriteById() bool

DoOverwriteById update all columns, error if not exists, not using mutations/Set*

func (*UsersMutator) DoUpdateByEmail

func (u *UsersMutator) DoUpdateByEmail() bool

DoUpdateByEmail update only mutated fields, error if not exists, use Find* and Set* methods instead of direct assignment

func (*UsersMutator) DoUpdateById

func (u *UsersMutator) DoUpdateById() bool

DoUpdateById update only mutated fields, error if not exists, use Find* and Set* methods instead of direct assignment

func (*UsersMutator) DoUpsert

func (u *UsersMutator) DoUpsert() bool

DoUpsert upsert, insert or overwrite, will error only when there's unique secondary key being violated replace = upsert, only error when there's unique secondary key previous name: DoReplace

func (*UsersMutator) HaveMutation

func (u *UsersMutator) HaveMutation() bool

HaveMutation check whether Set* methods ever called

func (*UsersMutator) SetCreatedAt

func (u *UsersMutator) SetCreatedAt(val int64) bool

SetCreatedAt create mutations, should not duplicate

func (*UsersMutator) SetCreatedBy

func (u *UsersMutator) SetCreatedBy(val uint64) bool

SetCreatedBy create mutations, should not duplicate

func (*UsersMutator) SetDeletedAt

func (u *UsersMutator) SetDeletedAt(val int64) bool

SetDeletedAt create mutations, should not duplicate

func (*UsersMutator) SetDeletedBy

func (u *UsersMutator) SetDeletedBy(val uint64) bool

SetDeletedBy create mutations, should not duplicate

func (*UsersMutator) SetEmail

func (u *UsersMutator) SetEmail(val string) bool

SetEmail create mutations, should not duplicate

func (*UsersMutator) SetEncryptPassword

func (p *UsersMutator) SetEncryptPassword(password string) bool

func (*UsersMutator) SetId

func (u *UsersMutator) SetId(val uint64) bool

SetId create mutations, should not duplicate

func (*UsersMutator) SetIsDeleted

func (u *UsersMutator) SetIsDeleted(val bool) bool

SetIsDeleted create mutations, should not duplicate

func (*UsersMutator) SetLastLoginAt

func (u *UsersMutator) SetLastLoginAt(val int64) bool

SetLastLoginAt create mutations, should not duplicate

func (*UsersMutator) SetPassword

func (u *UsersMutator) SetPassword(val string) bool

SetPassword create mutations, should not duplicate

func (*UsersMutator) SetPasswordSetAt

func (u *UsersMutator) SetPasswordSetAt(val int64) bool

SetPasswordSetAt create mutations, should not duplicate

func (*UsersMutator) SetRestoredAt

func (u *UsersMutator) SetRestoredAt(val int64) bool

SetRestoredAt create mutations, should not duplicate

func (*UsersMutator) SetRestoredBy

func (u *UsersMutator) SetRestoredBy(val uint64) bool

SetRestoredBy create mutations, should not duplicate

func (*UsersMutator) SetSecretCode

func (u *UsersMutator) SetSecretCode(val string) bool

SetSecretCode create mutations, should not duplicate

func (*UsersMutator) SetSecretCodeAt

func (u *UsersMutator) SetSecretCodeAt(val int64) bool

SetSecretCodeAt create mutations, should not duplicate

func (*UsersMutator) SetUpdatedAt

func (u *UsersMutator) SetUpdatedAt(val int64) bool

SetUpdatedAt create mutations, should not duplicate

func (*UsersMutator) SetUpdatedBy

func (u *UsersMutator) SetUpdatedBy(val uint64) bool

SetUpdatedBy create mutations, should not duplicate

func (*UsersMutator) SetVerificationSentAt

func (u *UsersMutator) SetVerificationSentAt(val int64) bool

SetVerificationSentAt create mutations, should not duplicate

func (*UsersMutator) SetVerifiedAt

func (u *UsersMutator) SetVerifiedAt(val int64) bool

SetVerifiedAt create mutations, should not duplicate

Jump to

Keyboard shortcuts

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