store

package
v0.0.0-...-7c29cea Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

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

ConfigService is filesystem store implementation of vetbbedit.ConfigService

func NewConfigService

func NewConfigService(pageDir string) *ConfigService

NewConfigService creates new ConfigService operating on files in pageDir.

func (*ConfigService) UpdateCopyrightYears

func (s *ConfigService) UpdateCopyrightYears() error

UpdateCopyrightYears updates params.CopyrightYears in config.json using current date

type NewsService

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

NewsService is filesystem store implementation of vetbbedit.NewsService

func NewNewsService

func NewNewsService(pageDir string) *NewsService

NewNewsService creates new NewsService operating on files in pageDir.

func (*NewsService) Load

func (s *NewsService) Load() (i *vetbbedit.ItemData, err error)

Load returns ItemData from json file

func (*NewsService) Save

func (s *NewsService) Save(i *vetbbedit.ItemData) error

Save stores ItemData in json file

type OpeningHoursService

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

OpeningHoursService is filesystem store implementation of vetbbedit.OpeningHoursService

func NewOpeningHoursService

func NewOpeningHoursService(pageDir string) *OpeningHoursService

NewOpeningHoursService creates new OpeningHoursService operating on files in pageDir.

func (*OpeningHoursService) Load

func (s *OpeningHoursService) Load() (o *vetbbedit.OpeningHours, err error)

Load returns OpeningHours from json file

func (*OpeningHoursService) Save

Save stores OpeningHours in json file

type ServicesService

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

ServicesService is filesystem store implementation of vetbbedit.ServicesService

func NewServicesService

func NewServicesService(pageDir string) *ServicesService

NewServicesService creates new ServicesService operating on files in pageDir.

func (*ServicesService) Load

func (s *ServicesService) Load() (i *vetbbedit.ItemData, err error)

Load returns ItemData from json file

func (*ServicesService) Save

Save stores ItemData in json file

Jump to

Keyboard shortcuts

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