loader

package
v0.0.0-...-43548f9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(register *proxy.Register, repo api.Repository)

Load loads all the basic components and definitions into a router

Types

type APILoader

type APILoader struct {
	// contains filtered or unexported fields
}

APILoader is responsible for loading all apis form a datastore and configure them in a register

func NewAPILoader

func NewAPILoader(register *proxy.Register) *APILoader

NewAPILoader creates a new instance of the api manager

func (*APILoader) LoadDefinitions

func (m *APILoader) LoadDefinitions(repo api.Repository)

LoadDefinitions registers all ApiDefinitions from a data source

func (*APILoader) RegisterAPI

func (m *APILoader) RegisterAPI(referenceSpec *api.Spec)

RegisterAPI register an API Spec in the register

func (*APILoader) RegisterApis

func (m *APILoader) RegisterApis(apiSpecs []*api.Spec)

RegisterApis load application middleware

Jump to

Keyboard shortcuts

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