server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocationServiceHealth

func CheckLocationServiceHealth(c Conf) error

CheckLocationServiceHealth confirms the resize service is available to resize images.

func CheckResizeServiceHealth

func CheckResizeServiceHealth(c Conf) error

CheckResizeServiceHealth confirms the resize service is available to resize images.

func CreateKey

func CreateKey(w http.ResponseWriter, r *http.Request)

CreateKey handles a post request to create a new api key.

func DecodeURL

func DecodeURL(s string) (string, error)

func GetHash

func GetHash(hash string) uint32

func IsScanInProgress

func IsScanInProgress() bool

IsScanInProgress returns true if a scan is currently in progress

func NotAllowed

func NotAllowed(w http.ResponseWriter, r *http.Request)

func NotFound

func NotFound(w http.ResponseWriter, r *http.Request)

func Purge

func Purge(w http.ResponseWriter, r *http.Request, cache *cache.Cache, c Conf)

func RemoveKey

func RemoveKey(w http.ResponseWriter, r *http.Request)

RemoveKey handles a post request to remove an API key.

func Scan

func Scan(w http.ResponseWriter, r *http.Request, scanType string, cache *cache.Cache)

func Send404

func Send404(w http.ResponseWriter, r *http.Request)

Send404 explicitly sends a 404 Not Found response

func ServeAddUser

func ServeAddUser(w http.ResponseWriter, r *http.Request)

ServeAddUser serves the add user page.

func ServeAdmin

func ServeAdmin(w http.ResponseWriter, r *http.Request, c Conf)

ServeAdmin serves the admin page.

func ServeFavorites

func ServeFavorites(w http.ResponseWriter, r *http.Request)

func ServeFolder

func ServeFolder(w http.ResponseWriter, r *http.Request)

func ServeFolders

func ServeFolders(w http.ResponseWriter, r *http.Request)

func ServeGear

func ServeGear(w http.ResponseWriter, r *http.Request)

func ServeLogOut

func ServeLogOut(w http.ResponseWriter, r *http.Request)

ServeLogOut handles a get request to remove a user's session.

func ServeMap

func ServeMap(w http.ResponseWriter, r *http.Request)

func ServeMedia

func ServeMedia(w http.ResponseWriter, r *http.Request)

func ServeOnThisDay

func ServeOnThisDay(w http.ResponseWriter, r *http.Request)

func ServePoll

func ServePoll(w http.ResponseWriter, r *http.Request)

ServePoll handles requests for new events.

func ServeSignIn

func ServeSignIn(w http.ResponseWriter, r *http.Request)

ServeSignIn serves the sign in page.

func ServeStatus

func ServeStatus(w http.ResponseWriter, r *http.Request, c Conf)

ServeStatus handles requests for status on initial page loads.

func ServeTag

func ServeTag(w http.ResponseWriter, r *http.Request)

func ServeTags

func ServeTags(w http.ResponseWriter, r *http.Request)

func ServeThumbnail

func ServeThumbnail(w http.ResponseWriter, r *http.Request)

ServeThumbnail passes the thumbnail request from the router to the handler.

func ServeTiles

func ServeTiles(w http.ResponseWriter, r *http.Request, c Conf)

func ServeTimeline

func ServeTimeline(w http.ResponseWriter, r *http.Request)

func ServeTranscode

func ServeTranscode(w http.ResponseWriter, r *http.Request)

ServeTranscode serves cached transcode files, otherwise serves generated transcode files on demand.

func SignIn

func SignIn(w http.ResponseWriter, r *http.Request, c Conf) error

SignIn handles a post request to create a session for an existing user.

func SignUp

func SignUp(w http.ResponseWriter, r *http.Request)

SignUp handles a post request to create a new user.

func ThumbScan

func ThumbScan(w http.ResponseWriter, r *http.Request)

Types

type ApiCredentials

type ApiCredentials = types.ApiCredentials

type CacheKey

type CacheKey = types.CacheKey

type Conf

type Conf = types.Conf

type ConfigKey

type ConfigKey = types.ConfigKey

type Days

type Days = types.Days

type Directory

type Directory = types.Directory

type Filter

type Filter = types.Filter

type FilterParams

type FilterParams = types.FilterParams

type Folder

type Folder = types.Folder

type Media

type Media = types.Media

type Meta

type Meta = types.Meta

type Notice

type Notice = notify.Notice

type ParamsKey

type ParamsKey = types.ParamsKey

type PrevNext

type PrevNext = types.PrevNext

type ResponsAuth

type ResponsAuth = types.ResponsAuth

type ResponseAdmin

type ResponseAdmin = types.ResponseAdmin

type ResponseFilter

type ResponseFilter = types.ResponseFilter

type ResponseFolders

type ResponseFolders = types.ResponseFolders

type ResponseGear

type ResponseGear = types.ResponseGear

type ResponseMap

type ResponseMap = types.ResponseMap

type ResponseMedia

type ResponseMedia = types.ResponseMedia

type ResponseMediaItems

type ResponseMediaItems = types.ResponseMediaItems

type ResponseNotFound

type ResponseNotFound = types.ResponseNotFound

type ResponseTags

type ResponseTags = types.ResponseTags

type Subject

type Subject = types.Subject

type Subjects

type Subjects = types.Subjects

type UserCredentials

type UserCredentials = types.UserCredentials

type UserKey

type UserKey = types.UserKey

Jump to

Keyboard shortcuts

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