Documentation ¶
Index ¶
- Variables
- type Backend
- func (tb *Backend) AllowPost() bool
- func (tb *Backend) Authenticate(user, pass string) (nnn.Backend, error)
- func (tb *Backend) Authorized() bool
- func (tb *Backend) DeleteArticle(msgid string) error
- func (tb *Backend) GetArticle(group *nnn.Group, id string, ho bool) (*nnn.Article, error)
- func (tb *Backend) GetArticles(group *nnn.Group, from, to int64, ho bool) ([]nnn.NumberedArticle, error)
- func (tb *Backend) GetGroup(name string) (*nnn.Group, error)
- func (tb *Backend) Init()
- func (tb *Backend) ListGroups(max int) ([]*nnn.Group, error)
- func (tb *Backend) Post(article *nnn.Article) error
- func (tb *Backend) WriteCommand(buf []byte) error
- type Group
Constants ¶
This section is empty.
Variables ¶
View Source
var ImplAuth = func(b *Backend, user, pass string) error { return nil }
View Source
var ImplIsMod = func(b *Backend) bool { return false }
View Source
var ImplMaxPostSize = func(b *Backend) int64 {
return 1024 * 1024
}
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Groups map[string]*Group Articles map[[16]byte]*common.ArticleRef Mods map[string]*common.ModInfo Index *os.File Data []*os.File AuthObject interface{} PostInterval time.Duration ServerName string // contains filtered or unexported fields }
func (*Backend) Authenticate ¶
func (*Backend) Authorized ¶
func (*Backend) DeleteArticle ¶
func (*Backend) GetArticle ¶
func (*Backend) GetArticles ¶
func (*Backend) WriteCommand ¶
type Group ¶
type Group struct { Group *nnn.Group BaseInfo *common.BaseGroupInfo Articles *common.HighLowSlice }
Click to show internal directories.
Click to hide internal directories.