Documentation ¶
Index ¶
Constants ¶
View Source
const (
CONFIG = "wechat"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleReader ¶
type ArticleReader struct {
API string
}
func (*ArticleReader) FetchArticles ¶
func (a *ArticleReader) FetchArticles() (articles []Article, err error)
func (*ArticleReader) FindByTitle ¶
func (a *ArticleReader) FindByTitle(title string) (articles []Article, err error)
type DefaultResponseManager ¶
type DefaultResponseManager struct {
ResponseMap map[string]interface{}
}
func NewDefaultResponseManager ¶
func NewDefaultResponseManager() (mgr *DefaultResponseManager)
NewDefaultResponseManager should always call this method to get a object
func (*DefaultResponseManager) GetResponse ¶
func (drm *DefaultResponseManager) GetResponse(keyword string) (interface{}, bool)
func (*DefaultResponseManager) InitCheck ¶
func (drm *DefaultResponseManager) InitCheck(weConfig *config.WeChatConfig)
type ResponseManager ¶
type ResponseManager interface { GetResponse(string) (interface{}, bool) InitCheck(weConfig *config.WeChatConfig) }
Click to show internal directories.
Click to hide internal directories.