Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct { Token string //session token Expiration time.Time UserId uuid.UUID AuthLvl enum.AuthLvl }
Auth is used internally to verify a user, auth level, and expiration of session. The token refers to a session token, not auth token. It should never be returned to a user
type Comment ¶
type CookieOpts ¶
type NewUser ¶
type Payload ¶
type Payload[T Responsable] struct { Body T `json:"body"` Error string `json:"error"` }
func NewPayload ¶
func NewPayload[T Responsable](payload T, error string) Payload[T]
type Responsable ¶
type SessionAuth ¶
type SessionAuth struct { Name string SessionToken string `json:"token"` CookieOpts CookieOpts `json:"opts"` User User `json:"user"` Bot uuid.UUID `json:"botId"` }
SessionAuth gets returned to users when they log in
type SocketMessage ¶
type SocketMessage struct { Category enum.ChatMsgType `json:"category"` Body json.RawMessage `json:"body"` }
type UpdateMessage ¶
type User ¶
type UserAvatar ¶
Click to show internal directories.
Click to hide internal directories.