controller

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns an instance of Controller

Types

type Option

type Option func(*ctrl)

Option defines the type for functionals options of the Controller

func WithLogger

func WithLogger(logger *zap.Logger) Option

WithLogger adds an instance of the logger to the Controller instance

func WithProxy

func WithProxy(proxy translator.Proxy) Option

WithProxy adds an instance of Proxy to the Controller instance

Jump to

Keyboard shortcuts

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