Documentation ¶
Index ¶
- type Module
- func (m *Module) AddInternalRule(service string, rule *config.Service)
- func (m *Module) Call(service, function, token string, params interface{}, timeout int) (interface{}, error)
- func (m *Module) CallWithContext(ctx context.Context, service, function, token string, params interface{}) (interface{}, error)
- func (m *Module) SetConfig(project string, c *config.ServicesModule)
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 (*Module) AddInternalRule ¶ added in v0.13.0
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.
Click to show internal directories.
Click to hide internal directories.