service

package
v0.0.0-...-2f87fcc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Accept  = "accept"
	Decline = "decline"
)

Variables

This section is empty.

Functions

func GetUrl

func GetUrl(uuid string, action string) string

Types

type Cleaner

type Cleaner struct {
	Settings      postgresql.ConnectionURL
	StreamChannel chan<- *StreamingMessage
}

Cleaner ...

func (*Cleaner) Clean

func (c *Cleaner) Clean(maxRetentionTimeInDays int)

Clean ...Main method for executing cleaning jobs

func (*Cleaner) CleanOutdatedTasks

func (c *Cleaner) CleanOutdatedTasks()

Clean all outdated tasks for projects who have setting auto_delete is true

func (*Cleaner) CountForTable

func (c *Cleaner) CountForTable(tableName string) *uint64

CountForTable ...Helper method used for testing

type Investment

type Investment struct {
	StreamChannel chan<- *StreamingMessage
	// contains filtered or unexported fields
}

func NewInvestment

func NewInvestment(streamChannel chan<- *StreamingMessage, ctx context.Context, sampleTaskDao *persistence.SampleTaskDao, restClient *resty.Client) *Investment

type Job

type Job struct {
	Cleaner    *Cleaner
	Investment *Investment
	Reminder   *Reminder
}

func (*Job) Run

func (r *Job) Run(params ...interface{})

type MessageService

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

func NewMessageService

func NewMessageService(
	groupDao *persistence.GroupDao,
	joinGroupInvitationDao *persistence.JoinGroupInvitationDao,
	mailClient *mailjet.Client) *MessageService

func (*MessageService) SendJoinGroupEmail

func (m *MessageService) SendJoinGroupEmail(username, email string, groupId, uid uint64)

Send join group invitation email to users

type Reminder

type Reminder struct {
}

type StreamingMessage

type StreamingMessage struct {
	ServiceName string
	Message     uint64
	Err         error
}

Jump to

Keyboard shortcuts

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