Documentation
¶
Index ¶
- type Link
- type LinkRepository
- type LinkRepositoryDb
- func (d LinkRepositoryDb) Delete(owner string, id string) *exception.AppError
- func (d LinkRepositoryDb) FindByID(owner string, id string) (*Link, *exception.AppError)
- func (d LinkRepositoryDb) FindByIDWithPreload(owner string, id string) (*Link, *exception.AppError)
- func (d LinkRepositoryDb) Insert(p *Link) *exception.AppError
- func (d LinkRepositoryDb) Update(p *Link) *exception.AppError
- type Page
- type PageRepository
- type PageRepositoryDb
- func (d PageRepositoryDb) Delete(owner, id string) *exception.AppError
- func (d PageRepositoryDb) FindAll(owner string) ([]*Page, *exception.AppError)
- func (d PageRepositoryDb) FindAllWithPreload(owner string) ([]*Page, *exception.AppError)
- func (d PageRepositoryDb) FindByID(owner string, id string) (*Page, *exception.AppError)
- func (d PageRepositoryDb) FindByIDWithPreload(owner string, id string) (*Page, *exception.AppError)
- func (d PageRepositoryDb) FindByPathWithPreload(owner string, path string) (*Page, *exception.AppError)
- func (d PageRepositoryDb) Insert(p *Page) *exception.AppError
- func (d PageRepositoryDb) Update(p *Page) *exception.AppError
- type RssFeed
- type RssFeedRepository
- type RssFeedRepositoryDb
- func (d RssFeedRepositoryDb) Delete(owner string, id string) *exception.AppError
- func (d RssFeedRepositoryDb) FindByID(owner string, id string) (*RssFeed, *exception.AppError)
- func (d RssFeedRepositoryDb) Insert(p *RssFeed) *exception.AppError
- func (d RssFeedRepositoryDb) Update(p *RssFeed) *exception.AppError
- type Section
- type SectionRepository
- type SectionRepositoryDb
- func (d SectionRepositoryDb) Delete(owner, id string) *exception.AppError
- func (d SectionRepositoryDb) FindByID(owner string, id string) (*Section, *exception.AppError)
- func (d SectionRepositoryDb) Insert(p *Section) *exception.AppError
- func (d SectionRepositoryDb) Update(p *Section) *exception.AppError
- type Setting
- type SettingRepository
- type SettingRepositoryDb
- func (d SettingRepositoryDb) Delete(id string) *exception.AppError
- func (d SettingRepositoryDb) FindAll() ([]*Setting, *exception.AppError)
- func (d SettingRepositoryDb) FindByID(id string) (*Setting, *exception.AppError)
- func (d SettingRepositoryDb) Insert(u *Setting) *exception.AppError
- func (d SettingRepositoryDb) Update(u *Setting) *exception.AppError
- type Tag
- type TagRepository
- type TagRepositoryDb
- type User
- type UserRepository
- type UserRepositoryDb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { ID uint `gorm:"primaryKey" json:"id"` Name string Icon string Logo string URL string Description string Tags []Tag `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` SectionID uint Owner string `gorm:"index" json:"-"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` }
type LinkRepository ¶
type LinkRepositoryDb ¶
type LinkRepositoryDb struct {
// contains filtered or unexported fields
}
func NewLinkRepository ¶
func NewLinkRepository() LinkRepositoryDb
func (LinkRepositoryDb) Delete ¶
func (d LinkRepositoryDb) Delete(owner string, id string) *exception.AppError
func (LinkRepositoryDb) FindByIDWithPreload ¶
type Page ¶
type Page struct { ID string `gorm:"primaryKey" json:"id"` Name string `json:"name"` Path string `json:"path" gorm:"unique"` Icon string `json:"icon"` Size string `json:"size"` FullWidth bool `json:"full_width"` Sections []Section `json:"sections,omitempty"` Owner string `gorm:"index" json:"-"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` }
type PageRepository ¶
type PageRepository interface { FindAll(owner string) ([]*Page, *exception.AppError) FindAllWithPreload(owner string) ([]*Page, *exception.AppError) FindByID(owner string, id string) (*Page, *exception.AppError) FindByIDWithPreload(owner string, id string) (*Page, *exception.AppError) FindByPathWithPreload(owner string, path string) (*Page, *exception.AppError) Insert(p *Page) *exception.AppError Update(p *Page) *exception.AppError Delete(owner, id string) *exception.AppError }
type PageRepositoryDb ¶
type PageRepositoryDb struct {
// contains filtered or unexported fields
}
func NewPageRepository ¶
func NewPageRepository() PageRepositoryDb
func (PageRepositoryDb) Delete ¶
func (d PageRepositoryDb) Delete(owner, id string) *exception.AppError
func (PageRepositoryDb) FindAll ¶
func (d PageRepositoryDb) FindAll(owner string) ([]*Page, *exception.AppError)
func (PageRepositoryDb) FindAllWithPreload ¶
func (d PageRepositoryDb) FindAllWithPreload(owner string) ([]*Page, *exception.AppError)
func (PageRepositoryDb) FindByIDWithPreload ¶
func (PageRepositoryDb) FindByPathWithPreload ¶
type RssFeedRepository ¶
type RssFeedRepositoryDb ¶
type RssFeedRepositoryDb struct {
// contains filtered or unexported fields
}
func NewRssFeedRepository ¶
func NewRssFeedRepository() RssFeedRepositoryDb
func (RssFeedRepositoryDb) Delete ¶
func (d RssFeedRepositoryDb) Delete(owner string, id string) *exception.AppError
type Section ¶
type Section struct { ID uint `gorm:"primaryKey"` Name string Icon string ColumnSize int TitleFontSize string DescriptionFontSize string PageID string Order int Owner string CloudTags bool Link bool Links []Link Rss bool RssFeed RssFeed `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` }
type SectionRepository ¶
type SectionRepositoryDb ¶
type SectionRepositoryDb struct {
// contains filtered or unexported fields
}
func NewSectionRepository ¶
func NewSectionRepository() SectionRepositoryDb
func (SectionRepositoryDb) Delete ¶
func (d SectionRepositoryDb) Delete(owner, id string) *exception.AppError
type SettingRepository ¶
type SettingRepositoryDb ¶
type SettingRepositoryDb struct {
// contains filtered or unexported fields
}
func NewSettingRepository ¶
func NewSettingRepository() SettingRepositoryDb
func (SettingRepositoryDb) Delete ¶
func (d SettingRepositoryDb) Delete(id string) *exception.AppError
func (SettingRepositoryDb) FindAll ¶
func (d SettingRepositoryDb) FindAll() ([]*Setting, *exception.AppError)
func (SettingRepositoryDb) FindByID ¶
func (d SettingRepositoryDb) FindByID(id string) (*Setting, *exception.AppError)
type TagRepository ¶
type TagRepositoryDb ¶
type TagRepositoryDb struct {
// contains filtered or unexported fields
}
func NewTagRepository ¶
func NewTagRepository() TagRepositoryDb
type User ¶
type User struct { ID string `gorm:"primaryKey" json:"id"` Username string `gorm:"index" json:"username"` Password string `json:"password,omitempty"` Token string `json:"token,omitempty"` AccessToken string `gorm:"-" json:"access_token,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` }
type UserRepository ¶
type UserRepositoryDb ¶
type UserRepositoryDb struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository() UserRepositoryDb
func (UserRepositoryDb) FindByID ¶
func (d UserRepositoryDb) FindByID(id string) (*User, *exception.AppError)
func (UserRepositoryDb) FindByUsername ¶
func (d UserRepositoryDb) FindByUsername(username string) (*User, *exception.AppError)
Click to show internal directories.
Click to hide internal directories.