Documentation
¶
Index ¶
- func NewService(repository store.TemplatesRepository) domain.TemplatesService
- type Service
- func (service Service) Delete(name string) error
- func (service Service) GetByName(name string) (*domain.Template, error)
- func (service Service) Index(tag string) ([]domain.Template, error)
- func (service Service) Migrate() error
- func (service Service) Render(name string, body map[string]string) (string, error)
- func (service Service) Upsert(template *domain.Template) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repository store.TemplatesRepository) domain.TemplatesService
NewService returns repository struct
Types ¶
Click to show internal directories.
Click to hide internal directories.