urlbuilders

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 MovieURLBuilder

type MovieURLBuilder struct {
	BaseURL   string
	MovieID   string
	UpdatedAt string
}

func NewMovieURLBuilder

func NewMovieURLBuilder(baseURL string, movie *models.Movie) MovieURLBuilder

func (MovieURLBuilder) GetMovieBackImageURL

func (b MovieURLBuilder) GetMovieBackImageURL() string

func (MovieURLBuilder) GetMovieFrontImageURL

func (b MovieURLBuilder) GetMovieFrontImageURL(hasImage bool) 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