Documentation ¶
Index ¶
- func DB() *bun.DB
- func QueryGetPlatformUser(idb bun.IDB, model any, platformID int, platformUserID string) *bun.SelectQuery
- func QueryGetPlatformUsers(idb bun.IDB, model any) *bun.SelectQuery
- func QueryGetUser(idb bun.IDB, model any, userID int64) *bun.SelectQuery
- func QueryGetUsers(idb bun.IDB, model any) *bun.SelectQuery
- type Account
- type Ban
- type Model
- type PlatformLink
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryGetPlatformUser ¶
func QueryGetPlatformUsers ¶
func QueryGetPlatformUsers(idb bun.IDB, model any) *bun.SelectQuery
func QueryGetUser ¶
func QueryGetUsers ¶
func QueryGetUsers(idb bun.IDB, model any) *bun.SelectQuery
Types ¶
type Account ¶
func GetUserAccounts ¶
type Ban ¶
type Ban struct { Model `bun:",extend"` api.Ban `bun:",extend"` bun.BaseModel `bun:"table:bans,alias:bans"` }
Ban contains information on length and why an account was banned
type Model ¶
type PlatformLink ¶
type PlatformLink struct { Model `bun:",extend"` api.PlatformLink `bun:",extend"` }
func GetPlatformLink ¶
func GetPlatformLink(platformID int, platformUserId string) (link PlatformLink, err error)
func GetUserPlatformLinks ¶
func GetUserPlatformLinks(userID int64) (links []PlatformLink, err error)
type TokenInfo ¶
type TokenInfo struct { Model `bun:",extend"` gw2api.TokenInfo `bun:",extend"` LastSuccess time.Time APIKey string `bun:"api_key"` AccountID string }
func FindLastUpdatedAPIKey ¶
func FindUserAPIKeys ¶
func (*TokenInfo) UpdateLastAttemptedUpdate ¶
func (*TokenInfo) UpdateLastSuccessfulUpdate ¶
Click to show internal directories.
Click to hide internal directories.