Documentation ¶
Index ¶
- func IsSwaggerEmbedded() bool
- type API
- func (a *API) GetGlobalConfig(_ context.Context, group *v1.Group) (*structpb.Struct, error)
- func (a *API) GetPluginConfig(context.Context, *emptypb.Empty) (*structpb.Struct, error)
- func (a *API) GetPlugins(context.Context, *emptypb.Empty) (*v1.PluginConfigs, error)
- func (a *API) GetPools(context.Context, *emptypb.Empty) (*structpb.Struct, error)
- func (a *API) GetProxies(context.Context, *emptypb.Empty) (*structpb.Struct, error)
- func (a *API) GetServers(context.Context, *emptypb.Empty) (*structpb.Struct, error)
- func (a *API) Version(context.Context, *emptypb.Empty) (*v1.VersionResponse, error)
- type GRPCServer
- type HTTPServer
- type HealthChecker
- type Healthz
- type IAPIServer
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSwaggerEmbedded ¶
func IsSwaggerEmbedded() bool
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 ¶
GetGlobalConfig returns the global configuration of the GatewayD.
func (*API) GetPluginConfig ¶
GetPluginConfig returns the plugin configuration of the GatewayD.
func (*API) GetPlugins ¶
GetPlugins returns the active plugin configuration of the GatewayD.
func (*API) GetProxies ¶
GetProxies returns the proxy configuration of the GatewayD.
func (*API) GetServers ¶
GetServers returns the server configuration of the GatewayD.
type GRPCServer ¶ added in v0.9.3
type GRPCServer struct { API *API *HealthChecker // contains filtered or unexported fields }
func NewGRPCServer ¶ added in v0.9.3
func NewGRPCServer(server GRPCServer) *GRPCServer
NewGRPCServer creates a new gRPC server.
func (*GRPCServer) Shutdown ¶ added in v0.9.3
func (s *GRPCServer) Shutdown(_ context.Context)
Shutdown shuts down the gRPC server.
func (*GRPCServer) Start ¶ added in v0.9.3
func (s *GRPCServer) Start()
Start starts the gRPC server.
type HTTPServer ¶ added in v0.9.3
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶ added in v0.9.3
func NewHTTPServer(options *Options) *HTTPServer
NewHTTPServer creates a new HTTP server.
func (*HTTPServer) Shutdown ¶ added in v0.9.3
func (s *HTTPServer) Shutdown(ctx context.Context)
Shutdown shuts down the HTTP server.
func (*HTTPServer) Start ¶ added in v0.9.3
func (s *HTTPServer) Start()
Start starts the HTTP server.
type HealthChecker ¶ added in v0.8.4
type HealthChecker struct { grpc_health_v1.UnimplementedHealthServer Servers map[string]*network.Server }
func (*HealthChecker) Check ¶ added in v0.8.4
func (h *HealthChecker) Check( context.Context, *grpc_health_v1.HealthCheckRequest, ) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthChecker) Watch ¶ added in v0.8.4
func (h *HealthChecker) Watch( *grpc_health_v1.HealthCheckRequest, grpc_health_v1.Health_WatchServer, ) error
type IAPIServer ¶ added in v0.9.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.