api

package
v0.0.0-...-8f3712b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package api contains implementation of a api plugin wrapper. This package handles messages sync between master and workers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExtendedAPIProvider

func NewExtendedAPIProvider(ctor *ConstructAPI) (providers.IExtendedAPIProvider, error)

NewExtendedAPIProvider creates a new API provider.

Types

type ConstructAPI

type ConstructAPI struct {
	Logger             common.ILoggerProvider
	Loader             providers.IPluginLoaderProvider
	Secret             common.ISecretProvider
	Validator          providers.IValidatorProvider
	Provider           string
	Name               string
	RawConfig          []byte
	FanOut             providers.IInternalFanOutProvider
	Server             providers.IServerProvider
	InternalRootRouter *mux.Router
	ExternalAPIRouter  *mux.Router
	IsServer           bool
	ServiceBus         providers.IBusProvider
}

ConstructAPI has data to create a new API provider.

Jump to

Keyboard shortcuts

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