Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticResponse ¶
type StaticResponse struct {
Response string `json:"response"`
}
StaticResponse is an actor that writes a static value to the client
func (StaticResponse) CaddyModule ¶
func (s StaticResponse) CaddyModule() caddy.ModuleInfo
This method indicates that the type is a Caddy module. The returned ModuleInfo must have both a name and a constructor function. This method must not have any side-effects.
func (StaticResponse) Handle ¶
func (s StaticResponse) Handle(sess session.Session) error
Handle will write the value of Response to the client
func (*StaticResponse) Provision ¶
func (s *StaticResponse) Provision(ctx caddy.Context) error
Provision is a noop for this module
Click to show internal directories.
Click to hide internal directories.