genapid

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPredicate

func InitPredicate(log zerolog.Logger, c *ctx.Ctx,
	p Predicate, cfg *conf.Params) bool

InitPredicate sets the parameters from the conf

Types

type Predicate

type Predicate interface {
	Name() string
	Call(zerolog.Logger, *ctx.Ctx) bool
	Result() ctx.Result
	Params() interface{}
}

Predicate is the interface of a predicate plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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