server

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcAspectSize

func CalcAspectSize(width, height, maxWidth, maxHeight int64) size

func NewDefaultIndexFS

func NewDefaultIndexFS(fs http.FileSystem, indexFile string) http.FileSystem

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(localAddr, externalAddr, searchAddr, detailAddr string, protoHTTP bool, auth map[string]string, cert *tls.Certificate, templateFS, staticFS, dataFS fs.FS, dir *directus.Directus, client client.RevCatGraphQLClient, zoomPos map[string][]image.Rectangle, catalogID int, mediaserverBase string, bundle *i18n.Bundle, embeddings *openai.ClientV2, templateDebug, zoomOnly bool, logger zLogger.ZLogger) (*Controller, error)

func (*Controller) Start

func (ctrl *Controller) Start() error

func (*Controller) Stop

func (ctrl *Controller) Stop() error

type DefaultIndexFS

type DefaultIndexFS struct {
	// contains filtered or unexported fields
}

func (*DefaultIndexFS) Open

func (d *DefaultIndexFS) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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