templates

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

type Service

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

Service handles business logic

func (Service) Delete

func (service Service) Delete(name string) error

func (Service) GetByName

func (service Service) GetByName(name string) (*domain.Template, error)

func (Service) Index

func (service Service) Index(tag string) ([]domain.Template, error)

func (Service) Migrate

func (service Service) Migrate() error

func (Service) Render

func (service Service) Render(name string, body map[string]string) (string, error)

func (Service) Upsert

func (service Service) Upsert(template *domain.Template) error

Jump to

Keyboard shortcuts

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