service

package
v0.4.2-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStore

type AccountStore interface {
	GetAccount(ctx context.Context, spaceID int32, accountID int32) (*model.Account, error)
}

type EmailService

type EmailService interface {
	SendEmail(ctx context.Context, email *model.Email) (err error)
}

func NewEmailService

func NewEmailService(conf *configs.PostarConfig, spaceStore SpaceStore, accountStore AccountStore, templateStore TemplateStore) EmailService

type SpaceStore

type SpaceStore interface {
	GetSpace(ctx context.Context, spaceID int32) (*model.Space, error)
}

type TemplateStore

type TemplateStore interface {
	GetTemplate(ctx context.Context, spaceID int32, templateID int64) (*model.Template, error)
}

Jump to

Keyboard shortcuts

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