decisionlogs

package
v0.0.0-...-b5797a4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PluginName = "print_decision_logs_on_failure"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Factory

type Factory struct{}

func (Factory) New

func (Factory) New(m *plugins.Manager, config interface{}) plugins.Plugin

func (Factory) Validate

func (Factory) Validate(_ *plugins.Manager, config []byte) (interface{}, 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