Documentation ¶
Index ¶
- type Module
- func (m *Module) CallWithContext(ctx context.Context, service, function, token string, ...) (int, interface{}, error)
- func (m *Module) GetEndpointContextTimeout(ctx context.Context, projectID, service, function string) (int, error)
- func (m *Module) SetCachingModule(c cachingInterface)
- func (m *Module) SetConfig(project string, c config.Services) error
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
Click to show internal directories.
Click to hide internal directories.