Documentation ¶
Index ¶
Constants ¶
View Source
const (
PrivateTokenHeader = "PRIVATE-TOKEN"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetTokenStore ¶
func (api *API) GetTokenStore() *tokens.TokenStore
Return the token store.
This is intended for use only by unit tests.
func (*API) ServeHTTP ¶
func (api *API) ServeHTTP(w http.ResponseWriter, r *http.Request)
Serve a request.
This is only meant for unit tests since it acquires a lock for every request that would normally only be acquired once in `api.Serve`
Click to show internal directories.
Click to hide internal directories.