app

package
v0.0.0-...-010a373 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(s *entity.SubscriberDTO) (*entity.SubToken, error)

func SendEmail

func SendEmail(to string, subject string, body string) error

func SendNotification

func SendNotification(s service.SubscriberService, r service.RepoService)

Types

type Job

type Job func(ctx context.Context)

type Scheduler

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

func NewScheduler

func NewScheduler() *Scheduler

func (*Scheduler) Add

func (s *Scheduler) Add(ctx context.Context, j Job, interval time.Duration)

Jump to

Keyboard shortcuts

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