Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyStringBytes = []byte("")
)
Functions ¶
This section is empty.
Types ¶
type FaultRequestHandler ¶
type FaultRequestHandler struct {
// contains filtered or unexported fields
}
func (*FaultRequestHandler) Handle ¶
func (handler *FaultRequestHandler) Handle(payload []byte, ctx context.RuntimeContext) (interface{}, error)
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func NewFunction ¶
func NewFunction(handler IRequestHandler) *Function
func (*Function) HealthCheck ¶
func (fn *Function) HealthCheck(req *common.HealthCheckRequest, resp *common.HealthCheckResponse) error
func (*Function) Invoke ¶
func (fn *Function) Invoke(req *common.InvokeRequest, resp *common.InvokeResponse) (funcErr error)
type FunctionLoadFailedError ¶
func (*FunctionLoadFailedError) Error ¶
func (e *FunctionLoadFailedError) Error() string
type HandlerFunc ¶
type HandlerFunc func([]byte, context.RuntimeContext) (interface{}, error)
HandlerFunc implements Handler.
type IRequestHandler ¶
type IRequestHandler interface {
Handle(payload []byte, ctx context.RuntimeContext) (interface{}, error)
}
func NewHandler ¶
func NewHandler(handlerFunc interface{}) IRequestHandler
type InvokeError ¶
func (*InvokeError) Error ¶
func (e *InvokeError) Error() string
type InvokeErrorMessage ¶
type RequestHandler ¶
type RequestHandler struct {
// contains filtered or unexported fields
}
func (*RequestHandler) Handle ¶
func (handler *RequestHandler) Handle(payload []byte, ctx context.RuntimeContext) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.