modulepackage
0.0.0-20230907002627-38429b961da0
Repository: https://github.com/codingeasygo/web.git
Documentation: pkg.go.dev
# Functions
DebugLog is the debug level log.
ErrorLog is the error level log.
Filter will register the handler to shared.
FilterFunc will register the handler to shared.
Handle will register the handler to shared.
HandleFunc will register the handler to shared.
HandleSignal will handle the kill signal and stop the server.
InfoLog is the info level log.
ListenAndServe will listen the shared server.
NewAllNoCacheDir will return new all not cache dir.
NewBuilderSessionMux will create new SessionMux by session builder.
NewDefaultSessionBuilder will return new builder.
NewMemSessionBuilder will return new MemSessionBuilder.
NewNoCacheDir will return new not cahche dir.
NewSessionMux will return new SessionMux.
SendFile will send file to http response.
SetLogLevel is set log level to l.
WarnLog is the warn level log.
# Constants
No description provided by the author
No description provided by the author
Continue is http handler return for conntinue next handler.
LogLevelDebug is debug log level.
LogLevelError is error log level.
LogLevelInfo is info log level.
LogLevelWarn is warn log level.
Return is http handler return for request is done.
# Structs
DefaultSession is web memory sesson implement.
DefaultSessionBuilder is session builder to create default session.
Dir is implement http file system for ignore cache.
File is implement http file system for ignore cache.
FileInfo is implement http file system for ignore cache.
MemSession is memory session implement.
MemSessionBuilder is memory session builder implement.
MultipartFile is recevied file result.
MultipartValues is recevied result.
Session is http session implement.
SessionMux session mux implement.
# Interfaces
Handler is interface to handler http request.
Sessionable is interface to record session value.
SessionBuilder is interface to build the session.
SessionEventHandler is interface to session event handler.
# Type aliases
HandlerFunc is func implment Handler.
NormalHandlerFunc is normal http handler.
Result is http handler result.
SessionEventFunc is SessionEventHandler implement.