handlers

package
v0.0.0-...-6dc577f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoPrint

func DoPrint(ctx context.Context, emitter concur.Emitter, e bus.Event)

func DoSomething

func DoSomething(ctx context.Context, emitter concur.Emitter, e bus.Event)

Types

type Construct

type Construct struct {
	DB  string
	AWS string
}

an example of using structs instead of pure funcs as event handlers

func NewConstruct

func NewConstruct(db, aws string) *Construct

func (Construct) Handle

func (c Construct) Handle() concur.Handler

type ConstructEvent

type ConstructEvent struct {
	Value string
}

Jump to

Keyboard shortcuts

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