types

package
v0.0.0-...-c90f5ad Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrFloodWait            = "FLOODWAIT_X"
	ErrUnauthorized         = "UNAUTHORIZED"
	ErrBadRequest           = "BAD_REQUEST"
	ErrInternalServer       = "INTERNAL_SERVER_ERROR"
	ErrLinkAlreadyFollowing = "LINK_ALREADY_FOLLOWING"
	ErrLimitExceeded        = "LIMIT_EXCEEDED"
	ErrInvalidLanguageCode  = "INVALID_LANGUAGE_CODE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLinkRequest

type AddLinkRequest struct {
	Link            string `json:"link"`
	NotifyAvailable bool   `json:"notify_available"`
	NotifyClosed    bool   `json:"notify_closed"`
}

type App

type App struct {
	BaseApp
	Links []Link `json:"links"`
}

type BaseApp

type BaseApp struct {
	ID          int64       `json:"id"`
	Name        pgtype.Text `json:"name"`
	IconURL     pgtype.Text `json:"icon_url"`
	Description pgtype.Text `json:"description"`
	Followers   int64       `json:"followers"`
}
type BaseLink struct {
	ID               int64                 `json:"id"`
	URL              string                `json:"url"`
	Status           models.LinkStatusEnum `json:"status"`
	IsPublic         bool                  `json:"is_public"`
	AddedAt          int64                 `json:"added_at"`
	LastAvailability int64                 `json:"last_availability"`
	LastUpdate       int64                 `json:"last_update"`
}

type Config

type Config struct {
	LimitFree    int64 `json:"limit_free"`
	LimitPremium int64 `json:"limit_premium"`

	MaxFollowingLinks int64 `json:"max_following_links"`
}

type EditLinkSettingsRequest

type EditLinkSettingsRequest struct {
	NotifyAvailable bool `json:"notify_available"`
	NotifyClosed    bool `json:"notify_closed"`
}

type ErrorResponse

type ErrorResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Seconds int    `json:"seconds,omitempty"`
}

type LangPack

type LangPack struct {
	LangCode string                    `json:"lang_code"`
	Strings  map[translator.Key]string `json:"strings"`
}
type Link struct {
	BaseLink
	NotifyAvailable bool `json:"notify_available"`
	NotifyClosed    bool `json:"notify_closed"`
}

type TrendingApp

type TrendingApp struct {
	BaseApp
	Links []BaseLink `json:"links"`
}

Jump to

Keyboard shortcuts

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