Documentation
¶
Index ¶
- type GatewayMixin
- type HttpService
- func (svc *HttpService) ActionPaths() []string
- func (svc *HttpService) Dependencies() []string
- func (svc *HttpService) Events() []moleculer.Event
- func (svc HttpService) Name() string
- func (svc *HttpService) Started(context moleculer.BrokerContext, schema moleculer.ServiceSchema)
- func (svc *HttpService) Stopped(context moleculer.BrokerContext, schema moleculer.ServiceSchema)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayMixin ¶
type GatewayMixin interface {
// RouterStarting receives a moleculer.context and mux.Router and is expected to publish a route/path using the mux.Router.
RouterStarting(moleculer.BrokerContext, *mux.Router)
}
type HttpService ¶
type HttpService struct {
Settings map[string]interface{}
Mixins []GatewayMixin
Deps []string
// contains filtered or unexported fields
}
func (*HttpService) ActionPaths ¶
func (svc *HttpService) ActionPaths() []string
func (*HttpService) Dependencies ¶
func (svc *HttpService) Dependencies() []string
func (*HttpService) Events ¶
func (svc *HttpService) Events() []moleculer.Event
func (HttpService) Name ¶
func (svc HttpService) Name() string
func (*HttpService) Started ¶
func (svc *HttpService) Started(context moleculer.BrokerContext, schema moleculer.ServiceSchema)
Started httpService started. It process the settings (default + params), starts a http server, notify the plugins that the http server is starting.
func (*HttpService) Stopped ¶
func (svc *HttpService) Stopped(context moleculer.BrokerContext, schema moleculer.ServiceSchema)
Click to show internal directories.
Click to hide internal directories.