Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { User *User UserFirebase *UserFirebase Session *Session Memo *Memo }
Service provides all databases
type Session ¶
Session represents the client for session table
func NewSession ¶
NewSession returns a new session database instance
func (*Session) DeleteExpired ¶
DeleteExpired deletes expired sessions
type User ¶
User represents the client for user table
func (*User) FindByEmail ¶
FindByEmail finds a user by the given email
func (*User) List ¶
func (r *User) List(ctx context.Context, output interface{}, count *int64, lc *requestutil.ListCondition[UsersFilter]) error
List reads all users by given conditions
type UserFirebase ¶ added in v0.0.3
type UserFirebase struct { *repoutil.Repo[types.UserFirebase] }
UserFirebase represents the client for user table with firebase embed
func NewUserFirebase ¶ added in v0.0.3
func NewUserFirebase(gdb *gorm.DB) *UserFirebase
NewUserFirebase returns a new user database instance with firebase embed
type UsersFilter ¶
type UsersFilter struct {
Search string
}
UsersFilter represents the filter type for listing and filtering users
Click to show internal directories.
Click to hide internal directories.