usecase

package
v0.0.0-...-a9b91a4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecordUsecase

func NewRecordUsecase(appConf *config.Conf, uuidProvider uuid.Provider, timeProvider time.Provider, recordRepo record_d.Repository) *recordUsecase

NewRecordUsecase Constructor function for the `RecordUsecase` implementation.

Types

type Usecase

type Usecase interface {
	// InsertLogParts Function will take the `syslog` to parse it and save it into our app.
	InsertLogParts(ctx context.Context, logParts format.LogParts) (record *ls_d.Record, err error)

	// RollingRecords Function will delete all records past the `max_day_age`.
	RollOldestRecords(ctx context.Context) (err error)
}

Usecase Provides interface for the record use cases.

Jump to

Keyboard shortcuts

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