Documentation ¶
Index ¶
- type ExceedConcurrencyLimit
- type Meta
- func (m *Meta) GetFuncName() string
- func (m *Meta) GetRuntime() string
- func (m *Meta) InvokeFunc(ctx context.Context, funcName string, payload []byte) ([]byte, error)
- func (m *Meta) LoadFunc(ctx context.Context, funcName string, url string) error
- func (m *Meta) SetConcurrencyLimit(limit int64)
- func (m *Meta) SetEnvVariable(ctx context.Context, envs []string) error
- func (m *Meta) SetTimeout(timeout int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExceedConcurrencyLimit ¶
type ExceedConcurrencyLimit struct { }
ExceedConcurrencyLimit means the number of waitting task beyonds the concurrencyLimit
func (*ExceedConcurrencyLimit) Error ¶
func (e *ExceedConcurrencyLimit) Error() string
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta is an abstract handler of a specified env container
func NewMeta ¶
NewMeta returns a container handler which maintains a rpc connection with the container
func (*Meta) GetRuntime ¶
func (*Meta) InvokeFunc ¶
InvokeFunc exec the func in container
func (*Meta) SetConcurrencyLimit ¶
SetConcurrencyLimit this limit influence the invoke, pls refer to invoke
func (*Meta) SetEnvVariable ¶
SetEnvVariable overwrite some envs in container
func (*Meta) SetTimeout ¶
SetTimeout timeout is used to limit the invokecation exec time
Click to show internal directories.
Click to hide internal directories.