loader

package
v0.0.0-...-ce8de81 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) RegisterAPI

func (m *APILoader) RegisterAPI(def *api.Definition)

RegisterAPI register an API Definition in the register

func (*APILoader) RegisterAPIs

func (m *APILoader) RegisterAPIs(cfgs []*api.Definition)

RegisterAPIs load application middleware

Jump to

Keyboard shortcuts

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