Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserAgent = "Monazilla/1.00 (Tomato/0.0.1)" BBSMenuFile = "bbsmenu.html" SubjectFile = "subject.txt" )
Variables ¶
View Source
var ( BoardCapacity = 1000 ThreadCapacity = 50000 )
View Source
var BBSMenu = []string{
`http://menu.2ch.net/bbsmenu.html`,
`http://www.zonubbs.net/bbsmenu.html`,
`http://azlucky.s25.xrea.com/2chboard/bbsmenu.html`,
}
View Source
var BoardURLException = map[string]bool{ "http://jp.8ch.net/": true, "http://www.2ch.net/": true, "http://info.2ch.net/": true, "http://irc.2ch.net:9090": true, "http://search.2ch.net/": true, "http://dig.2ch.net/": true, "http://i.2ch.net/": true, "http://www.2ch.net/kakolog.html": true, "http://notice.2ch.net/": true, "http://be.2ch.net/": true, "http://2ch.tora3.net/": true, }
Functions ¶
Types ¶
type Board ¶
Board is a set of threads.
func ParseBBSMenu ¶
ParseBBSMenu parase BBS Menu data stored in r. Data stored in r are expected to be UTF-8, so decode 2ch's default encoding (ShiftJIS) in advance.
func (*Board) FetchThreadlist ¶
FetchThreadlist returns
type ErrorManager ¶
type ErrorManager struct {
// contains filtered or unexported fields
}
ErrorManager holds
func (ErrorManager) Error ¶
func (e ErrorManager) Error() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager controls
func NewManager ¶
NewManager generates new Manager with datastore path.
type Thread ¶
Thread
func (*Thread) FetchDatData ¶
FetchDatData fetch dat file from specified URL and write its data to w.
func (*Thread) ParseDatData ¶
ParseDatData parses data stored in r to Thread. r should be UTF-8 encoded. Specification is written here: http://info.2ch.net/index.php/Monazilla/develop/dat
Click to show internal directories.
Click to hide internal directories.