mini

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	Viper  *viper.Viper
	Logger log.API
	Plugs  []schema.NewPlug
}

type Dag

type Dag struct {
	Id    string
	Steps []string
}

type Mini

type Mini struct {
	Plugs []schema.NewPlug
	// contains filtered or unexported fields
}

func NewMinimal

func NewMinimal(fn func(cfg *Cfg)) (*Mini, error)

func (*Mini) FInit

func (m *Mini) FInit() error

func (*Mini) Init

func (m *Mini) Init() error

func (*Mini) Process

func (m *Mini) Process(dag Dag, msg *proto.Msg, opts ...Opt) ([]byte, error)

type Opt

type Opt interface {
	// contains filtered or unexported methods
}

func WithKv

func WithKv(k interface{}, v interface{}) Opt

Jump to

Keyboard shortcuts

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