Documentation
¶
Index ¶
Constants ¶
View Source
const (
SessionCookieKey = "gocgi-session"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicAuthHandler ¶
type BasicAuthHandler struct {
// contains filtered or unexported fields
}
func (*BasicAuthHandler) Check ¶
func (h *BasicAuthHandler) Check(username, passwd string) bool
func (*BasicAuthHandler) CheckCookie ¶
func (h *BasicAuthHandler) CheckCookie(r *http.Request) bool
func (*BasicAuthHandler) CheckUsername ¶
func (h *BasicAuthHandler) CheckUsername(username string) bool
func (*BasicAuthHandler) ServeHTTP ¶
func (h *BasicAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type FlagStrings ¶
type FlagStrings []string
func (*FlagStrings) Set ¶
func (f *FlagStrings) Set(s string) error