Documentation ¶
Index ¶
- Constants
- func Init(c Config)
- func SendPixivBigPic(ctx *ZeroBot.Ctx, data setu)
- func SendPixivPic(ctx *ZeroBot.Ctx, data setu)
- func SendSomePic(ctx *ZeroBot.Ctx, data []setu)
- type Config
- type SetuPixivApi
- func (pixivapi *SetuPixivApi) AddPicToDB(illust pixiv.Illust) error
- func (pixivapi *SetuPixivApi) DownloadPic(id uint64) error
- func (pixivapi *SetuPixivApi) GetPic(id, page uint64) ([]byte, error)
- func (pixivapi *SetuPixivApi) GetUserAllPic(uid uint64) int
- func (pixivapi *SetuPixivApi) Init()
- func (pixivapi *SetuPixivApi) Login(token, retoken string, time time.Time) error
- func (pixivapi *SetuPixivApi) SetTokenAndLogin(token, retoken string) error
Constants ¶
View Source
const (
API = "https://api.lolicon.app/setu/v2"
)
View Source
const PATH = "data/setu/cache"
View Source
const PIXAPI_RE_TOKEN_KEY = "setu_pixivapi_refresh_token"
View Source
const PIXAPI_TOKEN_KEY = "setu_pixivapi_token"
View Source
const PIXAPI_TOKEN_TIME_KEY = "setu_pixivapi_time"
View Source
const PIXIV_IMG_PROXY = "https://pixiv.re"
Variables ¶
This section is empty.
Functions ¶
func SendPixivBigPic ¶
func SendPixivPic ¶
func SendSomePic ¶
Types ¶
type SetuPixivApi ¶
type SetuPixivApi struct {
App *pixiv.AppPixivAPI
}
func (*SetuPixivApi) AddPicToDB ¶
func (pixivapi *SetuPixivApi) AddPicToDB(illust pixiv.Illust) error
func (*SetuPixivApi) DownloadPic ¶
func (pixivapi *SetuPixivApi) DownloadPic(id uint64) error
func (*SetuPixivApi) GetUserAllPic ¶
func (pixivapi *SetuPixivApi) GetUserAllPic(uid uint64) int
func (*SetuPixivApi) Init ¶
func (pixivapi *SetuPixivApi) Init()
func (*SetuPixivApi) Login ¶
func (pixivapi *SetuPixivApi) Login(token, retoken string, time time.Time) error
func (*SetuPixivApi) SetTokenAndLogin ¶
func (pixivapi *SetuPixivApi) SetTokenAndLogin(token, retoken string) error
Click to show internal directories.
Click to hide internal directories.