service

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName      = "[project]"
	ProjectNamespace = "[PROJECT]"
	EnvConfigAlias   = "*npkg.EnvStore"
)

Variables

View Source
var HelloWorldRequest = actions.WorkerRequest{
	ActionName:  "helloWorld",
	PubSubTopic: "hello-world",
	WorkerCreator: func(config actions.WorkerConfig) *actions.WorkerGroup {
		config.Action = actions.ActionFunc(helloWorldAction)
		return actions.NewWorkGroup(config)
	},
}
View Source
var Logger = &loggerImpl{}

Functions

func AddActions

func AddActions(registry *actions.WorkerTemplateRegistry)

func AfterInit

func AfterInit(station *ochestrator.Station, envConfig *nenv.EnvStore) error

func BeforeInit

func BeforeInit(station *ochestrator.Station, envConfig *nenv.EnvStore) error

func UseCodec

func UseCodec(ctx context.Context, logger sabuhp.Logger) (sabuhp.Codec, error)

func UseInjector

func UseInjector(ctx context.Context, logger sabuhp.Logger, envConfig *nenv.EnvStore) (*injectors.Injector, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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