Documentation
¶
Index ¶
Constants ¶
View Source
const ( IdHeader = "x-brink-id" AuthHeader = "x-brink-auth" KeyHeader = "x-brink-api-key" TokenHeader = "x-brink-api-token" UpgradeHeaderValue = "x-brink-protocol" HandshakeHeaderName = "x-brink-handshake-key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSessionRequest ¶
type KeyResponse ¶
type KeyResponse struct {
Key string `json:"key"`
}
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
type RegisterSessionRequest ¶
type RegisterSessionRequest struct { AuthToken string `json:"auth_token,omitempty"` SessionId string `json:"session_id,omitempty"` SessionKey string `json:"session_key,omitempty"` Policies map[string]Policy `json:"policies,omitempty"` Target string `json:"target,omitempty"` Checksum string `json:"cs,omitempty"` }
type SessionToken ¶
type SessionToken struct { UserID string `json:"user_id,omitempty"` Username string `json:"user_name,omitempty"` Email string `json:"email,omitempty"` Roles []string `json:"roles,omitempty"` Target string `json:"target,omitempty"` ExpirationTime time.Time `json:"exp,omitempty"` Checksum string `json:"cs,omitempty"` }
type SessionTokenRequest ¶ added in v0.2.0
type SessionTokenRequest struct {
SessionId string `json:"session_id"`
}
type SessionTokenResponse ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.