Documentation ¶
Index ¶
- func CheckBoardExist(boardName string) (bool, string)
- type Board
- func (bd Board) All() (bds []*Board)
- func (bd Board) Create() error
- func (bd Board) Delete() error
- func (bd Board) Exist() bool
- func (bd Board) FetchArticles() (articles article.Articles)
- func (bd Board) GetArticles() (articles article.Articles)
- func (bd Board) List() []string
- func (bd Board) Save() error
- func (bd Board) SuggestBoardName() string
- func (bd *Board) WithArticles()
- func (bd *Board) WithNewArticles()
- type BoardNotExistError
- type Cacher
- type Driver
- type DynamoDB
- type File
- type Redis
- func (Redis) Create(boardName string) error
- func (Redis) Delete(boardName string) error
- func (Redis) Exist(boardName string) bool
- func (Redis) GetArticles(boardName string) (articles article.Articles)
- func (Redis) List() []string
- func (Redis) Remove(boardName string) error
- func (Redis) Save(boardName string, articles article.Articles) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBoardExist ¶
Types ¶
type Board ¶
type Board struct { Name string Articles article.Articles OnlineArticles article.Articles NewArticles article.Articles // contains filtered or unexported fields }
func (Board) FetchArticles ¶
func (Board) GetArticles ¶
func (Board) SuggestBoardName ¶
func (*Board) WithArticles ¶
func (bd *Board) WithArticles()
func (*Board) WithNewArticles ¶
func (bd *Board) WithNewArticles()
type BoardNotExistError ¶
type BoardNotExistError struct {
Suggestion string
}
func (BoardNotExistError) Error ¶
func (e BoardNotExistError) Error() string
Click to show internal directories.
Click to hide internal directories.