api

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSwaggerEmbedded

func IsSwaggerEmbedded() bool

func StartGRPCAPI

func StartGRPCAPI(api *API)

StartGRPCAPI starts the gRPC API.

func StartHTTPAPI

func StartHTTPAPI(options *Options)

StartHTTPAPI starts the HTTP API.

Types

type API

type API struct {
	v1.GatewayDAdminAPIServiceServer

	Options *Options

	Config         *config.Config
	PluginRegistry *plugin.Registry
	Pools          map[string]*pool.Pool
	Proxies        map[string]*network.Proxy
	Servers        map[string]*network.Server
}

func (*API) GetGlobalConfig

func (a *API) GetGlobalConfig(context.Context, *emptypb.Empty) (*structpb.Struct, error)

GetGlobalConfig returns the global configuration of the GatewayD.

func (*API) GetPluginConfig

func (a *API) GetPluginConfig(context.Context, *emptypb.Empty) (*structpb.Struct, error)

GetPluginConfig returns the plugin configuration of the GatewayD.

func (*API) GetPlugins

func (a *API) GetPlugins(context.Context, *emptypb.Empty) (*v1.PluginConfigs, error)

GetPlugins returns the active plugin configuration of the GatewayD.

func (*API) GetPools

func (a *API) GetPools(context.Context, *emptypb.Empty) (*structpb.Struct, error)

GetPools returns the pool configuration of the GatewayD.

func (*API) GetProxies

func (a *API) GetProxies(context.Context, *emptypb.Empty) (*structpb.Struct, error)

GetProxies returns the proxy configuration of the GatewayD.

func (*API) GetServers

func (a *API) GetServers(context.Context, *emptypb.Empty) (*structpb.Struct, error)

GetServers returns the server configuration of the GatewayD.

func (*API) Version

func (a *API) Version(context.Context, *emptypb.Empty) (*v1.VersionResponse, error)

Version returns the version information of the GatewayD.

type Options

type Options struct {
	Logger      zerolog.Logger
	GRPCNetwork string
	GRPCAddress string
	HTTPAddress string
}

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.

Jump to

Keyboard shortcuts

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