Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2023 Changes in this version + const Admin + const Banned + const FAILURE + const INVITED + const IdentityService + const InviteMessageTemplate + const Left + const Member + const ModuleName + const OrderAscending + const OrderDescending + const Owner + const S3BucketEndpoint + const S3BucketName + const SUCCESS + const Self + const UnverifiedService + var Roles = map[string]string + func GetOffsetLinksForPGParams(r *http.Request, p pgdb.OffsetPageParams) *resources.Links + type Chat struct + AccessHash *int64 + Id int64 + MembersAmount int64 + PhotoLink *string + PhotoName *string + Title string + type Chats interface + Delete func() error + FilterByAccessHash func(accessHash *int64) Chats + FilterByIds func(ids ...int64) Chats + FilterByTitles func(titles ...string) Chats + Get func() (*Chat, error) + New func() Chats + Select func() ([]Chat, error) + Upsert func(chat Chat) error + type Link struct + Id int64 + Link string + type Links interface + Delete func() error + FilterByLinks func(links ...string) Links + Get func() (*Link, error) + Insert func(link Link) error + New func() Links + Select func() ([]Link, error) + type MessageInfo struct + Data map[string]interface{} + MessageTemplate string + User User + type ModulePayload struct + AccessLevel string + Action string + Link string + Links []string + Phone *string + RequestId string + SubmoduleAccessHash *int64 + SubmoduleId int64 + UserId string + Username *string + type ModuleRequest struct + CreatedAt time.Time + Error string + ID string + Module string + Payload string + RequestStatus string + UserID int64 + type OrderType string + const OrderAsc + const OrderDesc + func (o OrderType) Invert() OrderType + type Permission struct + AccessLevel string + CreatedAt time.Time + Link string + RequestId string + SubmoduleAccessHash *int64 + SubmoduleId int64 + TelegramId int64 + UpdatedAt time.Time + type Permissions interface + Count func() Permissions + CountWithUsers func() Permissions + Delete func() error + FilterByGreaterTime func(time time.Time) Permissions + FilterByLinks func(links ...string) Permissions + FilterByLowerTime func(time time.Time) Permissions + FilterByTelegramIds func(telegramIds ...int64) Permissions + FilterByUserIds func(userIds ...int64) Permissions + Get func() (*Permission, error) + GetTotalCount func() (int64, error) + New func() Permissions + Page func(pageParams pgdb.OffsetPageParams) Permissions + SearchBy func(search string) Permissions + Select func() ([]Permission, error) + UpdateAccessLevel func(permission Permission) error + Upsert func(permission Permission) error + WithUsers func() Permissions + type Response struct + CreatedAt string + Description *string + Error *string + ID string + Payload json.RawMessage + Status string + type Responses interface + Delete func() error + FilterByIds func(ids ...string) Responses + Get func() (*Response, error) + Insert func(response Response) error + New func() Responses + Select func() ([]Response, error) + type UnverifiedPayload struct + Action string + Users []UnverifiedUser + type UnverifiedUser struct + CreatedAt time.Time + Email *string + Module string + ModuleId string + Name *string + Phone *string + Submodule string + Username *string + type User struct + AccessHash int64 + AccessLevel string + CreatedAt time.Time + FirstName string + Id *int64 + LastName string + Module string + Phone *string + Submodule *string + TelegramId int64 + UpdatedAt time.Time + Username *string + type Users interface + Count func() Users + Delete func() error + FilterById func(id *int64) Users + FilterByLowerTime func(time time.Time) Users + FilterByPhone func(phone string) Users + FilterByTelegramIds func(telegramIds ...int64) Users + FilterByUsername func(username string) Users + Get func() (*User, error) + GetTotalCount func() (int64, error) + New func() Users + Page func(pageParams pgdb.OffsetPageParams) Users + SearchBy func(search string) Users + Select func() ([]User, error) + Upsert func(user User) error