Documentation ¶
Index ¶
- func AsyncExecute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) (chan *common_type.AbilityResponse, error)
- func CancelAbility(instanceID string)
- func CheckAbility(abilities []*types.Ability) bool
- func GetConfig(instanceID, abilityID string) (map[string]string, error)
- func InitAbility()
- func RegisterAbility(instanceID string, abilities []*types.Ability)
- func SyncExecute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) ([]byte, error)
- type Ability
- func (a *Ability) Cancel(instanceID string)
- func (a *Ability) Check(abilities []*types.Ability) bool
- func (a *Ability) Execute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) (chan *common_type.AbilityResponse, error)
- func (a *Ability) GetConfig(instanceID, abilityID string) (map[string]string, error)
- func (a *Ability) Register(instanceID string, abilities []*types.Ability)
- func (a *Ability) Search(instanceID, abilityID string) (*types.Ability, error)
- func (a *Ability) SyncExecute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncExecute ¶
func AsyncExecute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) (chan *common_type.AbilityResponse, error)
func CancelAbility ¶
func CancelAbility(instanceID string)
func CheckAbility ¶
func InitAbility ¶
func InitAbility()
func RegisterAbility ¶
Types ¶
type Ability ¶
type Ability struct {
// contains filtered or unexported fields
}
func NewAbility ¶
func NewAbility() *Ability
func (*Ability) Execute ¶
func (a *Ability) Execute(instanceID, abilityID, abilityType, abilityFuncKey string, arg []byte) (chan *common_type.AbilityResponse, error)
Click to show internal directories.
Click to hide internal directories.