adapter

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAdapterProviderEmpty Error occurred when the provider is nil
	ErrAdapterProviderEmpty = errors.New("provider is empty")
	// ErrAdapterWriterEmpty Error occurred when the writer is nil
	ErrAdapterWriterEmpty = errors.New("writer is empty")
	// ErrAdapterFormatterEmpty Error occurred when the formatter is nil
	ErrAdapterFormatterEmpty = errors.New("formatter is empty")
)

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	Run() error
}

Adapter ...

func New

func New(provider provider.Provider, writer writer.Writer, formatter formatter.Formatter) (Adapter, error)

New Initialize the Adapter struct

Jump to

Keyboard shortcuts

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