adapter

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterInterface

type AdapterInterface interface {
	Setup() error
	Close() error
	GetName() string
	SetLogger(logger *logrus.Entry)
}

Interface implements basic adapter functions. All new adapters must inherit BaseAdapter and implement only Setup() and Close() functions.

type BaseAdapter

type BaseAdapter struct {
	Logger *logrus.Entry
	// contains filtered or unexported fields
}

Adapter structure contains an adapter name. All new adapters must inherit BaseAdapter and implement only Setup() and Close() functions from AdapterInterface.

func NewBaseAdapter

func NewBaseAdapter(name string) *BaseAdapter

Function allocates BaseAdapter structure with the name.

func (*BaseAdapter) GetName

func (a *BaseAdapter) GetName() string

Function returns the name of an adapter.

func (*BaseAdapter) SetLogger added in v0.3.2

func (a *BaseAdapter) SetLogger(logger *logrus.Entry)

Function sets the logger for internal using in the adapter.

Directories

Path Synopsis
auth
event
sqs
storage
s3
util

Jump to

Keyboard shortcuts

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