Hydra class

Hydra is the main module used to support microservices functionality using Redis

Constructors

Hydra()

Properties

hashCode int
The hash code for this object.
no setterinherited
healthTick int
getter/setter pair
hostName String
getter/setter pair
hydraRoutes List<String>
getter/setter pair
ip String
getter/setter pair
periodicTimer Timer
getter/setter pair
port int
getter/setter pair
processID int
getter/setter pair
redis ↔ RedisConnection
getter/setter pair
redisCommand ↔ Command
getter/setter pair
redisDB int
getter/setter pair
routerInstance ↔ Router
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverInstanceID String
getter/setter pair
serviceDescription String
getter/setter pair
serviceName String
getter/setter pair
version String
getter/setter pair

Methods

addRoute(String path, String method, Function handler) → dynamic
addRoute
bindRouter(Router router) → dynamic
bindRouter
flushRoutes() → dynamic
flushRoutes
getLocalIP() Future
getLocalIP
health() → dynamic
health
heartBeat(dynamic timer) → dynamic
heartBeat
init(Map<String, dynamic> configMap) → dynamic
init is used to initialize the Hydra module init accepts a map which is created from reading a JSON based configuration file
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presence() → dynamic
presence
registerRoutes() → dynamic
registerRoutes
shutdown() → dynamic
shutdown
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

heatlhUpdateInterval → const int
keyExperationTTL → const int
mcMessageKey → const String
oneSecond → const int
oneWeekInSeconds → const int
presenceUpdateInterval → const int
redisPreKey → const String