mail

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCreateTemplate

func WithCreateTemplate(f func(tpl *dao.Template) error) templateStoreOpt

func WithDeleteTemplate

func WithDeleteTemplate(f func(name string) error) templateStoreOpt

func WithIsTemplateExist

func WithIsTemplateExist(f func(name string) (bool, error)) templateStoreOpt

func WithListTemplate

func WithListTemplate(f func(token string) (*dao.ListTemplateResponse, error)) templateStoreOpt

func WithUpdateTemplate

func WithUpdateTemplate(f func(tpl *dao.Template) error) templateStoreOpt

Types

type ApiSender

type ApiSender interface {
	service.Sender
}

type Template

type Template interface {
	Apply(tplfile string) error
	List(nextToken string) (*dao.ListTemplateResponse, error)
	Delete(name string) error
}

type TemplateStore

type TemplateStore interface {
	IsTemplateExist(name string) (bool, error)
	UpdateTemplate(tpl *dao.Template) error
	CreateTpl(tpl *dao.Template) error
	Delete(name string) error
	List(token string) (*dao.ListTemplateResponse, error)
}

func NewMockTemplateStore

func NewMockTemplateStore(opts ...templateStoreOpt) TemplateStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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