gravitee

package
v0.0.0-...-eb2c2f1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient interface {
	GetConfig() *config.GraviteeConfig
	GetApis() ([]models.Api, error)
	GetApi(ApiID, EnvId string) (*models.Api, error)
	IsReady() bool
	GetSpecs(apiID string) ([]models.Spec, error)
}

type APIContextKey

type APIContextKey string
const APIKey APIContextKey = "api"

Définir une clé pour l'API

type APISpec

type APISpec interface {
	GetSpecWithName(name string) (*specItem, error)
	AddApiToCache(name string, modDate time.Time, specHash string)
}

type Agent

type Agent struct {
	GraviteeClient *gravitee.GraviteeClient
	// contains filtered or unexported fields
}

Agent - Represents the Gateway client

func NewAgent

func NewAgent(agentCfg *AgentConfig) (*Agent, error)

NewAgent - Creates a new Agent

func (*Agent) Run

func (a *Agent) Run() error

func (*Agent) Stop

func (a *Agent) Stop()

Stop - signals the agent to stop

type AgentConfig

type AgentConfig struct {
	CentralCfg  corecfg.CentralConfig  `config:"central"`
	GraviteeCfg *config.GraviteeConfig `config:"gravitee"`
}

AgentConfig - represents the config for agent

type ApiCacheItem

type ApiCacheItem struct {
	Name     string
	SpecHash string
	ModDate  time.Time
}

Jump to

Keyboard shortcuts

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