Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingConfiguration ¶
type Config ¶
type Config struct { SablierURL string Names []string Group string SessionDuration *time.Duration Dynamic *DynamicConfiguration Blocking *BlockingConfiguration }
func CreateConfig ¶
func CreateConfig() *Config
func (*Config) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
sablier [<sablierURL>] { [names container1,container2,...] [group mygroup] [session_duration 30m] dynamic { [display_name This is my display name] [show_details yes|true|on] [theme hacker-terminal] [refresh_frequency 2s] } blocking { [timeout 1m] } }
type DynamicConfiguration ¶
type SablierMiddleware ¶
type SablierMiddleware struct { Config Config // contains filtered or unexported fields }
func (SablierMiddleware) CaddyModule ¶
func (SablierMiddleware) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*SablierMiddleware) Provision ¶
func (m *SablierMiddleware) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (SablierMiddleware) ServeHTTP ¶
func (sm SablierMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
Click to show internal directories.
Click to hide internal directories.