Documentation ¶
Index ¶
- func Register(name string, dao Dao)
- type AddSolr
- type Dao
- type DaoContainer
- type DelSolr
- type SolrDao
- type SolrDaoContainer
- func (this *SolrDaoContainer) AddOrUpdate(p *Post)
- func (this *SolrDaoContainer) AddPost(p *Post)
- func (this *SolrDaoContainer) AddPosts(p []Post)
- func (this *SolrDaoContainer) Debug(is_debug bool)
- func (this *SolrDaoContainer) DelPost(id interface{})
- func (this *SolrDaoContainer) DelPosts(source string)
- func (this *SolrDaoContainer) GetPost(author, sort string, limit, start int) []Post
- func (this *SolrDaoContainer) GetPostById(id int) *Post
- func (this *SolrDaoContainer) GetPostByLink(url string) *Post
- func (this *SolrDaoContainer) IsPostUpdate(p *Post) bool
- func (this *SolrDaoContainer) Search(q string, limit, start int) (int, float64, []Post)
- func (this *SolrDaoContainer) UpdatePost(p *Post)
- type SolrError
- type SolrPost
- type SolrResponseHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao interface {
NewDaoImpl(dsn string) (DaoContainer, error)
}
type DaoContainer ¶
type DaoContainer interface { AddPost(p *Post) AddPosts(p []Post) DelPost(id interface{}) DelPosts(source string) UpdatePost(p *Post) AddOrUpdate(p *Post) GetPostById(id int) *Post GetPostByLink(url string) *Post GetPost(author, sort string, limit, start int) []Post IsPostUpdate(p *Post) bool Search(q string, limit, start int) (int, float64, []Post) Debug(is_debug bool) }
func NewDao ¶
func NewDao(dao_name, dsn string) (DaoContainer, error)
type SolrDao ¶
type SolrDao struct {
Dsn string
}
func (*SolrDao) NewDaoImpl ¶
func (this *SolrDao) NewDaoImpl(dsn string) (DaoContainer, error)
type SolrDaoContainer ¶
type SolrDaoContainer struct {
// contains filtered or unexported fields
}
func (*SolrDaoContainer) AddOrUpdate ¶
func (this *SolrDaoContainer) AddOrUpdate(p *Post)
func (*SolrDaoContainer) AddPost ¶
func (this *SolrDaoContainer) AddPost(p *Post)
func (*SolrDaoContainer) AddPosts ¶
func (this *SolrDaoContainer) AddPosts(p []Post)
func (*SolrDaoContainer) Debug ¶
func (this *SolrDaoContainer) Debug(is_debug bool)
func (*SolrDaoContainer) DelPost ¶
func (this *SolrDaoContainer) DelPost(id interface{})
func (*SolrDaoContainer) DelPosts ¶
func (this *SolrDaoContainer) DelPosts(source string)
func (*SolrDaoContainer) GetPost ¶
func (this *SolrDaoContainer) GetPost(author, sort string, limit, start int) []Post
func (*SolrDaoContainer) GetPostById ¶
func (this *SolrDaoContainer) GetPostById(id int) *Post
func (*SolrDaoContainer) GetPostByLink ¶
func (this *SolrDaoContainer) GetPostByLink(url string) *Post
func (*SolrDaoContainer) IsPostUpdate ¶
func (this *SolrDaoContainer) IsPostUpdate(p *Post) bool
func (*SolrDaoContainer) Search ¶
func (this *SolrDaoContainer) Search(q string, limit, start int) (int, float64, []Post)
func (*SolrDaoContainer) UpdatePost ¶
func (this *SolrDaoContainer) UpdatePost(p *Post)
Click to show internal directories.
Click to hide internal directories.