context

package
v0.0.0-...-372ebbf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent = agent.Agent

type AgentID

type AgentID = agent.AgentID

type Component

type Component = component.Component

type Context

type Context interface {
	GetModule() Module
	GetSender() Agent
	GetComponent() Component
	GetAttach() interface{}
	Store(int, interface{})
	Get(int) interface{}
	Done(args ...interface{})
}

type Module

type Module interface {
	GetID() AgentID
	GetName() string
	RpcCall(string, ...interface{})
	AwaitRpcCall(string, ...interface{}) []interface{}
	AddTimer(delay uint64, op TimerHandler, args ...interface{}) uint64
	RemoveTimer(timer_id uint64) bool
}

type TimerHandler

type TimerHandler = timer.TimerHandler

Jump to

Keyboard shortcuts

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