Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidFitMode ¶
IsValidFitMode returns true if the fit mode is valid.
func RegisterRoutes ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetViewerSettings ¶
func (svc *Service) GetViewerSettings(ctx context.Context, userID int) (*models.UserSettings, error)
GetViewerSettings retrieves viewer settings for a user, returning defaults if none exist.
type ViewerSettingsPayload ¶
type ViewerSettingsPayload struct {
PreloadCount int `json:"preload_count"`
FitMode string `json:"fit_mode"`
}
ViewerSettingsPayload is the request body for updating viewer settings.
type ViewerSettingsResponse ¶
type ViewerSettingsResponse struct {
PreloadCount int `json:"preload_count"`
FitMode string `json:"fit_mode"`
}
ViewerSettingsResponse is the response for viewer settings.
Click to show internal directories.
Click to hide internal directories.