Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSimpleJSONResponse ¶
NewSimpleJSONResponse returns handler which server static json on GET request
func RequestInvoke ¶
func RequestInvoke[T interface{}](invoker RequestInvoker, request *http.Request) (*T, int, error)
Types ¶
type PlainServer ¶
type PlainServer interface { Server WithSSL(key, cert string) (Server, error) WithKeyfile(keyfile string) (Server, error) }
func NewServer ¶
func NewServer(server *http.Server) PlainServer
type RequestInvoker ¶
type Server ¶
type Server interface {
Start() (ServerRunner, error)
}
type ServerRunner ¶
type ServerRunner interface { Stop() Wait() error }
Click to show internal directories.
Click to hide internal directories.