Documentation ¶
Index ¶
- func GetRegistry() *prometheus.Registry
- func GetTracer() opentracing.Tracer
- func NewClient[Client any](ctx context.Context, connWrapper ConnWrapper[Client], serviceName string) (Client, error)
- func NewDomainNameService(ctx context.Context, domainNameServiceHost string) error
- func NewTracer(jaegerEndpoint string) (opentracing.Tracer, io.Closer, error)
- type ConnWrapper
- type Server
- type ServerOption
- func WithDomainNameService(ctx context.Context, dnsHost string) ServerOption
- func WithGraylog(graylogHost string) ServerOption
- func WithMetricsPort(metricsPort string) ServerOption
- func WithPort(port string) ServerOption
- func WithProxyPort(proxyPort string) ServerOption
- func WithRealtimeConfigsService(ctx context.Context, dnsHost string) ServerOption
- func WithSwaggerPort(swaggerPort string) ServerOption
- func WithTracer(jaegerEndpoint string) ServerOption
- type ServiceDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegistry ¶
func GetRegistry() *prometheus.Registry
func NewDomainNameService ¶
Types ¶
type ConnWrapper ¶
type ConnWrapper[Client any] func(_ grpc.ClientConnInterface) Client
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(options ...ServerOption) (*Server, error)
func (*Server) ProxyRouter ¶
type ServerOption ¶
func WithDomainNameService ¶
func WithDomainNameService(ctx context.Context, dnsHost string) ServerOption
func WithGraylog ¶
func WithGraylog(graylogHost string) ServerOption
func WithMetricsPort ¶
func WithMetricsPort(metricsPort string) ServerOption
func WithPort ¶
func WithPort(port string) ServerOption
func WithProxyPort ¶
func WithProxyPort(proxyPort string) ServerOption
func WithRealtimeConfigsService ¶
func WithRealtimeConfigsService(ctx context.Context, dnsHost string) ServerOption
func WithSwaggerPort ¶
func WithSwaggerPort(swaggerPort string) ServerOption
func WithTracer ¶
func WithTracer(jaegerEndpoint string) ServerOption
type ServiceDescriptor ¶
type ServiceDescriptor interface {
GetDescription() *grpc.ServiceDesc
}
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
domain-name-service
Package domain_name_service is a reverse proxy.
|
Package domain_name_service is a reverse proxy. |
Click to show internal directories.
Click to hide internal directories.