Documentation ¶
Index ¶
- Constants
- func Call(handle uint32, fname string, args interface{}, reply interface{}) error
- func CallByName(name string, fname string, args interface{}, reply interface{}) error
- func Exit()
- func KillActor(h uint32, force bool)
- func KillActorByName(name string, force bool)
- func NewActor(actorName string, args interface{}) uint32
- func QueryName(name string) (uint32, error)
- func RegActor(name string, fptr ActorNewFunc)
- func RegName(handle uint32, name string) error
- func Run(mainActor string, maxThread int, debugEnable bool, debugPort string)
- func Send(handle uint32, fname string, args interface{}) error
- func SendByName(name string, fname string, args interface{}) error
- func WaitActorQuit(handle uint32) error
- func WaitAllQuit()
- type Actor
- type ActorFactory
- type ActorMethodCallback
- type ActorNewFunc
- type HandleStorage
- type IActor
- type IActorMethod
- type SpinLock
Constants ¶
View Source
const ( HANDLE_MASK uint32 = 0xFFFFFF DEFAULT_SLOT_SIZE uint32 = 4 )
Variables ¶
This section is empty.
Functions ¶
func CallByName ¶
func KillActorByName ¶
func RegActor ¶
func RegActor(name string, fptr ActorNewFunc)
func SendByName ¶
func WaitActorQuit ¶
func WaitAllQuit ¶
func WaitAllQuit()
Types ¶
type Actor ¶
type Actor struct {
// contains filtered or unexported fields
}
func (*Actor) RegMethod ¶
func (a *Actor) RegMethod(name string, callback ActorMethodCallback)
type ActorFactory ¶
type ActorFactory struct {
// contains filtered or unexported fields
}
type ActorMethodCallback ¶
type ActorMethodCallback func(args interface{}, reply interface{}) error
type ActorNewFunc ¶
type ActorNewFunc func() IActor
type HandleStorage ¶
type HandleStorage struct {
// contains filtered or unexported fields
}
type IActorMethod ¶
type IActorMethod interface {
Process() error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.