brokerlist

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(client API, logger Logger) error

Types

type API

type API interface {
	// broker methods
	FetchBroker(cid apiclient.CIDType) (*apiclient.Broker, error)
	FetchBrokers() (*[]apiclient.Broker, error)
	SearchBrokers(searchCriteria *apiclient.SearchQueryType, filterCriteria *apiclient.SearchFilterType) (*[]apiclient.Broker, error)
}

type BrokerList

type BrokerList interface {
	RefreshBrokers() error
	FetchBrokers() error
	GetBrokerList() (*[]apiclient.Broker, error)
	GetBroker(cid string) (apiclient.Broker, error)
	SearchBrokerList(searchTags apiclient.TagType) (*[]apiclient.Broker, error)
	SetClient(API) error
}

func GetInstance

func GetInstance() (BrokerList, error)

type Logger

type Logger interface {
	Printf(fmt string, v ...interface{})
	Debugf(fmt string, v ...interface{})
	Infof(fmt string, v ...interface{})
	Warnf(fmt string, v ...interface{})
	Errorf(fmt string, v ...interface{})
}

Jump to

Keyboard shortcuts

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