Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helps to building a web-server
func (*Builder) AddHandlerFunc ¶
func (b *Builder) AddHandlerFunc(handler HandlerFunc) *Builder
AddHandlerFunc adds the handler to handler slice handlers in the slice will be executed by on by
type FileServerOptions ¶
type FileServerOptions struct { // Root directory of file server // Default : "." Root string // index filenames of fs // Default : []string{"index.html"} IndexNames []string }
FileServerOptions :
type HandlerFunc ¶
type HandlerFunc func(*fasthttp.RequestCtx) bool
HandlerFunc handles reqeust and return bool if it returns true, server stop execution handlers
func NewFileServerHandler ¶
func NewFileServerHandler(opt FileServerOptions) HandlerFunc
NewFileServerHandler :
Click to show internal directories.
Click to hide internal directories.