Documentation ¶
Index ¶
- func WithCreateTemplate(f func(tpl *dao.Template) error) templateStoreOpt
- func WithDeleteTemplate(f func(name string) error) templateStoreOpt
- func WithIsTemplateExist(f func(name string) (bool, error)) templateStoreOpt
- func WithListTemplate(f func(token string) (*dao.ListTemplateResponse, error)) templateStoreOpt
- func WithUpdateTemplate(f func(tpl *dao.Template) error) templateStoreOpt
- type ApiSender
- type Template
- type TemplateStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCreateTemplate ¶
func WithDeleteTemplate ¶
func WithIsTemplateExist ¶
func WithListTemplate ¶
func WithListTemplate(f func(token string) (*dao.ListTemplateResponse, error)) templateStoreOpt
func WithUpdateTemplate ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.