nightwatch

package
v0.0.0-...-c1a7e98 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

type CompletedConfig struct {
	*Config
}

CompletedConfig same as Config, just to swap private object.

type Config

type Config struct {
	MySQLOptions *genericoptions.MySQLOptions
	RedisOptions *genericoptions.RedisOptions
	// The maximum concurrency event of user watcher.
	UserWatcherMaxWorkers int64
	// The list of watchers that should be disabled.
	DisableWatchers []string
}

Config is the configuration for the nightwatch server.

func (*Config) Complete

func (c *Config) Complete() *CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

func (*Config) CreateWatcherConfig

func (c *Config) CreateWatcherConfig() (*watcher.Config, error)

CreateWatcherConfig used to create configuration used by all watcher.

func (*Config) New

func (c *Config) New() (*nightWatch, error)

New creates an asynchronous task instance.

Directories

Path Synopsis
Package watcher provides functions used by all watchers.
Package watcher provides functions used by all watchers.
all
historyclean
Package historyclean is a watcher implement used to delete expired record from the database.
Package historyclean is a watcher implement used to delete expired record from the database.
user
Package user is a watcher implement.
Package user is a watcher implement.

Jump to

Keyboard shortcuts

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