middleware

package
v0.0.0-...-d931726 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLoggingMiddleware

type CommandLoggingMiddleware struct {
	// contains filtered or unexported fields
}

func NewCommandLoggingMiddleware

func NewCommandLoggingMiddleware(ct di.Container) *CommandLoggingMiddleware

func (*CommandLoggingMiddleware) After

func (t *CommandLoggingMiddleware) After(ctx *ken.Ctx, cmdError error) (err error)

type CommandStatsMiddleware

type CommandStatsMiddleware struct{}

CommandStatsMiddleware implements ken.MiddlewareAfter to count command exeuction stats.

func NewCommandStatsMiddleware

func NewCommandStatsMiddleware() *CommandStatsMiddleware

NewCommandStatsMiddleware returns a new instance of CommandStatsMiddleware.

func (*CommandStatsMiddleware) After

func (m *CommandStatsMiddleware) After(ctx *ken.Ctx, cmdError error) (err error)

type DisableCommandsMiddleware

type DisableCommandsMiddleware struct {
	// contains filtered or unexported fields
}

func NewDisableCommandsMiddleware

func NewDisableCommandsMiddleware(ctn di.Container) *DisableCommandsMiddleware

func (*DisableCommandsMiddleware) Before

func (m *DisableCommandsMiddleware) Before(ctx *ken.Ctx) (next bool, err error)

Jump to

Keyboard shortcuts

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