Documentation
¶
Index ¶
- func Authenticator(next http.Handler) http.Handler
- func ChangeSessionRole(w http.ResponseWriter, r *http.Request)
- func HandlerWithHeaders(title, endpoint string, fetcherHeaders, uiHeaders map[string]string) http.HandlerFunc
- func Login(w http.ResponseWriter, r *http.Request)
- func Playground(title, endpoint string) http.HandlerFunc
- func Signup(w http.ResponseWriter, r *http.Request)
- type ChangeSessionRoleRequest
- type LoginFormData
- type SignupFormData
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeSessionRole ¶
func ChangeSessionRole(w http.ResponseWriter, r *http.Request)
func HandlerWithHeaders ¶
func HandlerWithHeaders( title, endpoint string, fetcherHeaders, uiHeaders map[string]string, ) http.HandlerFunc
HandlerWithHeaders sets up the playground. fetcherHeaders are used by the playground's fetcher instance and will not be visible in the UI. uiHeaders are default headers that will show up in the UI headers editor.
func Login ¶
func Login(w http.ResponseWriter, r *http.Request)
TODO: 1. sanitize error messages; 2. move to api; 3. add logs;
func Playground ¶
func Playground(title, endpoint string) http.HandlerFunc
Handler responsible for setting up the playground
Types ¶
type ChangeSessionRoleRequest ¶
type ChangeSessionRoleRequest struct {
Role string
}
type LoginFormData ¶
type SignupFormData ¶
Click to show internal directories.
Click to hide internal directories.