/ zookeeper

zookeeper node client constant

https://github.com/yfinkelstein/node-zookeeper

// Events (for backwards compatibility.  deprecated.  use the strings directly)
on_closed: 'close',
on_connected: 'connect',
on_connecting: 'connecting',
on_event_created: 'created',
on_event_deleted: 'deleted',
on_event_changed: 'changed',
on_event_child: 'child',
on_event_notwatching: 'notwatching',

ZOO_OPEN_ACL_UNSAFE: { perms: 31, scheme: 'world', auth: 'anyone' },
ZOO_READ_ACL_UNSAFE: { perms: 1, scheme: 'world', auth: 'anyone' },
ZOO_CREATOR_ALL_ACL: { perms: 31, scheme: 'auth', auth: '' },

// EVENT
ZOO_CREATED_EVENT: 1,
ZOO_DELETED_EVENT: 2,
ZOO_CHANGED_EVENT: 3,
ZOO_CHILD_EVENT: 4,
ZOO_SESSION_EVENT: -1,
ZOO_NOTWATCHING_EVENT: -2,

// Permission
ZOO_PERM_READ: 1,
ZOO_PERM_WRITE: 2,
ZOO_PERM_CREATE: 4,
ZOO_PERM_DELETE: 8,
ZOO_PERM_ADMIN: 16,
ZOO_PERM_ALL: 31,

ZOOKEEPER_WRITE: 1,
ZOOKEEPER_READ: 2,

// Dunno
ZOO_EPHEMERAL: 1,
ZOO_SEQUENCE: 2,

// STATE
ZOO_EXPIRED_SESSION_STATE: -112,
ZOO_AUTH_FAILED_STATE: -113,
ZOO_CONNECTING_STATE: 1,
ZOO_ASSOCIATING_STATE: 2,
ZOO_CONNECTED_STATE: 3,

// LOG LEVEL
ZOO_LOG_LEVEL_ERROR: 1,
ZOO_LOG_LEVEL_WARN: 2,
ZOO_LOG_LEVEL_INFO: 3,
ZOO_LOG_LEVEL_DEBUG: 4,

// API Response Code
ZOK: 0,
ZSYSTEMERROR: -1,
ZRUNTIMEINCONSISTENCY: -2,
ZDATAINCONSISTENCY: -3,
ZCONNECTIONLOSS: -4,
ZMARSHALLINGERROR: -5,
ZUNIMPLEMENTED: -6,
ZOPERATIONTIMEOUT: -7,
ZBADARGUMENTS: -8,
ZINVALIDSTATE: -9,
ZAPIERROR: -100,
ZNONODE: -101,
ZNOAUTH: -102,
ZBADVERSION: -103,
ZNOCHILDRENFOREPHEMERALS: -108,
ZNODEEXISTS: -110,
ZNOTEMPTY: -111,
ZSESSIONEXPIRED: -112,
ZINVALIDCALLBACK: -113,
ZINVALIDACL: -114,
ZAUTHFAILED: -115,
ZCLOSING: -116,
ZNOTHING: -117,
ZSESSIONMOVED: -118,