decisionlogs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "print_decision_logs_on_failure"

Variables

This section is empty.

Functions

func New added in v0.0.6

func New(m *plugins.Manager, cfg *Config) plugins.Plugin

Types

type Config

type Config struct {
	// true => failed decision logs printed, false => failed decision logs are not printed
	Stdout bool `json:"stdout"`
}

func Validate added in v0.0.6

func Validate(_ *plugins.Manager, bs []byte) (*Config, error)

type PrintlnLogger

type PrintlnLogger struct {
	// contains filtered or unexported fields
}

func (*PrintlnLogger) Log

func (p *PrintlnLogger) Log(ctx context.Context, event logs.EventV1) error

func (*PrintlnLogger) Reconfigure

func (p *PrintlnLogger) Reconfigure(ctx context.Context, config interface{})

func (*PrintlnLogger) Start

func (p *PrintlnLogger) Start(ctx context.Context) error

func (*PrintlnLogger) Stop

func (p *PrintlnLogger) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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