Documentation
¶
Index ¶
- func Init()
- func InitAPIsFromConfig(apiConfig config.APIConfig) error
- func RefreshAPIsFromConfig(apiConfig config.APIConfig) error
- type LocalMemoryAPIDiscoveryService
- func (ads *LocalMemoryAPIDiscoveryService) APIConfigChange(apiConfig config.APIConfig) bool
- func (ads *LocalMemoryAPIDiscoveryService) AddAPI(api fr.API) error
- func (ads *LocalMemoryAPIDiscoveryService) ClearAPI() error
- func (ads *LocalMemoryAPIDiscoveryService) GetAPI(url string, httpVerb config.HTTPVerb) (fr.API, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAPIsFromConfig ¶
InitAPIsFromConfig inits the router from API config and to local cache
func RefreshAPIsFromConfig ¶ added in v0.2.0
RefreshAPIsFromConfig fresh 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) APIConfigChange ¶ added in v0.2.0
func (ads *LocalMemoryAPIDiscoveryService) APIConfigChange(apiConfig config.APIConfig) bool
APIConfigChange to response to api config change
func (*LocalMemoryAPIDiscoveryService) AddAPI ¶
func (ads *LocalMemoryAPIDiscoveryService) AddAPI(api fr.API) error
AddAPI adds a method to the router tree
func (*LocalMemoryAPIDiscoveryService) ClearAPI ¶ added in v0.2.0
func (ads *LocalMemoryAPIDiscoveryService) ClearAPI() error
ClearAPI clear all api
Click to show internal directories.
Click to hide internal directories.