urlbuilders

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package urlbuilders provides the builders used to build URLs to pass to clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GalleryURLBuilder

type GalleryURLBuilder struct {
	BaseURL   string
	GalleryID string
}

func NewGalleryURLBuilder

func NewGalleryURLBuilder(baseURL string, gallery *models.Gallery) GalleryURLBuilder

func (GalleryURLBuilder) GetCoverURL added in v0.27.0

func (b GalleryURLBuilder) GetCoverURL() string

func (GalleryURLBuilder) GetPreviewURL added in v0.27.0

func (b GalleryURLBuilder) GetPreviewURL() string

type GroupURLBuilder added in v0.27.0

type GroupURLBuilder struct {
	BaseURL   string
	GroupID   string
	UpdatedAt string
}

func NewGroupURLBuilder added in v0.27.0

func NewGroupURLBuilder(baseURL string, group *models.Group) GroupURLBuilder

func (GroupURLBuilder) GetGroupBackImageURL added in v0.27.0

func (b GroupURLBuilder) GetGroupBackImageURL() string

func (GroupURLBuilder) GetGroupFrontImageURL added in v0.27.0

func (b GroupURLBuilder) GetGroupFrontImageURL(hasImage bool) string

type ImageURLBuilder

type ImageURLBuilder struct {
	BaseURL   string
	ImageID   string
	Checksum  string
	UpdatedAt string
}

func NewImageURLBuilder

func NewImageURLBuilder(baseURL string, image *models.Image) ImageURLBuilder

func (ImageURLBuilder) GetImageURL

func (b ImageURLBuilder) GetImageURL() string

func (ImageURLBuilder) GetPreviewURL added in v0.21.0

func (b ImageURLBuilder) GetPreviewURL() string

func (ImageURLBuilder) GetThumbnailURL

func (b ImageURLBuilder) GetThumbnailURL() string

type PerformerURLBuilder

type PerformerURLBuilder struct {
	BaseURL     string
	PerformerID string
	UpdatedAt   string
}

func NewPerformerURLBuilder

func NewPerformerURLBuilder(baseURL string, performer *models.Performer) PerformerURLBuilder

func (PerformerURLBuilder) GetPerformerImageURL

func (b PerformerURLBuilder) GetPerformerImageURL(hasImage bool) string

type SceneMarkerURLBuilder added in v0.21.0

type SceneMarkerURLBuilder struct {
	BaseURL  string
	SceneID  string
	MarkerID string
}

func NewSceneMarkerURLBuilder added in v0.21.0

func NewSceneMarkerURLBuilder(baseURL string, sceneMarker *models.SceneMarker) SceneMarkerURLBuilder

func (SceneMarkerURLBuilder) GetPreviewURL added in v0.21.0

func (b SceneMarkerURLBuilder) GetPreviewURL() string

func (SceneMarkerURLBuilder) GetScreenshotURL added in v0.21.0

func (b SceneMarkerURLBuilder) GetScreenshotURL() string

func (SceneMarkerURLBuilder) GetStreamURL added in v0.21.0

func (b SceneMarkerURLBuilder) GetStreamURL() string

type SceneURLBuilder

type SceneURLBuilder struct {
	BaseURL   string
	SceneID   string
	UpdatedAt string
}

func NewSceneURLBuilder

func NewSceneURLBuilder(baseURL string, scene *models.Scene) SceneURLBuilder

func (SceneURLBuilder) GetCaptionURL added in v0.15.0

func (b SceneURLBuilder) GetCaptionURL() string

func (SceneURLBuilder) GetFunscriptURL

func (b SceneURLBuilder) GetFunscriptURL() string

func (SceneURLBuilder) GetInteractiveHeatmapURL

func (b SceneURLBuilder) GetInteractiveHeatmapURL() string

func (SceneURLBuilder) GetScreenshotURL

func (b SceneURLBuilder) GetScreenshotURL() string

func (SceneURLBuilder) GetSpriteURL

func (b SceneURLBuilder) GetSpriteURL(checksum string) string

func (SceneURLBuilder) GetSpriteVTTURL

func (b SceneURLBuilder) GetSpriteVTTURL(checksum string) string

func (SceneURLBuilder) GetStreamPreviewImageURL

func (b SceneURLBuilder) GetStreamPreviewImageURL() string

func (SceneURLBuilder) GetStreamPreviewURL

func (b SceneURLBuilder) GetStreamPreviewURL() string

func (SceneURLBuilder) GetStreamURL

func (b SceneURLBuilder) GetStreamURL(apiKey string) *url.URL

type StudioURLBuilder

type StudioURLBuilder struct {
	BaseURL   string
	StudioID  string
	UpdatedAt string
}

func NewStudioURLBuilder

func NewStudioURLBuilder(baseURL string, studio *models.Studio) StudioURLBuilder

func (StudioURLBuilder) GetStudioImageURL

func (b StudioURLBuilder) GetStudioImageURL(hasImage bool) string

type TagURLBuilder

type TagURLBuilder struct {
	BaseURL   string
	TagID     string
	UpdatedAt string
}

func NewTagURLBuilder

func NewTagURLBuilder(baseURL string, tag *models.Tag) TagURLBuilder

func (TagURLBuilder) GetTagImageURL

func (b TagURLBuilder) GetTagImageURL(hasImage bool) string

Jump to

Keyboard shortcuts

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