decision_log

package
v0.0.0-...-354c446 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "best_decision_log"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `json:"enabled"`
}

type DecisionLogger

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

func Lookup

func Lookup(m *plugins.Manager) (*DecisionLogger, error)

func (*DecisionLogger) Log

func (dl *DecisionLogger) Log(ctx context.Context, event *Event) error

func (*DecisionLogger) Reconfigure

func (dl *DecisionLogger) Reconfigure(ctx context.Context, config interface{})

func (*DecisionLogger) Start

func (dl *DecisionLogger) Start(ctx context.Context) error

func (*DecisionLogger) Stop

func (dl *DecisionLogger) Stop(ctx context.Context)

type Event

type Event struct {
	DecisionID string
	Timestamp  time.Time
}

type PluginFactory

type PluginFactory struct{}

func NewPluginFactory

func NewPluginFactory() PluginFactory

func (PluginFactory) New

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

func (PluginFactory) Validate

func (PluginFactory) Validate(m *plugins.Manager, config []byte) (interface{}, error)

Jump to

Keyboard shortcuts

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