article

package
v0.0.0-...-aaa2fb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG = "wechat"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Title       string
	Description string
	URI         string
}

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL