api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init set api discovery local_memory service.

func InitAPIsFromConfig

func InitAPIsFromConfig(apiConfig config.APIConfig) error

InitAPIsFromConfig inits the router from API config and to local cache

Types

type LocalMemoryAPIDiscoveryService

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

LocalMemoryAPIDiscoveryService is the local cached API discovery service

func NewLocalMemoryAPIDiscoveryService

func NewLocalMemoryAPIDiscoveryService() *LocalMemoryAPIDiscoveryService

NewLocalMemoryAPIDiscoveryService creates a new LocalMemoryApiDiscoveryService instance

func (*LocalMemoryAPIDiscoveryService) AddAPI

AddAPI adds a method to the router tree

func (*LocalMemoryAPIDiscoveryService) GetAPI

func (ads *LocalMemoryAPIDiscoveryService) GetAPI(url string, httpVerb config.HTTPVerb) (router.API, error)

GetAPI returns the method to the caller

Jump to

Keyboard shortcuts

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