service

package
v0.0.0-...-db09f8a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationEventService

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

func NewApplicationEventService

func NewApplicationEventService() *ApplicationEventService

func (*ApplicationEventService) Create

func (*ApplicationEventService) FilterByType

func (*ApplicationEventService) GetByClientAndType

func (s *ApplicationEventService) GetByClientAndType(clientId string, ttype types.EventType) (events []*types.ApplicationEvent, err error)

func (*ApplicationEventService) GetByUserAndType

func (s *ApplicationEventService) GetByUserAndType(userId string, ttype types.EventType) (events []*types.ApplicationEvent, err error)

type ClientService

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

func NewClientService

func NewClientService() *ClientService

func (*ClientService) Create

func (s *ClientService) Create(client *types.Client) (*types.Client, error)

func (*ClientService) Delete

func (s *ClientService) Delete(id string) error

func (*ClientService) GetById

func (s *ClientService) GetById(id string) (*types.Client, error)

func (*ClientService) GetByUser

func (s *ClientService) GetByUser(userId string) (clients []*types.Client, err error)

type MailService

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

func NewMailService

func NewMailService() *MailService

func (*MailService) SendSenderVerification

func (s *MailService) SendSenderVerification(user *types.User, sender types.SenderAddress, token string) error

func (*MailService) SendUserVerification

func (s *MailService) SendUserVerification(user *types.User, token string) error

type SendService

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

func NewSendService

func NewSendService() *SendService

func (*SendService) Send

func (s *SendService) Send(mail *types.Mail) error

type SpfService

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

func NewSpfService

func NewSpfService() *SpfService

func (*SpfService) Validate

func (s *SpfService) Validate(domain string) error

type TemplateService

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

func NewTemplateService

func NewTemplateService() *TemplateService

func (*TemplateService) Create

func (s *TemplateService) Create(template *types.Template) (*types.Template, error)

func (*TemplateService) Delete

func (s *TemplateService) Delete(id string) error

func (*TemplateService) GetById

func (s *TemplateService) GetById(id string) (*types.Template, error)

func (*TemplateService) GetByUser

func (s *TemplateService) GetByUser(userId string) (templates []*types.Template, err error)

func (*TemplateService) Update

func (s *TemplateService) Update(template *types.Template) (*types.Template, error)

type UserService

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

func NewUserService

func NewUserService() *UserService

func (*UserService) Create

func (s *UserService) Create(signup *dto.Signup) (*types.User, error)

func (*UserService) Delete

func (s *UserService) Delete(id string) error

func (*UserService) GetAll

func (s *UserService) GetAll() (users []*types.User, err error)

func (*UserService) GetById

func (s *UserService) GetById(id string) (*types.User, error)

func (*UserService) Update

func (s *UserService) Update(user *types.User, update *types.User) (*types.User, error)

type VerificationService

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

func NewVerificationService

func NewVerificationService() *VerificationService

func (*VerificationService) Create

func (s *VerificationService) Create(verification *types.Verification) (*types.Verification, error)

func (*VerificationService) Delete

func (s *VerificationService) Delete(token string) error

func (*VerificationService) GetByToken

func (s *VerificationService) GetByToken(token string) (*types.Verification, error)

Jump to

Keyboard shortcuts

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