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
func (*FlagStrings) String ¶
func (f *FlagStrings) String() string
type GoCGIOptions ¶
type GoCGIOptions struct { Addr string Path string Root string Dir string Env FlagStrings InheritEnv FlagStrings Args FlagStrings Stderr string StaticMap FlagMap Users FlagStrings }
func NewGoCGIOptions ¶
func NewGoCGIOptions() *GoCGIOptions
func (*GoCGIOptions) BindFlags ¶
func (g *GoCGIOptions) BindFlags(flagSet *flag.FlagSet)
type LoggerHandler ¶
type LoggerHandler struct {
// contains filtered or unexported fields
}
func (*LoggerHandler) ServeHTTP ¶
func (h *LoggerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.