adapters

package
v0.0.0-...-5bda389 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterDispatcher

type AdapterDispatcher struct {
	// contains filtered or unexported fields
}

AdapterDispatcher will coordinate calling all configured adapters in a WaitGroup

func NewAdapterDispatcher

func NewAdapterDispatcher(adapterInstances *[]domain.Adapter, logger *zap.Logger) (*AdapterDispatcher, error)

NewAdapterDispatcher is a constructor method for AdapterDispatcher

func (AdapterDispatcher) Close

func (ad AdapterDispatcher) Close(rules []domain.Rule) (map[string]string, error)

Close will call CreateRules on all configured adapters in the AdapterDispatcher

func (AdapterDispatcher) Open

func (ad AdapterDispatcher) Open(rules []domain.Rule) (map[string]string, error)

Open will call CreateRules on all configured adapters in the AdapterDispatcher

type AdapterFactory

type AdapterFactory struct {
	// contains filtered or unexported fields
}

AdapterFactory will act as the owner of all adapter instances

func NewAdapterFactory

func NewAdapterFactory(config *viper.Viper) (*AdapterFactory, error)

NewAdapterFactory is a constructor method for AdapterFactory

func (AdapterFactory) GetAdapters

func (c AdapterFactory) GetAdapters() (adapterCollection *[]domain.Adapter)

GetAdapters exposes the internal collection of build adapter instances

Directories

Path Synopsis
aws
ec2
vpc

Jump to

Keyboard shortcuts

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