Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressingMap ¶
type AddressingMap interface { GetSUUIDsByPair(address common.Address, pUUID core.PUUID) ([]core.SUUID, error) Insert(addr common.Address, pUUID core.PUUID, sUUID core.SUUID) error }
AddressingMap ... Interface for mapping addresses to session UUIDs
type Manager ¶
type Manager interface { GetInputType(ht core.HeuristicType) (core.RegisterType, error) Transit() chan core.HeuristicInput DeleteHeuristicSession(core.SUUID) (core.SUUID, error) DeployHeuristicSession(cfg *heuristic.DeployConfig) (core.SUUID, error) core.Subsystem }
Manager ... Engine manager interface
func NewManager ¶
func NewManager(ctx context.Context, engine RiskEngine, addr AddressingMap, store SessionStore, it registry.HeuristicTable, alertOutgress chan core.Alert) Manager
NewManager ... Initializer
type RiskEngine ¶
type RiskEngine interface { Type() Type Execute(context.Context, core.TransitData, heuristic.Heuristic) (*core.Activation, bool) }
RiskEngine ... Execution engine interface
type SessionStore ¶
type SessionStore interface { AddSession(sUUID core.SUUID, pID core.PUUID, h heuristic.Heuristic) error GetInstanceByUUID(sUUID core.SUUID) (heuristic.Heuristic, error) GetInstancesByUUIDs(sUUIDs []core.SUUID) ([]heuristic.Heuristic, error) GetSUUIDsByPUUID(pUUID core.PUUID) ([]core.SUUID, error) }
SessionStore ...
Click to show internal directories.
Click to hide internal directories.