Documentation ¶
Index ¶
- type Six910TemplateService
- func (c *Six910TemplateService) ActivateTemplate(name string) bool
- func (c *Six910TemplateService) AddTemplate(tpl *Template) bool
- func (c *Six910TemplateService) AddTemplateFile(name string, originalFileName string, fileData []byte) bool
- func (c *Six910TemplateService) DeleteTemplate(name string) bool
- func (c *Six910TemplateService) DeleteTemplateFile(namedir string) bool
- func (c *Six910TemplateService) ExtractFile(t *TemplateFile) bool
- func (c *Six910TemplateService) GetActiveTemplateName() string
- func (c *Six910TemplateService) GetNew() TemplateService
- func (c *Six910TemplateService) GetTemplateList() *[]Template
- type Template
- type TemplateFile
- type TemplateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Six910TemplateService ¶
type Six910TemplateService struct { Store ds.JSONDatastore TemplateStore ds.JSONDatastore ContentStorePath string TemplateStorePath string TemplateFilePath string TemplateFullPath string Log *lg.Logger }
Six910TemplateService Six910TemplateService
func (*Six910TemplateService) ActivateTemplate ¶
func (c *Six910TemplateService) ActivateTemplate(name string) bool
ActivateTemplate ActivateTemplate
func (*Six910TemplateService) AddTemplate ¶
func (c *Six910TemplateService) AddTemplate(tpl *Template) bool
AddTemplate AddTemplate
func (*Six910TemplateService) AddTemplateFile ¶
func (c *Six910TemplateService) AddTemplateFile(name string, originalFileName string, fileData []byte) bool
AddTemplateFile AddTemplateFile
func (*Six910TemplateService) DeleteTemplate ¶
func (c *Six910TemplateService) DeleteTemplate(name string) bool
DeleteTemplate DeleteTemplate
func (*Six910TemplateService) DeleteTemplateFile ¶
func (c *Six910TemplateService) DeleteTemplateFile(namedir string) bool
DeleteTemplateFile delete template files
func (*Six910TemplateService) ExtractFile ¶
func (c *Six910TemplateService) ExtractFile(t *TemplateFile) bool
ExtractFile extract
func (*Six910TemplateService) GetActiveTemplateName ¶
func (c *Six910TemplateService) GetActiveTemplateName() string
GetActiveTemplateName GetActiveTemplateName
func (*Six910TemplateService) GetNew ¶
func (c *Six910TemplateService) GetNew() TemplateService
GetNew GetNew
func (*Six910TemplateService) GetTemplateList ¶
func (c *Six910TemplateService) GetTemplateList() *[]Template
GetTemplateList GetTemplateList
type Template ¶
type Template struct { Name string `json:"name"` Active bool `json:"active"` ScreenShot string `json:"screenShot"` }
Template template
type TemplateFile ¶
TemplateFile TemplateFile
type TemplateService ¶
type TemplateService interface { AddTemplateFile(name string, originalFileName string, fileData []byte) bool AddTemplate(tpl *Template) bool ActivateTemplate(name string) bool GetActiveTemplateName() string GetTemplateList() *[]Template DeleteTemplate(name string) bool ExtractFile(tFile *TemplateFile) bool DeleteTemplateFile(name string) bool }
TemplateService TemplateService
Click to show internal directories.
Click to hide internal directories.