Documentation
¶
Overview ¶
The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI
Index ¶
- func NewWithPlugin(p Plugin) (*httpserver, error)
- type Plugin
- func (p Plugin) Group() (int, error)
- func (p Plugin) Listen() string
- func (p Plugin) Mode() os.FileMode
- func (p Plugin) Name() string
- func (p Plugin) New(ctx context.Context, provider iface.Provider) (iface.Task, error)
- func (p Plugin) Owner() (int, error)
- func (p Plugin) Router() plugin.Router
- func (p Plugin) TLS() (*tls.Config, error)
- func (p Plugin) Timeout() time.Duration
- func (p Plugin) WithListen(listen string) Plugin
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithPlugin ¶
Create a new logger task with provider of other tasks
Types ¶
type Plugin ¶
type Plugin struct { task.Plugin Listen_ types.String `json:"listen,omitempty"` // Address or path for binding HTTP server TLS_ *TLS `json:"tls,omitempty"` // TLS parameters, or nil if not using TLS (ignored for file sockets) Timeout_ types.Duration `json:"timeout,omitempty"` // Read timeout on HTTP requests (ignored for file sockets) Owner_ types.String `json:"owner,omitempty"` // Owner of the socket file (ignored for network sockets) Group_ types.String `json:"group,omitempty"` // Owner Group of the socket file (ignored for network sockets) Router_ types.Task `json:"router,omitempty"` // The router object which serves the gateways, optional. }
func (Plugin) WithListen ¶ added in v1.1.3
Directories
¶
Path | Synopsis |
---|---|
Package fcgi implements the FastCGI protocol.
|
Package fcgi implements the FastCGI protocol. |
router package implements a http.Handler and the ability to register routes on a gateway
|
router package implements a http.Handler and the ability to register routes on a gateway |
static package implements a http.Handler for serving static files
|
static package implements a http.Handler for serving static files |
tokenauth package implements authentication tokens for HTTP servers
|
tokenauth package implements authentication tokens for HTTP servers |
The `util` package provides utility methods for decoding request parameters and bodies, and providing responses over HTTP
|
The `util` package provides utility methods for decoding request parameters and bodies, and providing responses over HTTP |
Click to show internal directories.
Click to hide internal directories.