v2

package
v0.0.0-...-ee699aa Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Illust *Illust
}

func NewAPI

func NewAPI(client pixiv.Session) *API

func (*API) DoGet

func (a *API) DoGet(ctx context.Context, path string, params map[string]string) (interface{}, error)

type Illust

type Illust struct {
	BasePath string
	// contains filtered or unexported fields
}

func NewIllust

func NewIllust(client pixiv.Session) *Illust

func NewIllustBookmark

func NewIllustBookmark(client pixiv.Session) *Illust

func (*Illust) Comments

func (i *Illust) Comments(ctx context.Context, illustID uint64) ([]*pixiv.Comment, string, error)

func (*Illust) Follow

func (i *Illust) Follow(ctx context.Context, q *IllustFollowQuery) ([]*pixiv.Illust, string, error)

func (*Illust) Related

func (i *Illust) Related(ctx context.Context, illustID uint64) ([]*pixiv.Illust, string, error)

type IllustBookmark

type IllustBookmark struct {
	BasePath string
	// contains filtered or unexported fields
}

func (*IllustBookmark) Add

func (ib *IllustBookmark) Add(ctx context.Context, illustID uint64, restrict string) error

restrict :: public, private

type IllustFollowQuery

type IllustFollowQuery struct {
	// all, (private?, public?)
	Restrict string `url:"restrict"`
	Offset   int    `url:"offset,omitempty"`
}

Jump to

Keyboard shortcuts

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