usecase

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxLimit int = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAuditInteractor

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

func (*AuthAuditInteractor) Audit

func (aai *AuthAuditInteractor) Audit(ctx context.Context, data *domain.AuthAudit) error

type AuthAuditUseCase

type AuthAuditUseCase interface {
	Audit(ctx context.Context, data *domain.AuthAudit) error
}

type AuthListByPeriodInteractor

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

func NewAuthListByPeriodUseCase

func NewAuthListByPeriodUseCase(authAuditRepo domain.AuthAuditRepository) *AuthListByPeriodInteractor

func (*AuthListByPeriodInteractor) List

func (alp *AuthListByPeriodInteractor) List(ctx context.Context, from, till time.Time, limit int, offset int) ([]*domain.AuthAudit, error)

type AuthListByPeriodUseCase

type AuthListByPeriodUseCase interface {
	List(ctx context.Context, from, till time.Time, limit int, offset int) ([]*domain.AuthAudit, error)
}

type AuthListByUsernameInteractor

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

func NewAuthListByUsernameUseCase

func NewAuthListByUsernameUseCase(authAuditRepo domain.AuthAuditRepository) *AuthListByUsernameInteractor

func (*AuthListByUsernameInteractor) List

func (alu *AuthListByUsernameInteractor) List(ctx context.Context, username string, limit, offset int) ([]*domain.AuthAudit, error)

type AuthListByUsernameUseCase

type AuthListByUsernameUseCase interface {
	List(ctx context.Context, username string, limit, offset int) ([]*domain.AuthAudit, error)
}

type DataAuditInteractor

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

func (*DataAuditInteractor) Audit

func (dai *DataAuditInteractor) Audit(ctx context.Context, data *domain.DataAudit) error

type DataAuditUseCase

type DataAuditUseCase interface {
	Audit(ctx context.Context, data *domain.DataAudit) error
}

type DataListByInstanceInteractor

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

func NewDataListByInstanceUseCase

func NewDataListByInstanceUseCase(dataAuditRepo domain.DataAuditRepository) *DataListByInstanceInteractor

func (*DataListByInstanceInteractor) List

func (dli *DataListByInstanceInteractor) List(ctx context.Context, typeName, instanceID string, limit, offset int) ([]*domain.DataAudit, error)

type DataListByInstanceUseCase

type DataListByInstanceUseCase interface {
	List(ctx context.Context, typeName, instanceID string, limit, offset int) ([]*domain.DataAudit, error)
}

type DataListByPeriodInteractor

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

func NewDataListByPeriodUseCase

func NewDataListByPeriodUseCase(dataAuditRepo domain.DataAuditRepository) *DataListByPeriodInteractor

func (*DataListByPeriodInteractor) List

func (dlp *DataListByPeriodInteractor) List(ctx context.Context, from, till time.Time, limit int, offset int) ([]*domain.DataAudit, error)

type DataListByPeriodUseCase

type DataListByPeriodUseCase interface {
	List(ctx context.Context, from, till time.Time, limit int, offset int) ([]*domain.DataAudit, error)
}

type TailCutInteractor

type TailCutInteractor[ID comparable] struct {
	// contains filtered or unexported fields
}

func NewTailCutUseCase

func NewTailCutUseCase[ID comparable](tailRepo domain.TailRepository[ID]) *TailCutInteractor[ID]

func (*TailCutInteractor[ID]) Cut

func (tc *TailCutInteractor[ID]) Cut(ctx context.Context, id ID) error

type TailCutUseCase

type TailCutUseCase[ID comparable] interface {
	Cut(ctx context.Context, id ID) error
}

type TailGetInteractor

type TailGetInteractor[ID comparable] struct {
	// contains filtered or unexported fields
}

func NewTailGetUseCase

func NewTailGetUseCase[ID comparable](tailRepo domain.TailRepository[ID]) *TailGetInteractor[ID]

func (*TailGetInteractor[ID]) GetTail

func (tl *TailGetInteractor[ID]) GetTail(ctx context.Context, tail time.Time) ([]ID, error)

type TailGetUseCase

type TailGetUseCase[ID comparable] interface {
	GetTail(ctx context.Context, tail time.Time) ([]ID, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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