service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLinkService

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

func NewLinkService

func NewLinkService(repository models.LinkRepository) DefaultLinkService
func (service DefaultLinkService) DeleteLink(owner, id string) *exception.AppError

func (DefaultLinkService) GetByID

func (service DefaultLinkService) GetByID(owner, id string) (*models.Link, *exception.AppError)

func (DefaultLinkService) GetByIDWithPreload

func (service DefaultLinkService) GetByIDWithPreload(owner, id string) (*models.Link, *exception.AppError)
func (service DefaultLinkService) InsertLink(s *models.Link) *exception.AppError
func (service DefaultLinkService) UpdateLink(s *models.Link) *exception.AppError

type DefaultPageService

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

func NewPageService

func NewPageService(repository models.PageRepository) DefaultPageService

func (DefaultPageService) DeletePage

func (service DefaultPageService) DeletePage(owner, id string) *exception.AppError

func (DefaultPageService) FindAll

func (service DefaultPageService) FindAll(owner string) ([]*models.Page, *exception.AppError)

func (DefaultPageService) FindAllWithPreload

func (service DefaultPageService) FindAllWithPreload(owner string) ([]*models.Page, *exception.AppError)

func (DefaultPageService) GetPageByID

func (service DefaultPageService) GetPageByID(owner string, id string) (*models.Page, *exception.AppError)

func (DefaultPageService) GetPageByIDWithPreload

func (service DefaultPageService) GetPageByIDWithPreload(owner string, id string) (*models.Page, *exception.AppError)

func (DefaultPageService) GetPageByPathWithPreload

func (service DefaultPageService) GetPageByPathWithPreload(owner string, path string) (*models.Page, *exception.AppError)

func (DefaultPageService) InsertPage

func (service DefaultPageService) InsertPage(s *models.Page) *exception.AppError

func (DefaultPageService) UpdatePage

func (service DefaultPageService) UpdatePage(s *models.Page) *exception.AppError

type DefaultRssFeedService

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

func NewRssFeedService

func NewRssFeedService(repository models.RssFeedRepository) DefaultRssFeedService

func (DefaultRssFeedService) DeleteRssFeed

func (service DefaultRssFeedService) DeleteRssFeed(owner, id string) *exception.AppError

func (DefaultRssFeedService) GetByID

func (service DefaultRssFeedService) GetByID(owner, id string) (*models.RssFeed, *exception.AppError)

func (DefaultRssFeedService) InsertRssFeed

func (service DefaultRssFeedService) InsertRssFeed(s *models.RssFeed) *exception.AppError

func (DefaultRssFeedService) UpdateRssFeed

func (service DefaultRssFeedService) UpdateRssFeed(s *models.RssFeed) *exception.AppError

type DefaultSectionService

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

func NewSectionService

func NewSectionService(repository models.SectionRepository) DefaultSectionService

func (DefaultSectionService) DeleteSection

func (service DefaultSectionService) DeleteSection(owner, id string) *exception.AppError

func (DefaultSectionService) GetByID

func (service DefaultSectionService) GetByID(owner, id string) (*models.Section, *exception.AppError)

func (DefaultSectionService) InsertSection

func (service DefaultSectionService) InsertSection(s *models.Section) *exception.AppError

func (DefaultSectionService) UpdateSection

func (service DefaultSectionService) UpdateSection(s *models.Section) *exception.AppError

type DefaultSettingService

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

func NewSettingService

func NewSettingService(repository models.SettingRepository) DefaultSettingService

func (DefaultSettingService) DeleteSetting

func (service DefaultSettingService) DeleteSetting(id string) *exception.AppError

func (DefaultSettingService) FindAll

func (service DefaultSettingService) FindAll() ([]*models.Setting, *exception.AppError)

func (DefaultSettingService) GetSettingByID

func (service DefaultSettingService) GetSettingByID(id string) (*models.Setting, *exception.AppError)

func (DefaultSettingService) InsertSetting

func (service DefaultSettingService) InsertSetting(s *models.Setting) *exception.AppError

func (DefaultSettingService) UpdateSetting

func (service DefaultSettingService) UpdateSetting(s *models.Setting) *exception.AppError

type DefaultTagService

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

func NewTagService

func NewTagService(repository models.TagRepository) DefaultTagService

func (DefaultTagService) DeleteTag

func (service DefaultTagService) DeleteTag(owner, link, name string) *exception.AppError

func (DefaultTagService) GetByID

func (service DefaultTagService) GetByID(owner, id string) (*models.Tag, *exception.AppError)

func (DefaultTagService) InsertTag

func (service DefaultTagService) InsertTag(s *models.Tag) *exception.AppError

func (DefaultTagService) UpdateTag

func (service DefaultTagService) UpdateTag(s *models.Tag) *exception.AppError

type DefaultUserService

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

func NewUserService

func NewUserService(repository models.UserRepository) DefaultUserService

func (DefaultUserService) GetUserByID

func (service DefaultUserService) GetUserByID(id string) (*models.User, *exception.AppError)

func (DefaultUserService) GetUserByUsername

func (service DefaultUserService) GetUserByUsername(username string) (*models.User, *exception.AppError)

func (DefaultUserService) InsertUser

func (service DefaultUserService) InsertUser(s *models.User) *exception.AppError

func (DefaultUserService) UpdateUser

func (service DefaultUserService) UpdateUser(s *models.User) *exception.AppError

type LinkService

type LinkService interface {
	GetByID(owner, id string) (*models.Link, *exception.AppError)
	GetByIDWithPreload(owner, id string) (*models.Link, *exception.AppError)
	InsertLink(s *models.Link) *exception.AppError
	UpdateLink(s *models.Link) *exception.AppError
	DeleteLink(owner, id string) *exception.AppError
}

type PageService

type PageService interface {
	FindAll(owner string) ([]*models.Page, *exception.AppError)
	FindAllWithPreload(owner string) ([]*models.Page, *exception.AppError)
	GetPageByID(owner string, id string) (*models.Page, *exception.AppError)
	GetPageByIDWithPreload(owner string, id string) (*models.Page, *exception.AppError)
	GetPageByPathWithPreload(owner string, path string) (*models.Page, *exception.AppError)
	InsertPage(s *models.Page) *exception.AppError
	UpdatePage(s *models.Page) *exception.AppError
	DeletePage(owner, id string) *exception.AppError
}

type RssFeedService

type RssFeedService interface {
	GetByID(owner, id string) (*models.RssFeed, *exception.AppError)
	InsertRssFeed(s *models.RssFeed) *exception.AppError
	UpdateRssFeed(s *models.RssFeed) *exception.AppError
	DeleteRssFeed(owner, id string) *exception.AppError
}

type SectionService

type SectionService interface {
	GetByID(owner, id string) (*models.Section, *exception.AppError)
	InsertSection(s *models.Section) *exception.AppError
	UpdateSection(s *models.Section) *exception.AppError
	DeleteSection(owner, id string) *exception.AppError
}

type SettingService

type SettingService interface {
	FindAll() ([]*models.Setting, *exception.AppError)
	GetSettingByID(id string) (*models.Setting, *exception.AppError)
	InsertSetting(s *models.Setting) *exception.AppError
	UpdateSetting(s *models.Setting) *exception.AppError
	DeleteSetting(id string) *exception.AppError
}

type TagService

type TagService interface {
	GetByID(owner, id string) (*models.Tag, *exception.AppError)
	InsertTag(s *models.Tag) *exception.AppError
	UpdateTag(s *models.Tag) *exception.AppError
	DeleteTag(owner, link, name string) *exception.AppError
}

type UserService

type UserService interface {
	GetUserByUsername(username string) (*models.User, *exception.AppError)
	GetUserByID(id string) (*models.User, *exception.AppError)
	InsertUser(s *models.User) *exception.AppError
	UpdateUser(s *models.User) *exception.AppError
}

Jump to

Keyboard shortcuts

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