scheduler

package module
v0.0.0-...-7d5fad3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 9 Imported by: 0

README

Rumors scheduler plugin

Installation

go get github.com/rumorsflow/scheduler

Documentation

Index

Constants

View Source
const PluginName = "scheduler"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable       bool          `mapstructure:"enable"`
	SyncInterval time.Duration `mapstructure:"sync"`
}

func (*Config) InitDefault

func (cfg *Config) InitDefault()

type Plugin

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

func (*Plugin) Init

func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger, client redis.UniversalClient, provider asynq.PeriodicTaskConfigProvider) error

func (*Plugin) Name

func (p *Plugin) Name() string

Name returns user-friendly plugin name

func (*Plugin) Serve

func (p *Plugin) Serve() chan error

func (*Plugin) Stop

func (p *Plugin) Stop() error

Jump to

Keyboard shortcuts

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