repository

package
v0.0.0-...-51300c0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionRepository

type ActionRepository interface {
	Save(action *entity.Action) error
	UpdateStatusWithMsg(id uint, status entity.ActionStatus, msg string) error
}

ActionRepository provides methods to operate actions database data

func NewActionRepository

func NewActionRepository(db *gorm.DB) ActionRepository

type AlgoRepository

type AlgoRepository interface {
	Save(algo *entity.Algorithm) error
	SetActiveStatus(id uint, isActive bool) error
}

AlgoRepository provides methods to operate domain.Algorithm database data

func NewAlgoRepository

func NewAlgoRepository(db *gorm.DB) AlgoRepository

type HistoryRepository

type HistoryRepository interface {
	ClearAndSaveAll(history []entity.History) error
	FindAll() ([]entity.History, error)
	FindAllByFigis(figis []string) ([]entity.History, error)
}

HistoryRepository provides methods to operate domain.History database data

func NewHistoryRepository

func NewHistoryRepository(db *gorm.DB) HistoryRepository

type PgActionRepository

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

func (*PgActionRepository) Save

func (rep *PgActionRepository) Save(action *entity.Action) (err error)

func (*PgActionRepository) UpdateStatusWithMsg

func (rep *PgActionRepository) UpdateStatusWithMsg(id uint, status entity.ActionStatus, msg string) (err error)

type PgAlgoRepository

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

func (*PgAlgoRepository) Save

func (ar *PgAlgoRepository) Save(algo *entity.Algorithm) (err error)

func (*PgAlgoRepository) SetActiveStatus

func (ar *PgAlgoRepository) SetActiveStatus(id uint, isActive bool) error

type PgHistoryRepository

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

func (PgHistoryRepository) ClearAndSaveAll

func (h PgHistoryRepository) ClearAndSaveAll(history []entity.History) error

func (PgHistoryRepository) FindAll

func (h PgHistoryRepository) FindAll() ([]entity.History, error)

func (PgHistoryRepository) FindAllByFigis

func (h PgHistoryRepository) FindAllByFigis(figis []string) ([]entity.History, error)

type PgStatRepository

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

func (*PgStatRepository) GetAlgorithmStat

func (r *PgStatRepository) GetAlgorithmStat(req *dto.StatAlgoRequest) (*dto.StatAlgoResponse, error)

type StatRepository

type StatRepository interface {
	GetAlgorithmStat(req *dto.StatAlgoRequest) (*dto.StatAlgoResponse, error)
}

StatRepository provides methods to retrieve statistics data from database

func NewStatRepository

func NewStatRepository(db *gorm.DB) StatRepository

Jump to

Keyboard shortcuts

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