Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2020 Changes in this version + func ClearResources() + type Microgateway struct + Name string + Responses []*Response + Services []*Service + Steps []*Step + func GetResource(name string) *Microgateway + func New(name string) *Microgateway + func (m *Microgateway) AddResource(app *api.App, inputSettings ...map[string]interface{}) (map[string]interface{}, error) + func (m *Microgateway) NewResponse(isError bool) *Response + func (m *Microgateway) NewService(name string, act interface{}) *Service + func (m *Microgateway) NewStep(service *Service) *Step + type Output struct + Code interface{} + Data interface{} + type Response struct + Condition string + Error bool + Output Output + func (r *Response) SetCode(code interface{}) + func (r *Response) SetData(data interface{}) + func (r *Response) SetIf(condition string) + type Service struct + Description string + Handler ServiceFunc + Name string + Ref string + Settings map[string]interface{} + func (s *Service) AddSetting(name string, value interface{}) + func (s *Service) SetDescription(description string) + type ServiceFunc func(ctx activity.Context) (done bool, err error) + type Step struct + Condition string + HaltCondition string + Input map[string]interface{} + Service string + func (s *Step) AddInput(name string, value interface{}) + func (s *Step) SetHalt(condition string) + func (s *Step) SetIf(condition string) v0.1.0-rc.1 Jan 28, 2020