Documentation ¶
Index ¶
- type APIHandler
- type Option
- func DependencyInfo(name string, f func() interface{}) Option
- func Https(certFile, keyFile string) Option
- func Logger(l func(format string, args ...interface{})) Option
- func Name(n string) Option
- func Param(name, val string) Option
- func Port(port int) Option
- func UseServeMux(mux ServeMux) Option
- func Version(v string) Option
- type Options
- type ServeMux
- type Service
- type StreamAPIHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Get(path string, handler APIHandler) Post(path string, handler APIHandler) Put(path string, handler APIHandler) Del(path string, handler APIHandler) Stream(path string, handler StreamAPIHandler) Run() }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.