accounttx

package
v0.0.0-...-e55fb6d Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(s Storage) *Service

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context, account ulid.ULID) ([]transfer.Transaction, error)

func (*Service) GetByDateRange

func (s *Service) GetByDateRange(ctx context.Context, account ulid.ULID, from, to time.Time) ([]transfer.Transaction, error)

type Storage

type Storage interface {
	GetAllFromAccount(ctx context.Context, account ulid.ULID) ([]transfer.Transaction, error)
	GetAllByDateRange(ctx context.Context, account ulid.ULID, from, to time.Time) ([]transfer.Transaction, error)
}

Jump to

Keyboard shortcuts

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