discount

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params ServiceParams) daemon.DaemonResult

Types

type DiscountDaemon

type DiscountDaemon struct {
	Mail                     mail.Helper
	UserService              service.UserService
	GameService              service.GameService
	DiscountService          service.DiscountService
	GameDiscountService      service.GameDiscountService
	GameRevisionPriceService service.GameRevisionPriceService
	GameRevisionService      service.GameRevisionService
	Transactor               *transactor.Transactor
	// contains filtered or unexported fields
}

func (*DiscountDaemon) Errors

func (d *DiscountDaemon) Errors() <-chan error

func (*DiscountDaemon) Execute

func (d *DiscountDaemon) Execute(ctx context.Context) error

func (*DiscountDaemon) Messages

func (d *DiscountDaemon) Messages() <-chan daemon.Message

func (*DiscountDaemon) Name

func (d *DiscountDaemon) Name() string

func (*DiscountDaemon) Start

func (d *DiscountDaemon) Start(c *cron.Cron)

func (*DiscountDaemon) Stop

func (d *DiscountDaemon) Stop()

type ServiceParams

type ServiceParams struct {
	fx.In

	Cfg *config.Config

	Mail                     mail.Helper
	UserService              service.UserService
	GameService              service.GameService
	DiscountService          service.DiscountService
	GameDiscountService      service.GameDiscountService
	GameRevisionPriceService service.GameRevisionPriceService
	GameRevisionService      service.GameRevisionService

	Transactor *transactor.Transactor
}

Jump to

Keyboard shortcuts

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