function

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 NewHandlers(server Server) *Handlers

func (*Handlers) HandleAddFunction

func (h *Handlers) HandleAddFunction(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleGetFunctions

func (h *Handlers) HandleGetFunctions(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleRemoveFunction

func (h *Handlers) HandleRemoveFunction(c backends.Context, recoveredID string, payloadType string, jsonString string)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL