Documentation ¶
Index ¶
- Variables
- func GetPID() string
- func Handle(method, pattern string, handler http.Handler)
- func HandleFunc(method, pattern string, handler func(http.ResponseWriter, *http.Request))
- func PathRegex(pattern string) (params map[int]string, regex *regexp.Regexp, err error)
- func RedirectHandler(url string, code int) http.Handler
- func Run()
- type Manager
- type ServeMux
- func (mux *ServeMux) AddStaticDir(dir string) *ServeMux
- func (mux *ServeMux) Handle(method, pattern string, handler http.Handler)
- func (mux *ServeMux) HandleFunc(method, pattern string, handler func(http.ResponseWriter, *http.Request))
- func (mux *ServeMux) Handler(r *http.Request) (h http.Handler, pattern string)
- func (mux *ServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SessionName = "SID" SessionManager = &Manager{list: list.New(), timeOut: 30, sessions: make(map[string]*list.Element)} )
View Source
var (
ABC_Conf, _ = apibox.Get_Conf()
)
Functions ¶
func HandleFunc ¶
func HandleFunc(method, pattern string, handler func(http.ResponseWriter, *http.Request))
Types ¶
type ServeMux ¶
type ServeMux struct {
// contains filtered or unexported fields
}
func NewServeMux ¶
func NewServeMux() *ServeMux
func (*ServeMux) AddStaticDir ¶
func (*ServeMux) HandleFunc ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
var ( DefaultServeMux = NewServeMux() WebSession *Session )
func RegSession ¶
Click to show internal directories.
Click to hide internal directories.