schedule

package
v0.0.0-...-bb63543 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Daily

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

func NewDaily

func NewDaily(db *ent.Database, producer sarama.SyncProducer) *Daily

func (Daily) Run

func (r Daily) Run(ctx context.Context) error

Run mock daily send statistic data to accounts

type Schedule

type Schedule struct {
	*schedule.Schedule
	// contains filtered or unexported fields
}

func NewSchedule

func NewSchedule(logger log.Logger, client *ent.Client, daily *Daily) *Schedule

func (Schedule) Start

func (s Schedule) Start(ctx context.Context) error

func (Schedule) Stop

func (s Schedule) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳