Documentation ¶
Index ¶
Constants ¶
View Source
const ( // md5 need 16 byte TokenKeyLenth = 16 TokenHeaderKey = "BLOB-STORE-AUTH-TOKEN" )
Variables ¶
This section is empty.
Functions ¶
func NewAuthTransport ¶
func NewAuthTransport(tr http.RoundTripper, cfg *Config) http.RoundTripper
Types ¶
type AuthHandler ¶
type AuthHandler struct {
Secret []byte
}
func NewAuthHandler ¶
func NewAuthHandler(cfg *Config) *AuthHandler
func (*AuthHandler) Handler ¶
func (self *AuthHandler) Handler(w http.ResponseWriter, req *http.Request, f func(http.ResponseWriter, *http.Request))
type AuthTransport ¶
type AuthTransport struct { Secret []byte Tr http.RoundTripper }
Click to show internal directories.
Click to hide internal directories.