adapters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientPersistenceAdapter

type ClientPersistenceAdapter interface {
	GetClients(config model.ClientSearchConfig) ([]model.Client, error)
}

type CryptoServiceAdapter

type CryptoServiceAdapter interface {
	GetMinTradeCashAmount() (float64, error)
	GetMinTradeCryptoAmount() (float64, error)
}

type CryptoWebServiceAdapter

type CryptoWebServiceAdapter interface {
	GetCryptoCurrentQuote(symbol symbol.Symbol) (float64, error)
}

type EventServiceAdapter

type EventServiceAdapter interface {
	Send(interface{}) error
}

type LoggerAdapter

type LoggerAdapter interface {
	SetCorrelationID(correlationId string)
	Info(message string, metadata ...interface{})
	Error(err error, message string, metadata ...interface{})
}

type OperationUseCaseAdapter

type OperationUseCaseAdapter interface {
	TriggerOperations(summary summary.Summary) error
}

Jump to

Keyboard shortcuts

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