Documentation ¶
Index ¶
- func Address(addr string) service.Option
- func Enable(b bool) service.Option
- func HandleFuncs(hs ...HandlerFunc) service.Option
- func HandlerOptions(opts ...server.HandlerOption) service.Option
- func Handlers(hs ...http.Handler) service.Option
- func NewOptions(opts ...service.Option) []service.Option
- func RootPath(path string) service.Option
- func ServerMux(mux *http.ServeMux) service.Option
- func StaticDir(path, dir string) service.Option
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFuncs ¶
func HandleFuncs(hs ...HandlerFunc) service.Option
func HandlerOptions ¶
func HandlerOptions(opts ...server.HandlerOption) service.Option
Types ¶
type HandlerFunc ¶
type HandlerFunc struct { Route string Func func(w http.ResponseWriter, r *http.Request) }
Click to show internal directories.
Click to hide internal directories.