Documentation ¶
Index ¶
- Constants
- Variables
- func DestroyMessageDispatchWork(m *MessageDispatchWork)
- func DestroyMessagePostWork(m *MessagePostWork)
- func Dispatch(rootContext *sadefine.RootContext, pid *sadefine.PID, timeout time.Duration, ...) error
- func Post(rootContext *sadefine.RootContext, pid *sadefine.PID, work IPostWork) error
- type DispatchFunc
- type IDispatchWork
- type IPostWork
- type MessageDispatchWork
- type MessagePostWork
- type PostFunc
Constants ¶
View Source
const (
DefaultDispatchTimeout = 30 * time.Second
)
Variables ¶
View Source
var ( ErrDoNotPostOrDispatchNilWork = errors.New("do not post or dispatch nil work") ErrDispatchResultNotMatch = errors.New("dispatch result not match") )
Functions ¶
func DestroyMessageDispatchWork ¶
func DestroyMessageDispatchWork(m *MessageDispatchWork)
func DestroyMessagePostWork ¶
func DestroyMessagePostWork(m *MessagePostWork)
func Dispatch ¶
func Dispatch(rootContext *sadefine.RootContext, pid *sadefine.PID, timeout time.Duration, work IDispatchWork) error
Types ¶
type DispatchFunc ¶
type IDispatchWork ¶
type MessageDispatchWork ¶
type MessageDispatchWork struct { Err error Work IDispatchWork }
func CreateMessageDispatchWork ¶
func CreateMessageDispatchWork(work IDispatchWork) *MessageDispatchWork
type MessagePostWork ¶
type MessagePostWork struct {
Work IPostWork
}
func CreateMessagePostWork ¶
func CreateMessagePostWork(work IPostWork) *MessagePostWork
Click to show internal directories.
Click to hide internal directories.