functions

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: Apache-2.0 Imports: 11 Imported by: 2

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(auth *auth.Module, manager *syncman.Manager) *Module

Init returns a new instance of the Functions module

func (*Module) AddInternalRule added in v0.13.0

func (m *Module) AddInternalRule(service string, rule *config.Service)

func (*Module) Call

func (m *Module) Call(service, function, token string, params interface{}, timeout int) (interface{}, error)

Call simply calls a function on a service

func (*Module) CallWithContext added in v0.12.0

func (m *Module) CallWithContext(ctx context.Context, service, function, token string, params interface{}) (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) SetConfig

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

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