functions

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module is responsible for functions

func Init

func Init(clusterID string, auth model.AuthFunctionInterface, manager *syncman.Manager, integrationMan integrationManagerInterface, hook model.MetricFunctionHook) *Module

Init returns a new instance of the Functions module

func (*Module) CallWithContext

func (m *Module) CallWithContext(ctx context.Context, service, function, token string, reqParams model.RequestParams, req *model.FunctionsRequest) (int, interface{}, error)

CallWithContext invokes function on a service. The response from the function is returned back along with any errors if they occurred.

func (*Module) GetEndpointContextTimeout

func (m *Module) GetEndpointContextTimeout(ctx context.Context, projectID, service, function string) (int, error)

GetEndpointContextTimeout returns the endpoint timeout of particular remote-service

func (*Module) SetCachingModule

func (m *Module) SetCachingModule(c cachingInterface)

SetCachingModule sets caching module

func (*Module) SetConfig

func (m *Module) SetConfig(project string, c config.Services) error

SetConfig sets the configuration of the functions module

Jump to

Keyboard shortcuts

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