usecase

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExchangeService

func NewExchangeService(
	exchange repository.Exchange,
	logger logger.Logger,
) *exchangeService

NewExchangeService created exchange usecase

Types

type Exchange

type Exchange interface {
	// Tick exchange tick data of stream
	Tick(ctx context.Context, ch <-chan entity.Ticker) error
}

Exchange usecase

type Packages

type Packages struct {
	Logger logger.Logger
}

Packages struct of usecase packages

type Services

type Services struct {
	Exchange
}

Services struct of usecase layout

func NewUseCase

func NewUseCase(repos *repository.Repositories, pkg *Packages) *Services

NewUseCase create usecase layout

Jump to

Keyboard shortcuts

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