Documentation ¶
Index ¶
Constants ¶
View Source
const CRASHED = "crashed"
CRASHED crashed
View Source
const DISABLED = "disabled"
DISABLED disabled
View Source
const ENABLED = "enabled"
ENABLED enabled
View Source
const ONLINE = "online"
ONLINE online
View Source
const RUNNING = "running"
RUNNING running
View Source
const STOPPED = "stopped"
STOPPED stopped
Variables ¶
This section is empty.
Functions ¶
func CheckThreads ¶
func CheckThreads(w *Wart)
CheckThreads Checks threads in redis for any that need ran.
Types ¶
type EndpointMeta ¶
EndpointMeta represents an endpoint
type SQLWrapper ¶
type SQLWrapper struct {
// contains filtered or unexported fields
}
SQLWrapper wrapper struct
func (*SQLWrapper) Close ¶
func (sw *SQLWrapper) Close() error
Close - library implementation of sql close
func (*SQLWrapper) Exec ¶
func (sw *SQLWrapper) Exec(query string, args ...interface{}) otto.Value
Exec - library implementation of sql queries
func (*SQLWrapper) Ping ¶
func (sw *SQLWrapper) Ping() error
Ping - library implementation of sql pings
type TaskInterface ¶
type TaskInterface interface {
// contains filtered or unexported methods
}
TaskInterface Everything we do is a task. This the interface.
type ThreadMeta ¶
ThreadMeta struct that represents a thread
type Wart ¶
type Wart struct { RedisAddr string RedisPassword string Cluster string WartName string ScriptList string Client *redis.Client Healthy bool ThreadCount int SecondsTillDead int VMStopChan chan func() // contains filtered or unexported fields }
Wart main structure for wart
Click to show internal directories.
Click to hide internal directories.