Documentation ¶
Index ¶
Constants ¶
View Source
const TokenURL = "https://%s/v1/remoteenvironments/%s/info?token=%s"
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(handler TokenHandler) http.Handler
Types ¶
type TokenHandler ¶
type TokenHandler interface {
CreateToken(w http.ResponseWriter, r *http.Request)
}
func NewTokenHandler ¶
func NewTokenHandler(tokenGenerator tokens.TokenGenerator, host string) TokenHandler
Click to show internal directories.
Click to hide internal directories.