Documentation ¶
Index ¶
- type Sessions
- func (s *Sessions) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta)
- func (s *Sessions) FindBySessionToken() bool
- func (s *Sessions) FindOffsetLimit(offset, limit uint32, idx string) []Sessions
- func (s *Sessions) FromArray(a A.X) *Sessions
- func (s *Sessions) IdxExpiredAt() int
- func (s *Sessions) IdxSessionToken() int
- func (s *Sessions) IdxUserId() int
- func (s *Sessions) SpaceName() string
- func (s *Sessions) SqlExpiredAt() string
- func (s *Sessions) SqlSelectAllFields() string
- func (s *Sessions) SqlSessionToken() string
- func (s *Sessions) SqlTableName() string
- func (s *Sessions) SqlUserId() string
- func (s *Sessions) ToArray() A.X
- func (s *Sessions) ToUpdateArray() A.X
- func (s *Sessions) Total() int64
- func (s *Sessions) UniqueIndexSessionToken() string
- type Users
- func (s *Users) AllOffsetLimit(offset, limit uint32) (res []*Users)
- func (s *Users) CensorFields()
- func (s *Users) CheckPassword(currentPassword string) bool
- func (u *Users) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta)
- func (u *Users) FindByEmail() bool
- func (u *Users) FindById() bool
- func (u *Users) FindOffsetLimit(offset, limit uint32, idx string) []Users
- func (u *Users) FromArray(a A.X) *Users
- func (u *Users) IdxCreatedAt() int
- func (u *Users) IdxCreatedBy() int
- func (u *Users) IdxDeletedAt() int
- func (u *Users) IdxDeletedBy() int
- func (u *Users) IdxEmail() int
- func (u *Users) IdxId() int
- func (u *Users) IdxIsDeleted() int
- func (u *Users) IdxLastLoginAt() int
- func (u *Users) IdxPassword() int
- func (u *Users) IdxPasswordSetAt() int
- func (u *Users) IdxRestoredAt() int
- func (u *Users) IdxRestoredBy() int
- func (u *Users) IdxSecretCode() int
- func (u *Users) IdxSecretCodeAt() int
- func (u *Users) IdxUpdatedAt() int
- func (u *Users) IdxUpdatedBy() int
- func (u *Users) IdxVerificationSentAt() int
- func (u *Users) IdxVerifiedAt() int
- func (u *Users) SpaceName() string
- func (u *Users) SqlCreatedAt() string
- func (u *Users) SqlCreatedBy() string
- func (u *Users) SqlDeletedAt() string
- func (u *Users) SqlDeletedBy() string
- func (u *Users) SqlEmail() string
- func (u *Users) SqlId() string
- func (u *Users) SqlIsDeleted() string
- func (u *Users) SqlLastLoginAt() string
- func (u *Users) SqlPassword() string
- func (u *Users) SqlPasswordSetAt() string
- func (u *Users) SqlRestoredAt() string
- func (u *Users) SqlRestoredBy() string
- func (u *Users) SqlSecretCode() string
- func (u *Users) SqlSecretCodeAt() string
- func (u *Users) SqlSelectAllFields() string
- func (u *Users) SqlTableName() string
- func (u *Users) SqlUpdatedAt() string
- func (u *Users) SqlUpdatedBy() string
- func (u *Users) SqlVerificationSentAt() string
- func (u *Users) SqlVerifiedAt() string
- func (u *Users) ToArray() A.X
- func (u *Users) ToUpdateArray() A.X
- func (u *Users) Total() int64
- func (u *Users) UniqueIndexEmail() string
- func (u *Users) UniqueIndexId() string
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 ¶
NewSessions create new ORM reader/query object
func (*Sessions) FindArrOffsetLimit ¶
FindArrOffsetLimit returns as slice of slice order by idx eg. .UniqueIndex*()
func (*Sessions) FindBySessionToken ¶
FindBySessionToken Find one by SessionToken
func (*Sessions) FindOffsetLimit ¶
FindOffsetLimit returns slice of struct, order by idx, eg. .UniqueIndex*()
func (*Sessions) IdxExpiredAt ¶
IdxExpiredAt return name of the index
func (*Sessions) IdxSessionToken ¶
IdxSessionToken return name of the index
func (*Sessions) SqlExpiredAt ¶
SqlExpiredAt return name of the column being indexed
func (*Sessions) SqlSelectAllFields ¶
SqlSelectAllFields generate Sql select fields
func (*Sessions) SqlSessionToken ¶
SqlSessionToken return name of the column being indexed
func (*Sessions) SqlTableName ¶
SqlTableName returns quoted table name
func (*Sessions) ToUpdateArray ¶
ToUpdateArray generate slice of update command
func (*Sessions) UniqueIndexSessionToken ¶
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 (*Users) AllOffsetLimit ¶
func (*Users) CensorFields ¶
func (s *Users) CensorFields()
func (*Users) CheckPassword ¶
func (*Users) FindArrOffsetLimit ¶
FindArrOffsetLimit returns as slice of slice order by idx eg. .UniqueIndex*()
func (*Users) FindOffsetLimit ¶
FindOffsetLimit returns slice of struct, order by idx, eg. .UniqueIndex*()
func (*Users) IdxCreatedAt ¶
IdxCreatedAt return name of the index
func (*Users) IdxCreatedBy ¶
IdxCreatedBy return name of the index
func (*Users) IdxDeletedAt ¶
IdxDeletedAt return name of the index
func (*Users) IdxDeletedBy ¶
IdxDeletedBy return name of the index
func (*Users) IdxIsDeleted ¶
IdxIsDeleted return name of the index
func (*Users) IdxLastLoginAt ¶
IdxLastLoginAt return name of the index
func (*Users) IdxPasswordSetAt ¶
IdxPasswordSetAt return name of the index
func (*Users) IdxRestoredAt ¶
IdxRestoredAt return name of the index
func (*Users) IdxRestoredBy ¶
IdxRestoredBy return name of the index
func (*Users) IdxSecretCode ¶
IdxSecretCode return name of the index
func (*Users) IdxSecretCodeAt ¶
IdxSecretCodeAt return name of the index
func (*Users) IdxUpdatedAt ¶
IdxUpdatedAt return name of the index
func (*Users) IdxUpdatedBy ¶
IdxUpdatedBy return name of the index
func (*Users) IdxVerificationSentAt ¶
IdxVerificationSentAt return name of the index
func (*Users) IdxVerifiedAt ¶
IdxVerifiedAt return name of the index
func (*Users) SqlCreatedAt ¶
SqlCreatedAt return name of the column being indexed
func (*Users) SqlCreatedBy ¶
SqlCreatedBy return name of the column being indexed
func (*Users) SqlDeletedAt ¶
SqlDeletedAt return name of the column being indexed
func (*Users) SqlDeletedBy ¶
SqlDeletedBy return name of the column being indexed
func (*Users) SqlIsDeleted ¶
SqlIsDeleted return name of the column being indexed
func (*Users) SqlLastLoginAt ¶
SqlLastLoginAt return name of the column being indexed
func (*Users) SqlPassword ¶
SqlPassword return name of the column being indexed
func (*Users) SqlPasswordSetAt ¶
SqlPasswordSetAt return name of the column being indexed
func (*Users) SqlRestoredAt ¶
SqlRestoredAt return name of the column being indexed
func (*Users) SqlRestoredBy ¶
SqlRestoredBy return name of the column being indexed
func (*Users) SqlSecretCode ¶
SqlSecretCode return name of the column being indexed
func (*Users) SqlSecretCodeAt ¶
SqlSecretCodeAt return name of the column being indexed
func (*Users) SqlSelectAllFields ¶
SqlSelectAllFields generate Sql select fields
func (*Users) SqlTableName ¶
SqlTableName returns quoted table name
func (*Users) SqlUpdatedAt ¶
SqlUpdatedAt return name of the column being indexed
func (*Users) SqlUpdatedBy ¶
SqlUpdatedBy return name of the column being indexed
func (*Users) SqlVerificationSentAt ¶
SqlVerificationSentAt return name of the column being indexed
func (*Users) SqlVerifiedAt ¶
SqlVerifiedAt return name of the column being indexed
func (*Users) ToUpdateArray ¶
ToUpdateArray generate slice of update command
func (*Users) UniqueIndexEmail ¶
UniqueIndexEmail return unique index name