Documentation ¶
Index ¶
- type DefaultLinkService
- func (service DefaultLinkService) DeleteLink(owner, id string) *exception.AppError
- func (service DefaultLinkService) GetByID(owner, id string) (*models.Link, *exception.AppError)
- 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
- func (service DefaultPageService) DeletePage(owner, id string) *exception.AppError
- func (service DefaultPageService) FindAll(owner string) ([]*models.Page, *exception.AppError)
- func (service DefaultPageService) FindAllWithPreload(owner string) ([]*models.Page, *exception.AppError)
- func (service DefaultPageService) GetPageByID(owner string, id string) (*models.Page, *exception.AppError)
- func (service DefaultPageService) GetPageByIDWithPreload(owner string, id string) (*models.Page, *exception.AppError)
- func (service DefaultPageService) GetPageByPathWithPreload(owner string, path string) (*models.Page, *exception.AppError)
- func (service DefaultPageService) InsertPage(s *models.Page) *exception.AppError
- func (service DefaultPageService) UpdatePage(s *models.Page) *exception.AppError
- type DefaultRssFeedService
- func (service DefaultRssFeedService) DeleteRssFeed(owner, id string) *exception.AppError
- func (service DefaultRssFeedService) GetByID(owner, id string) (*models.RssFeed, *exception.AppError)
- func (service DefaultRssFeedService) InsertRssFeed(s *models.RssFeed) *exception.AppError
- func (service DefaultRssFeedService) UpdateRssFeed(s *models.RssFeed) *exception.AppError
- type DefaultSectionService
- func (service DefaultSectionService) DeleteSection(owner, id string) *exception.AppError
- func (service DefaultSectionService) GetByID(owner, id string) (*models.Section, *exception.AppError)
- func (service DefaultSectionService) InsertSection(s *models.Section) *exception.AppError
- func (service DefaultSectionService) UpdateSection(s *models.Section) *exception.AppError
- type DefaultSettingService
- func (service DefaultSettingService) DeleteSetting(id string) *exception.AppError
- func (service DefaultSettingService) FindAll() ([]*models.Setting, *exception.AppError)
- func (service DefaultSettingService) GetSettingByID(id string) (*models.Setting, *exception.AppError)
- func (service DefaultSettingService) InsertSetting(s *models.Setting) *exception.AppError
- func (service DefaultSettingService) UpdateSetting(s *models.Setting) *exception.AppError
- type DefaultTagService
- func (service DefaultTagService) DeleteTag(owner, link, name string) *exception.AppError
- func (service DefaultTagService) GetByID(owner, id string) (*models.Tag, *exception.AppError)
- func (service DefaultTagService) InsertTag(s *models.Tag) *exception.AppError
- func (service DefaultTagService) UpdateTag(s *models.Tag) *exception.AppError
- type DefaultUserService
- func (service DefaultUserService) GetUserByID(id string) (*models.User, *exception.AppError)
- func (service DefaultUserService) GetUserByUsername(username string) (*models.User, *exception.AppError)
- func (service DefaultUserService) InsertUser(s *models.User) *exception.AppError
- func (service DefaultUserService) UpdateUser(s *models.User) *exception.AppError
- type LinkService
- type PageService
- type RssFeedService
- type SectionService
- type SettingService
- type TagService
- type UserService
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 (DefaultLinkService) DeleteLink ¶
func (service DefaultLinkService) DeleteLink(owner, id string) *exception.AppError
func (DefaultLinkService) GetByIDWithPreload ¶
func (DefaultLinkService) InsertLink ¶
func (service DefaultLinkService) InsertLink(s *models.Link) *exception.AppError
func (DefaultLinkService) UpdateLink ¶
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) FindAllWithPreload ¶
func (DefaultPageService) GetPageByID ¶
func (DefaultPageService) GetPageByIDWithPreload ¶
func (DefaultPageService) GetPageByPathWithPreload ¶
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) 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) 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 (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
type DefaultUserService ¶
type DefaultUserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repository models.UserRepository) DefaultUserService
func (DefaultUserService) GetUserByID ¶
func (DefaultUserService) GetUserByUsername ¶
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 SectionService ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.