pkg

package
v0.0.0-...-d1ddab4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CType

type CType string

CType type MEMORY or DATABASE

const (
	// MEMORY type for in memory based on sqlite
	MEMORY CType = "MEMORY"
	// DATABASE type based on different types of db
	DATABASE CType = "DATABASE"

	// EMPTYSTRING string
	EMPTYSTRING = ""
)

type CduleConfig

type CduleConfig struct {
	// Whether to run scheduler immediately at startup; by default only run
	// after each tick (e.g if ticker is 60 seconds then first run has to wait
	// 60 seconds).
	RunImmediately bool `yaml:"runimmediately"`
	// The tick/refresh rate of workers, as a string acceptable by time.ParseDuration()
	TickDuration     string          `yaml:"tickduration"`
	Cduletype        string          `yaml:"cduletype"`
	Dburl            string          `yaml:"dburl"` // underscore creates the problem for e.f. db_url, so should be avoided
	Cduleconsistency string          `yaml:"cduleconsistency"`
	Loglevel         logger.LogLevel `yaml:"loglevel"` // gorm log level
	WatchPast        bool            `yaml:"watchpast"`
	TablePrefix      string          `yaml:"tableprefix"`
}

CduleConfig cdule configuration

func NewDefaultConfig

func NewDefaultConfig() *CduleConfig

func ResolveConfig

func ResolveConfig(config ...*CduleConfig) *CduleConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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