rqAuth

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessions

type Sessions struct {
	Adapter      *Tt.Adapter `json:"-" msg:"-" query:"-" form:"-"`
	SessionToken string
	UserId       uint64
	ExpiredAt    int64
}

Sessions DAO reader/query struct

func NewSessions

func NewSessions(adapter *Tt.Adapter) *Sessions

NewSessions create new ORM reader/query object

func (*Sessions) FindArrOffsetLimit

func (s *Sessions) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta)

FindArrOffsetLimit returns as slice of slice order by idx eg. .UniqueIndex*()

func (*Sessions) FindBySessionToken

func (s *Sessions) FindBySessionToken() bool

FindBySessionToken Find one by SessionToken

func (*Sessions) FindOffsetLimit

func (s *Sessions) FindOffsetLimit(offset, limit uint32, idx string) []Sessions

FindOffsetLimit returns slice of struct, order by idx, eg. .UniqueIndex*()

func (*Sessions) FromArray

func (s *Sessions) FromArray(a A.X) *Sessions

FromArray convert slice to receiver fields

func (*Sessions) IdxExpiredAt

func (s *Sessions) IdxExpiredAt() int

IdxExpiredAt return name of the index

func (*Sessions) IdxSessionToken

func (s *Sessions) IdxSessionToken() int

IdxSessionToken return name of the index

func (*Sessions) IdxUserId

func (s *Sessions) IdxUserId() int

IdxUserId return name of the index

func (*Sessions) SpaceName

func (s *Sessions) SpaceName() string

SpaceName returns full package and table name

func (*Sessions) SqlExpiredAt

func (s *Sessions) SqlExpiredAt() string

SqlExpiredAt return name of the column being indexed

func (*Sessions) SqlSelectAllFields

func (s *Sessions) SqlSelectAllFields() string

SqlSelectAllFields generate Sql select fields

func (*Sessions) SqlSessionToken

func (s *Sessions) SqlSessionToken() string

SqlSessionToken return name of the column being indexed

func (*Sessions) SqlTableName

func (s *Sessions) SqlTableName() string

SqlTableName returns quoted table name

func (*Sessions) SqlUserId

func (s *Sessions) SqlUserId() string

SqlUserId return name of the column being indexed

func (*Sessions) ToArray

func (s *Sessions) ToArray() A.X

ToArray receiver fields to slice

func (*Sessions) ToUpdateArray

func (s *Sessions) ToUpdateArray() A.X

ToUpdateArray generate slice of update command

func (*Sessions) Total

func (s *Sessions) Total() int64

Total count number of rows

func (*Sessions) UniqueIndexSessionToken

func (s *Sessions) UniqueIndexSessionToken() string

UniqueIndexSessionToken return unique index name

type Users

type Users struct {
	Adapter            *Tt.Adapter `json:"-" msg:"-" query:"-" form:"-"`
	Id                 uint64
	Email              string
	Password           string
	CreatedAt          int64
	CreatedBy          uint64
	UpdatedAt          int64
	UpdatedBy          uint64
	DeletedAt          int64
	DeletedBy          uint64
	IsDeleted          bool
	RestoredAt         int64
	RestoredBy         uint64
	PasswordSetAt      int64
	SecretCode         string
	SecretCodeAt       int64
	VerificationSentAt int64
	VerifiedAt         int64
	LastLoginAt        int64
}

Users DAO reader/query struct

func NewUsers

func NewUsers(adapter *Tt.Adapter) *Users

NewUsers create new ORM reader/query object

func (*Users) AllOffsetLimit

func (s *Users) AllOffsetLimit(offset, limit uint32) (res []*Users)

func (*Users) CensorFields

func (s *Users) CensorFields()

func (*Users) CheckPassword

func (s *Users) CheckPassword(currentPassword string) bool

func (*Users) FindArrOffsetLimit

func (u *Users) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta)

FindArrOffsetLimit returns as slice of slice order by idx eg. .UniqueIndex*()

func (*Users) FindByEmail

func (u *Users) FindByEmail() bool

FindByEmail Find one by Email

func (*Users) FindById

func (u *Users) FindById() bool

FindById Find one by Id

func (*Users) FindOffsetLimit

func (u *Users) FindOffsetLimit(offset, limit uint32, idx string) []Users

FindOffsetLimit returns slice of struct, order by idx, eg. .UniqueIndex*()

func (*Users) FromArray

func (u *Users) FromArray(a A.X) *Users

FromArray convert slice to receiver fields

func (*Users) IdxCreatedAt

func (u *Users) IdxCreatedAt() int

IdxCreatedAt return name of the index

func (*Users) IdxCreatedBy

func (u *Users) IdxCreatedBy() int

IdxCreatedBy return name of the index

func (*Users) IdxDeletedAt

func (u *Users) IdxDeletedAt() int

IdxDeletedAt return name of the index

func (*Users) IdxDeletedBy

func (u *Users) IdxDeletedBy() int

IdxDeletedBy return name of the index

func (*Users) IdxEmail

func (u *Users) IdxEmail() int

IdxEmail return name of the index

func (*Users) IdxId

func (u *Users) IdxId() int

IdxId return name of the index

func (*Users) IdxIsDeleted

func (u *Users) IdxIsDeleted() int

IdxIsDeleted return name of the index

func (*Users) IdxLastLoginAt

func (u *Users) IdxLastLoginAt() int

IdxLastLoginAt return name of the index

func (*Users) IdxPassword

func (u *Users) IdxPassword() int

IdxPassword return name of the index

func (*Users) IdxPasswordSetAt

func (u *Users) IdxPasswordSetAt() int

IdxPasswordSetAt return name of the index

func (*Users) IdxRestoredAt

func (u *Users) IdxRestoredAt() int

IdxRestoredAt return name of the index

func (*Users) IdxRestoredBy

func (u *Users) IdxRestoredBy() int

IdxRestoredBy return name of the index

func (*Users) IdxSecretCode

func (u *Users) IdxSecretCode() int

IdxSecretCode return name of the index

func (*Users) IdxSecretCodeAt

func (u *Users) IdxSecretCodeAt() int

IdxSecretCodeAt return name of the index

func (*Users) IdxUpdatedAt

func (u *Users) IdxUpdatedAt() int

IdxUpdatedAt return name of the index

func (*Users) IdxUpdatedBy

func (u *Users) IdxUpdatedBy() int

IdxUpdatedBy return name of the index

func (*Users) IdxVerificationSentAt

func (u *Users) IdxVerificationSentAt() int

IdxVerificationSentAt return name of the index

func (*Users) IdxVerifiedAt

func (u *Users) IdxVerifiedAt() int

IdxVerifiedAt return name of the index

func (*Users) SpaceName

func (u *Users) SpaceName() string

SpaceName returns full package and table name

func (*Users) SqlCreatedAt

func (u *Users) SqlCreatedAt() string

SqlCreatedAt return name of the column being indexed

func (*Users) SqlCreatedBy

func (u *Users) SqlCreatedBy() string

SqlCreatedBy return name of the column being indexed

func (*Users) SqlDeletedAt

func (u *Users) SqlDeletedAt() string

SqlDeletedAt return name of the column being indexed

func (*Users) SqlDeletedBy

func (u *Users) SqlDeletedBy() string

SqlDeletedBy return name of the column being indexed

func (*Users) SqlEmail

func (u *Users) SqlEmail() string

SqlEmail return name of the column being indexed

func (*Users) SqlId

func (u *Users) SqlId() string

SqlId return name of the column being indexed

func (*Users) SqlIsDeleted

func (u *Users) SqlIsDeleted() string

SqlIsDeleted return name of the column being indexed

func (*Users) SqlLastLoginAt

func (u *Users) SqlLastLoginAt() string

SqlLastLoginAt return name of the column being indexed

func (*Users) SqlPassword

func (u *Users) SqlPassword() string

SqlPassword return name of the column being indexed

func (*Users) SqlPasswordSetAt

func (u *Users) SqlPasswordSetAt() string

SqlPasswordSetAt return name of the column being indexed

func (*Users) SqlRestoredAt

func (u *Users) SqlRestoredAt() string

SqlRestoredAt return name of the column being indexed

func (*Users) SqlRestoredBy

func (u *Users) SqlRestoredBy() string

SqlRestoredBy return name of the column being indexed

func (*Users) SqlSecretCode

func (u *Users) SqlSecretCode() string

SqlSecretCode return name of the column being indexed

func (*Users) SqlSecretCodeAt

func (u *Users) SqlSecretCodeAt() string

SqlSecretCodeAt return name of the column being indexed

func (*Users) SqlSelectAllFields

func (u *Users) SqlSelectAllFields() string

SqlSelectAllFields generate Sql select fields

func (*Users) SqlTableName

func (u *Users) SqlTableName() string

SqlTableName returns quoted table name

func (*Users) SqlUpdatedAt

func (u *Users) SqlUpdatedAt() string

SqlUpdatedAt return name of the column being indexed

func (*Users) SqlUpdatedBy

func (u *Users) SqlUpdatedBy() string

SqlUpdatedBy return name of the column being indexed

func (*Users) SqlVerificationSentAt

func (u *Users) SqlVerificationSentAt() string

SqlVerificationSentAt return name of the column being indexed

func (*Users) SqlVerifiedAt

func (u *Users) SqlVerifiedAt() string

SqlVerifiedAt return name of the column being indexed

func (*Users) ToArray

func (u *Users) ToArray() A.X

ToArray receiver fields to slice

func (*Users) ToUpdateArray

func (u *Users) ToUpdateArray() A.X

ToUpdateArray generate slice of update command

func (*Users) Total

func (u *Users) Total() int64

Total count number of rows

func (*Users) UniqueIndexEmail

func (u *Users) UniqueIndexEmail() string

UniqueIndexEmail return unique index name

func (*Users) UniqueIndexId

func (u *Users) UniqueIndexId() string

Jump to

Keyboard shortcuts

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