Documentation ¶
Index ¶
- type APIHandler
- type Option
- func Dependency(name string, f func() error) 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 Response
- type ServeMux
- type Service
- type StreamAPIHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
func Dependency ¶ added in v1.0.1
func DependencyInfo ¶
func UseServeMux ¶
type Response ¶ added in v1.1.0
Response is structure for HTTP response
func Created ¶ added in v1.1.0
func Created() Response
Created return new instance of HTTP response with status code Created
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.