Documentation ¶
Index ¶
- Variables
- func AddInstanceByID(ctx context.Context, id types.SFID, i wasm.Instance)
- func DelInstance(ctx context.Context, id types.SFID) error
- func FetchInstances() map[types.SFID]enums.InstanceState
- func GetConsumer(id types.SFID) wasm.Instance
- func GetInstanceState(id types.SFID) (enums.InstanceState, bool)
- func NewInstance(ctx context.Context, code []byte, id types.SFID, state enums.InstanceState) error
- func StartInstance(ctx context.Context, id types.SFID) error
- func StopInstance(ctx context.Context, id types.SFID) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("instance not found")
)
Functions ¶
func FetchInstances ¶
func FetchInstances() map[types.SFID]enums.InstanceState
func GetInstanceState ¶
func GetInstanceState(id types.SFID) (enums.InstanceState, bool)
func NewInstance ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.