Documentation ¶
Index ¶
- type DashboardContext
- type DashboardServerInfo
- type DashboardServiceInfo
- type Proxy
- func (p *Proxy) DashboardContext() DashboardContext
- func (p *Proxy) DashboardHandler(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) ReplaceServers(provider string, newConfigs []UpstreamConfig)
- func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (p *Proxy) ServerReflectionInfo(stream grpc_reflection_v1.ServerReflection_ServerReflectionInfoServer) error
- type ProxyConfig
- type UpstreamConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardContext ¶
type DashboardContext struct { ReflectionDisabled bool Services []*DashboardServiceInfo Servers []*DashboardServerInfo UnknownServer *DashboardServerInfo }
type DashboardServerInfo ¶
type DashboardServerInfo struct { Config UpstreamConfig Provider string Services []*DashboardServiceInfo }
type DashboardServiceInfo ¶
type DashboardServiceInfo struct { Name string Servers []*DashboardServerInfo }
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy must be created using [NewProxy]
func NewServer ¶
func NewServer(config ProxyConfig) *Proxy
func (*Proxy) DashboardContext ¶
func (p *Proxy) DashboardContext() DashboardContext
DashboardContext creates the struct that is used as the template data for the dashboard.
func (*Proxy) DashboardHandler ¶
func (p *Proxy) DashboardHandler(w http.ResponseWriter, r *http.Request)
DashboardHandler serves the dashboard index.html file.
func (*Proxy) ReplaceServers ¶
func (p *Proxy) ReplaceServers(provider string, newConfigs []UpstreamConfig)
func (*Proxy) ServeHTTP ¶
func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface. This method is the entrypoint for all requests into the proxy.
func (*Proxy) ServerReflectionInfo ¶
func (p *Proxy) ServerReflectionInfo(stream grpc_reflection_v1.ServerReflection_ServerReflectionInfoServer) error
ServerReflectionInfo implements grpc_reflection_v1.ServerReflectionServer.
type ProxyConfig ¶
type UpstreamConfig ¶
Click to show internal directories.
Click to hide internal directories.