Versions in this module Expand all Collapse all v1 v1.1.0 Mar 23, 2019 Changes in this version + var ErrNeedsOneSlash = errors.New("derpigo: this needs one slash in its invocation") + type Connection struct + func New(options ...Option) (c *Connection) + func (c *Connection) DeleteImage(ctx context.Context, id, why string) error + func (c *Connection) GetFilter(ctx context.Context, id int64) (f *Filter, err error) + func (c *Connection) GetForum(ctx context.Context, name string) (*Forum, error) + func (c *Connection) GetImage(ctx context.Context, id int) (*Image, []Interaction, error) + func (c *Connection) GetThreadByName(ctx context.Context, name string) ([]Post, error) + func (c *Connection) GetUser(ctx context.Context, id string) (*User, error) + type DupeReportModifier struct + Avatar string + CommentCount int + ID int64 + Name string + PostCount int + TopicCount int + UploadCount int + type DuplicateReport struct + CreatedAt string + ID int64 + ImageIDNumber int + Modifier *DupeReportModifier + Reason string + State string + TargetImageIDNumber int + User interface{} + type Error struct + RequestID string + Underlying error + func NewError(underlying error, resp *http.Response) *Error + func (e *Error) Error() string + type Filter struct + Description string + HiddenComplex string + HiddenTagIds []int64 + HiddenTags []string + ID int64 + Name string + Public bool + SpoileredComplex string + SpoileredTagIds []int64 + SpoileredTags []string + System bool + UserCount int + UserID int64 + type Forum struct + Topics []struct{ ... } + type Image struct + AspectRatio float64 + CommentCount int + CreatedAt time.Time + Description string + Downvotes int + DuplicateReports []*DuplicateReport + Faves int + FileName string + FirstSeenAt time.Time + Height int + ID int + Image string + Interactions []interface{} + IsOptimized bool + IsRendered bool + MimeType string + OrigSha512Hash string + OriginalFormat string + Representations struct{ ... } + Score int + Sha512Hash string + SourceURL string + TagIds []int64 + Tags string + UpdatedAt time.Time + Uploader string + UploaderID interface{} + Upvotes int + Width int + type Interaction struct + ID int + ImageID int + InteractionType string + UserID int + Value string + type Option func(*Connection) + func WithAPIKey(apiKey string) Option + func WithDomain(domain string) Option + type Post struct + Author string + Body string + ID int64 + Subject string + TopicID int64 + type User struct + Avatar string + CommentCount int + ID int64 + Name string + PostCount int + TopicCount int + UploadCount int Other modules containing this package within.website/derpigo/v2