Documentation
¶
Overview ¶
The `httpserver` task implements a server which can serve requests over HTTP, HTTPS and FCGI
Index ¶
- func NewWithPlugin(p Plugin) (*t, error)
- type Plugin
- func (p Plugin) Listen() string
- func (p Plugin) Name() string
- func (p Plugin) New(ctx context.Context, provider iface.Provider) (iface.Task, 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 ¶
func NewWithPlugin ¶
Create a new logger task with provider of other tasks
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 Timeout_ types.Duration `hcl:"timeout,optional"` // Read timeout on HTTP requests // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.