mysql

package
v0.0.0-...-077b43f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mysql implements a job store with mysql as backend.

Index

Constants

View Source
const (
	AppPool = "AppShard"
)

Variables

This section is empty.

Functions

func App_id

func App_id(appid string) int

App_id convert a string appid to hash int which is used to locate shard.

func HistoryTable

func HistoryTable(topic string) string

HistoryTable converts a topic name to a mysql history table name.

func JobTable

func JobTable(topic string) string

JobTable converts a topic name to a mysql table name.

func New

func New(id string, cf *config.ConfigMysql) (job.JobStore, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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