loader

package
v0.0.0-...-b06ef97 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: MIT Imports: 7 Imported by: 0

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