proxy

package
v0.0.0-...-7341ef1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) (result translator.Proxy, err error)

New returns an instance of Translator.

Types

type Option

type Option func(*proxy)

Option defines the type for functional options of the Proxy instance

func WithListen

func WithListen(listen string) Option

WithListen adds the listening address/port to the Proxy instance

func WithLogger

func WithLogger(logger *zap.Logger) Option

WithLogger adds an instance of the logger to the Proxy instance

func WithResolver

func WithResolver(resolver string) Option

WithResolver adds the resolver string to the Proxy instance

Jump to

Keyboard shortcuts

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