commandadapter

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPolicy

func ApplyPolicy(policy policy.Policy, eventMapper func(events.Event) effects.Effect) effects.Effect

ApplyPolicy apply a policy and convert the resulting event to an effect

func ResolveAlias

func ResolveAlias(alias string) (string, error)

ResolveAlias lookup "team.alias.<alias>" globally

func ResolveAliases

func ResolveAliases(aliases []string) ([]string, []error)

ResolveAliases convenience function to resolve multiple aliases and accumulate errors

func Run

func Run(policy policy.Policy, eventMapper func(events.Event) effects.Effect) error

Run apply a policy, convert the resulting event to an effect and run that effect

Types

This section is empty.

Jump to

Keyboard shortcuts

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