proxydns

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package proxydns provides default chain for stateless proxy registries based on DNS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, dnsResolver dnsresolve.Resolver, options ...Option) registry.Registry

NewServer creates new stateless registry server that proxies queries to the second registries by DNS domains

Types

type Option

type Option func(o *serverOptions)

Option modifies server option value

func WithAuthorizeNSERegistryClient

func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registryapi.NetworkServiceEndpointRegistryClient) Option

WithAuthorizeNSERegistryClient sets authorization NetworkServiceEndpointRegistry chain element

func WithAuthorizeNSERegistryServer

func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registryapi.NetworkServiceEndpointRegistryServer) Option

WithAuthorizeNSERegistryServer sets authorization NetworkServiceEndpointRegistry chain element

func WithAuthorizeNSRegistryClient

func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registryapi.NetworkServiceRegistryClient) Option

WithAuthorizeNSRegistryClient sets authorization NetworkServiceRegistry chain element

func WithAuthorizeNSRegistryServer

func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registryapi.NetworkServiceRegistryServer) Option

WithAuthorizeNSRegistryServer sets authorization NetworkServiceRegistry chain element

func WithDialOptions

func WithDialOptions(dialOptions ...grpc.DialOption) Option

WithDialOptions sets grpc.DialOptions for the server

Jump to

Keyboard shortcuts

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