Documentation
¶
Index ¶
- func DefaultToot(config DefaultTootConfig) (func(text string, images []io.Reader) error, error)
- func NewDefaultDetector(databasePath string) (*defaultDetector, error)
- func ScreenShotOneTakeScreenShot(config ScreenShotOneConfig) func(url string) (io.Reader, error)
- type AkizukiBot
- func (b *AkizukiBot) RunOnce() error
- func (b *AkizukiBot) SetFormat(f func(item *Item) string) *AkizukiBot
- func (b *AkizukiBot) SetNewPageDetector(d NewPageDetector) *AkizukiBot
- func (b *AkizukiBot) SetParseCatalog(f func() ([]string, error)) *AkizukiBot
- func (b *AkizukiBot) SetParseItem(f func(url string) (*Item, error)) *AkizukiBot
- func (b *AkizukiBot) SetTakeScreenshot(f func(url string) (io.Reader, error)) *AkizukiBot
- func (b *AkizukiBot) SetToot(f func(text string, images []io.Reader) error) *AkizukiBot
- func (b *AkizukiBot) UpdateDB() error
- type DefaultTootConfig
- type Item
- type NewPageDetector
- type ScreenShotOneConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultToot ¶
func NewDefaultDetector ¶
func ScreenShotOneTakeScreenShot ¶
func ScreenShotOneTakeScreenShot(config ScreenShotOneConfig) func(url string) (io.Reader, error)
Types ¶
type AkizukiBot ¶
type AkizukiBot struct {
// contains filtered or unexported fields
}
func NewBot ¶
func NewBot() (*AkizukiBot, error)
func (*AkizukiBot) RunOnce ¶
func (b *AkizukiBot) RunOnce() error
func (*AkizukiBot) SetFormat ¶
func (b *AkizukiBot) SetFormat(f func(item *Item) string) *AkizukiBot
func (*AkizukiBot) SetNewPageDetector ¶
func (b *AkizukiBot) SetNewPageDetector(d NewPageDetector) *AkizukiBot
func (*AkizukiBot) SetParseCatalog ¶
func (b *AkizukiBot) SetParseCatalog(f func() ([]string, error)) *AkizukiBot
func (*AkizukiBot) SetParseItem ¶
func (b *AkizukiBot) SetParseItem(f func(url string) (*Item, error)) *AkizukiBot
func (*AkizukiBot) SetTakeScreenshot ¶
func (b *AkizukiBot) SetTakeScreenshot(f func(url string) (io.Reader, error)) *AkizukiBot
func (*AkizukiBot) SetToot ¶
func (b *AkizukiBot) SetToot(f func(text string, images []io.Reader) error) *AkizukiBot
func (*AkizukiBot) UpdateDB ¶
func (b *AkizukiBot) UpdateDB() error
type DefaultTootConfig ¶
type NewPageDetector ¶
type ScreenShotOneConfig ¶
Click to show internal directories.
Click to hide internal directories.