Documentation
¶
Overview ¶
The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI
Index ¶
- func NewWithPlugin(p Plugin, router plugin.Router) (*t, 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(ctx context.Context, provider iface.Provider) plugin.Router
- func (p Plugin) TLS() (*tls.Config, error)
- func (p Plugin) Timeout() time.Duration
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { task.Plugin Router_ types.Task `json:"router,omitempty"` // The router object which serves the gateways 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) }
Click to show internal directories.
Click to hide internal directories.