Documentation ¶
Index ¶
- func NewChatsQ(db *pgdb.DB) data.Chats
- func NewLinksQ(db *pgdb.DB) data.Links
- func NewPermissionsQ(db *pgdb.DB) data.Permissions
- func NewResponsesQ(db *pgdb.DB) data.Responses
- func NewUsersQ(db *pgdb.DB) data.Users
- type ChatsQ
- func (r ChatsQ) Delete() error
- func (r ChatsQ) FilterByAccessHash(accessHash *int64) data.Chats
- func (r ChatsQ) FilterByIds(ids ...int64) data.Chats
- func (r ChatsQ) FilterByTitles(titles ...string) data.Chats
- func (r ChatsQ) Get() (*data.Chat, error)
- func (r ChatsQ) New() data.Chats
- func (r ChatsQ) Select() ([]data.Chat, error)
- func (r ChatsQ) Upsert(chat data.Chat) error
- type LinksQ
- type PermissionsQ
- func (q PermissionsQ) Count() data.Permissions
- func (q PermissionsQ) CountWithUsers() data.Permissions
- func (q PermissionsQ) Delete() error
- func (q PermissionsQ) FilterByGreaterTime(time time.Time) data.Permissions
- func (q PermissionsQ) FilterByLinks(links ...string) data.Permissions
- func (q PermissionsQ) FilterByLowerTime(time time.Time) data.Permissions
- func (q PermissionsQ) FilterByTelegramIds(telegramIds ...int64) data.Permissions
- func (q PermissionsQ) FilterByUserIds(userIds ...int64) data.Permissions
- func (q PermissionsQ) Get() (*data.Permission, error)
- func (q PermissionsQ) GetTotalCount() (int64, error)
- func (q PermissionsQ) New() data.Permissions
- func (q PermissionsQ) Page(pageParams pgdb.OffsetPageParams) data.Permissions
- func (q PermissionsQ) SearchBy(search string) data.Permissions
- func (q PermissionsQ) Select() ([]data.Permission, error)
- func (q PermissionsQ) UpdateAccessLevel(permission data.Permission) error
- func (q PermissionsQ) Upsert(permission data.Permission) error
- func (q PermissionsQ) WithUsers() data.Permissions
- type ResponsesQ
- type UsersQ
- func (q UsersQ) Count() data.Users
- func (q UsersQ) Delete() error
- func (q UsersQ) FilterById(id *int64) data.Users
- func (q UsersQ) FilterByLowerTime(time time.Time) data.Users
- func (q UsersQ) FilterByPhone(phone string) data.Users
- func (q UsersQ) FilterByTelegramIds(telegramIds ...int64) data.Users
- func (q UsersQ) FilterByUsername(username string) data.Users
- func (q UsersQ) Get() (*data.User, error)
- func (q UsersQ) GetTotalCount() (int64, error)
- func (q UsersQ) New() data.Users
- func (q UsersQ) Page(pageParams pgdb.OffsetPageParams) data.Users
- func (q UsersQ) SearchBy(search string) data.Users
- func (q UsersQ) Select() ([]data.User, error)
- func (q UsersQ) Upsert(user data.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPermissionsQ ¶
func NewPermissionsQ(db *pgdb.DB) data.Permissions
Types ¶
type PermissionsQ ¶
type PermissionsQ struct {
// contains filtered or unexported fields
}
func (PermissionsQ) Count ¶
func (q PermissionsQ) Count() data.Permissions
func (PermissionsQ) CountWithUsers ¶
func (q PermissionsQ) CountWithUsers() data.Permissions
func (PermissionsQ) Delete ¶
func (q PermissionsQ) Delete() error
func (PermissionsQ) FilterByGreaterTime ¶
func (q PermissionsQ) FilterByGreaterTime(time time.Time) data.Permissions
func (PermissionsQ) FilterByLinks ¶
func (q PermissionsQ) FilterByLinks(links ...string) data.Permissions
func (PermissionsQ) FilterByLowerTime ¶
func (q PermissionsQ) FilterByLowerTime(time time.Time) data.Permissions
func (PermissionsQ) FilterByTelegramIds ¶
func (q PermissionsQ) FilterByTelegramIds(telegramIds ...int64) data.Permissions
func (PermissionsQ) FilterByUserIds ¶
func (q PermissionsQ) FilterByUserIds(userIds ...int64) data.Permissions
func (PermissionsQ) Get ¶
func (q PermissionsQ) Get() (*data.Permission, error)
func (PermissionsQ) GetTotalCount ¶
func (q PermissionsQ) GetTotalCount() (int64, error)
func (PermissionsQ) New ¶
func (q PermissionsQ) New() data.Permissions
func (PermissionsQ) Page ¶
func (q PermissionsQ) Page(pageParams pgdb.OffsetPageParams) data.Permissions
func (PermissionsQ) SearchBy ¶
func (q PermissionsQ) SearchBy(search string) data.Permissions
func (PermissionsQ) Select ¶
func (q PermissionsQ) Select() ([]data.Permission, error)
func (PermissionsQ) UpdateAccessLevel ¶
func (q PermissionsQ) UpdateAccessLevel(permission data.Permission) error
func (PermissionsQ) Upsert ¶
func (q PermissionsQ) Upsert(permission data.Permission) error
func (PermissionsQ) WithUsers ¶
func (q PermissionsQ) WithUsers() data.Permissions
type ResponsesQ ¶
type ResponsesQ struct {
// contains filtered or unexported fields
}
func (ResponsesQ) Delete ¶
func (q ResponsesQ) Delete() error
func (ResponsesQ) FilterByIds ¶
func (q ResponsesQ) FilterByIds(ids ...string) data.Responses
func (ResponsesQ) New ¶
func (q ResponsesQ) New() data.Responses
type UsersQ ¶
type UsersQ struct {
// contains filtered or unexported fields
}
func (UsersQ) FilterByTelegramIds ¶
func (UsersQ) GetTotalCount ¶
Click to show internal directories.
Click to hide internal directories.