handlers

package
v0.0.0-...-5230034 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

AuthHandler is the handler for the AuthCmd

func (AuthHandler) Handle

func (h AuthHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the AuthCmd

type CommandHandler

type CommandHandler interface {
	Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)
}

CommandHandler is the interface that Handles EvebotCommands

func NewAuthHandler

func NewAuthHandler(svc *service.Provider) CommandHandler

NewAuthHandler creates a AuthHandler

func NewDeleteHandler

func NewDeleteHandler(svc *service.Provider) CommandHandler

NewDeleteHandler creates a DeleteHandler

func NewDeployHandler

func NewDeployHandler(svc *service.Provider) CommandHandler

NewDeployHandler creates a DeployHandler

func NewReleaseHandler

func NewReleaseHandler(svc *service.Provider) CommandHandler

NewReleaseHandler creates a ReleaseHandler

func NewRestartHandler

func NewRestartHandler(svc *service.Provider) CommandHandler

NewReleaseHandler creates a RestartHandler

func NewRunHandler

func NewRunHandler(svc *service.Provider) CommandHandler

NewRunHandler creates a RunHandler

func NewSetHandler

func NewSetHandler(svc *service.Provider) CommandHandler

NewSetHandler creates a SetHandler

func NewShowHandler

func NewShowHandler(svc *service.Provider) CommandHandler

NewShowHandler creates a ShowHandler

type DeleteHandler

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

DeleteHandler is the handler for the DeleteCmd

func (DeleteHandler) Handle

func (h DeleteHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the DeleteCmd

type DeployHandler

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

DeployHandler is the handler for the DeployCmd

func (DeployHandler) Handle

func (h DeployHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the DeployCmd

type Factory

type Factory interface {
	Items() map[string]func(svc *service.Provider) CommandHandler
}

func NewFactory

func NewFactory() Factory

type ReleaseHandler

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

ReleaseHandler is the handler for the ReleaseCmd

func (ReleaseHandler) Handle

func (h ReleaseHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the ReleaseCmd

type RestartHandler

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

ReleaseHandler is the handler for the RestartHandler

func (RestartHandler) Handle

func (h RestartHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the RestartCmd

type RunHandler

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

RunHandler is the handler for the RunCmd

func (RunHandler) Handle

func (h RunHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the RunCmd

type SetHandler

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

SetHandler is the handler for the SetCmd

func (SetHandler) Handle

func (h SetHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the SetCmd

type ShowHandler

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

ShowHandler is the handler for the ShowCmd

func (ShowHandler) Handle

func (h ShowHandler) Handle(ctx context.Context, cmd commands.EvebotCommand, timestamp string)

Handle handles the ShowCmd

Jump to

Keyboard shortcuts

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