uniq

package
v1.5.5-fossa.8 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// whether or not to enable the plugin
	Enabled bool
}

type UniqSubsystem

type UniqSubsystem struct {
	Server *server.Server
	// uniq plugin options
	Options *Options
}

The UniqSubsytem generates a lock using redis to ensure jobs from the same queue, params and name are not queued more than once it follows the spec found at: https://github.com/contribsys/faktory/wiki/Ent-Unique-Jobs

func (*UniqSubsystem) Name

func (u *UniqSubsystem) Name() string

returns the name of the subsystem or plugin

func (*UniqSubsystem) Reload

func (u *UniqSubsystem) Reload(s *server.Server) error

reload - nothing needs to be done but the function must exist for subsystems

func (*UniqSubsystem) Shutdown

func (u *UniqSubsystem) Shutdown(s *server.Server) error

shutdown - nothing needs to be done but the function must exist for subsystems

func (*UniqSubsystem) Start

func (u *UniqSubsystem) Start(s *server.Server) error

starts the subsystem and adds the needed middleware

Jump to

Keyboard shortcuts

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