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.
Click to show internal directories.
Click to hide internal directories.