Documentation ¶
Overview ¶
Package sandstormhdr reads Sandstorm information from HTTP request headers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPermission ¶
HasPermission reports whether the request header contains a permission.
func Permissions ¶
Permissions extracts the permissions in the request header.
Types ¶
type User ¶
type User struct { // ID is a globally unique identifier for the user. ID string // Name is the user's display name. Name string // PreferredHandle is a handle, consisting of ASCII letters, numbers, and underscores. Handle string // PictureURL is a URL to a 64x64 profile picture. PictureURL string // Pronouns is the user's preferred pronouns. // One of "neutral", "male", "female", or "robot". Pronouns string }
A User represents a Sandstorm user.
Click to show internal directories.
Click to hide internal directories.