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 Services ¶
type Services struct {
Exchange
}
Services struct of usecase layout
func NewUseCase ¶
func NewUseCase(repos *repository.Repositories, pkg *Packages) *Services
NewUseCase create usecase layout
Click to show internal directories.
Click to hide internal directories.