Documentation
¶
Index ¶
- type Controller
- type Handlers
- func (h *Handlers) HandleAddFunction(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleGetFunctions(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) HandleRemoveFunction(c backends.Context, recoveredID string, payloadType string, jsonString string)
- func (h *Handlers) RegisterHandlers(handlerRegistry *registry.HandlerRegistry) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
AddFunction(function *core.Function) (*core.Function, error)
GetFunction(functionID string) (*core.Function, error)
GetFunctions(colonyName string, executorName string, count int) ([]*core.Function, error)
GetFunctionsByColonyName(colonyName string) ([]*core.Function, error)
RemoveFunction(functionID string, initiatorID string) error
}
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func (*Handlers) HandleAddFunction ¶
func (*Handlers) HandleGetFunctions ¶
func (*Handlers) HandleRemoveFunction ¶
func (*Handlers) RegisterHandlers ¶
func (h *Handlers) RegisterHandlers(handlerRegistry *registry.HandlerRegistry) error
RegisterHandlers implements the HandlerRegistrar interface
type Server ¶
type Server interface {
HandleHTTPError(c backends.Context, err error, errorCode int) bool
SendHTTPReply(c backends.Context, payloadType string, jsonString string)
SendEmptyHTTPReply(c backends.Context, payloadType string)
Validator() security.Validator
FunctionController() Controller
FunctionDB() database.FunctionDatabase
ExecutorDB() database.ExecutorDatabase
UserDB() database.UserDatabase
}
Click to show internal directories.
Click to hide internal directories.