Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPlatform ¶
Types ¶
type ClearUserInfo ¶
type ClearUserInfo struct {
// The user that was cleared
ClearedFrom []ClearFrom
// Whether the user was a bot or not
IsBot bool
}
ClearUserInfo contains information on a clear operation
func ClearUser ¶
func ClearUser(ctx context.Context, id string, platform Platform, req ClearUserReq) (*ClearUserInfo, error)
Clears a user of a platform
type ClearUserReq ¶
type ClearUserReq struct {
// Where to clear from
//
// iuc -> internal user cache (postgres)
//
// Redis -> redis cache
//
//
// If not specified, will clear from all
ClearFrom []ClearFrom
}
Click to show internal directories.
Click to hide internal directories.