actors

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL