config

package
v0.0.0-...-d93df49 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RunnerConfig
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func NewDefaultConfig

func NewDefaultConfig() *Config

type RunnerConfig

type RunnerConfig struct {
	RequestQueueSize        int
	AnswerQueueSize         int
	QueryTimeoutInMS        int
	ChanBPWaitTimeInMS      int
	SleepOfEventHandlerInMS int
	AllowSameNode           bool
	AllowSameFlow           bool
}

type ValidatedValue

type ValidatedValue string

func (*ValidatedValue) UnmarshalJSON

func (vv *ValidatedValue) UnmarshalJSON(b []byte) error

type Validator

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

func (*Validator) AddFuncByType

func (v *Validator) AddFuncByType(vType string, valFunc ValidatorFunc)

func (*Validator) Validate

func (v *Validator) Validate(vType string) bool

type ValidatorFunc

type ValidatorFunc func(string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳