worker

package
v0.0.0-...-230471f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AUTHKEY = "auth-key"

AUTHKEY the redis key for the cache

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	AppID     string
	Secret    string
	Frequency int
}

Worker ...

func Init

func Init(uri, password string, db int, appID, secret string, frequency int) *Worker

Init initializes and returns the worker

func (*Worker) GetToken

func (w *Worker) GetToken() (string, error)

GetToken ...

func (*Worker) Start

func (w *Worker) Start(ch chan bool)

Start ...

Jump to

Keyboard shortcuts

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