mysql

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dsn

func Dsn() string

Dsn returns the data source name of the storage specified in the configuration.

func New

func New(definition *model.Queue, dsn string) jobqueue.Impl

New creates a jobqueue.Impl which uses MySQL as a data store.

func NewPrimaryBackup

func NewPrimaryBackup(definition *model.Queue, dsn string) jobqueue.Impl

NewPrimaryBackup creates a jobqueue.Impl which uses MySQL as a data store and restricts only one node to be active in a cluster.

Inactive nodes become backup nodes, which will be active when the active node dies.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL