strategies

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoStrategy = errors.New("strategy does not exist")
)

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*types.BaseService
	// contains filtered or unexported fields
}

func GetStrategy

func GetStrategy(ctx *context.RootContext, s string) (*Driver, error)

func NewDriver

func NewDriver(ctx *context.RootContext, strategy Strategy) *Driver

func (*Driver) Name

func (srv *Driver) Name() string

Name implements DashboardRouter

func (*Driver) SetupRouter

func (srv *Driver) SetupRouter(router *gin.RouterGroup)

SetupRouter for setting up the dashboard routes implements DashboardRouter

func (*Driver) Start

func (d *Driver) Start() error

func (*Driver) Stop

func (d *Driver) Stop() error

type Strategy

type Strategy interface {
	types.Service
	Step(*types.Event) []*types.Message
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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