custom

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomBouncer

type CustomBouncer struct {
	Path        string
	BinaryStdin io.Writer
	// contains filtered or unexported fields
}

func NewCustomBouncer

func NewCustomBouncer(cfg *cfg.BouncerConfig) (*CustomBouncer, error)

func (*CustomBouncer) Add

func (c *CustomBouncer) Add(decision *models.Decision) error

func (*CustomBouncer) Delete

func (c *CustomBouncer) Delete(decision *models.Decision) error

func (*CustomBouncer) Init

func (c *CustomBouncer) Init() error

func (*CustomBouncer) ResetCache

func (c *CustomBouncer) ResetCache()

func (*CustomBouncer) ShutDown

func (c *CustomBouncer) ShutDown() error

type DecisionKey

type DecisionKey struct {
	Value string
	Type  string
}

type DecisionWithAction

type DecisionWithAction struct {
	models.Decision
	ID     int64  `json:"id"`
	Action string `json:"action,omitempty"`
}

Jump to

Keyboard shortcuts

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