gateway

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: MIT Imports: 14 Imported by: 4

README

gateway

🌍 Gateway service for Moleculer-Go framework.

  • Exposes service actions over HTTP
  • Exposes events over Websockets

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL