lua

package
v0.0.0-...-eaa370e Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2015 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONFIRM_SCRIPT = func() *redigo.Script {
		b, err := ioutil.ReadFile(config.LUA_PATH + "/confirm.lua")
		if err != nil {
			log.Fatal(err)
		}
		return redigo.NewScript(1, string(b))
	}()
)
View Source
var (
	GET_BY_FUZZY_KEY_SCRIPT = func() *redigo.Script {
		b, err := ioutil.ReadFile(config.LUA_PATH + "/getByFuzzyKey.lua")
		if err != nil {
			log.Fatal(err)
		}
		return redigo.NewScript(1, string(b))
	}()
)
View Source
var (
	// pop and lock pops a key off of a list, puts it in a temporary key, and sets a lock
	// ARGS: 0 list key 1 ttl = 30 seconds if not given
	GET_ORPHAN_SCRIPT = func() *redigo.Script {
		b, err := ioutil.ReadFile(config.LUA_PATH + "/getOrphan.lua")
		if err != nil {
			log.Fatal(err)
		}
		return redigo.NewScript(0, string(b))
	}()
)
View Source
var (
	KEEP_ALIVE_SCRIPT = func() *redigo.Script {
		b, err := ioutil.ReadFile(config.LUA_PATH + "/keepAlive.lua")
		if err != nil {
			log.Fatal(err)
		}
		return redigo.NewScript(1, string(b))
	}()
)
View Source
var (
	// pop and lock pops a key off of a list, puts it in a temporary key, and sets a lock
	// ARGS: 0 list key 1 ttl = 30 seconds if not given
	POP_AND_LOCK_SCRIPT = func() *redigo.Script {
		b, err := ioutil.ReadFile(config.LUA_PATH + "/popAndLock.lua")
		if err != nil {
			log.Fatal(err)
		}
		return redigo.NewScript(1, string(b))
	}()
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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