clients

package
v0.0.0-...-749d40c Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeClient

type ExchangeClient interface {
	GetRates(context.Context) (*model.ExchangeRatesModel, error)
}

func CreateExchangeClient

func CreateExchangeClient(deps exchangeClientImplDeps) (result ExchangeClient, err error)

type LazyClient

type LazyClient struct {
	client.Client
}

func CreateTemporalClient

func CreateTemporalClient(deps temporalClientDeps) *LazyClient

type LazyMongoClient

type LazyMongoClient struct {
	Client MongoClient
}

func CreateMongoClient

func CreateMongoClient(deps mongoClientImplDeps) (result *LazyMongoClient, err error)

type MongoClient

type MongoClient interface {
	AddRateDocument(context.Context, *model.ExchangeRateDocument) error
	GetLatestRateDocument(context.Context) (*model.ExchangeRateDocument, error)
	Disconnect(ctx context.Context) error
}

Directories

Path Synopsis
Package mock_clients is a generated GoMock package.
Package mock_clients is a generated GoMock package.

Jump to

Keyboard shortcuts

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