Documentation
¶
Index ¶
- Constants
- func CalcAspectSize(width, height, maxWidth, maxHeight int64) size
- func NewDefaultIndexFS(fs http.FileSystem, indexFile string) http.FileSystem
- func NewJWT(secret string, subject string, alg string, valid int64, domain string, ...) (tokenString string, err error)
- type All
- type CollFacetType
- type Controller
- type DefaultIndexFS
- type Property
- type Query
- type String
- type User
Constants ¶
View Source
const Version = "2.0.22"
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 CollFacetType ¶
type CollFacetType struct {
Id int64 `toml:"id" json:"id"`
//Name string `toml:"name" json:"name"`
Count int `toml:"count" json:"count"`
Title string `toml:"title" json:"title"`
Url string `toml:"url" json:"url"`
Identifier string `toml:"identifier" json:"identifier"`
Image string `toml:"image" json:"image"`
Contact string `toml:"contact" json:"contact"`
}
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, client client.RevCatGraphQLClient, zoomPos map[string][]image.Rectangle, mediaserverBase, mediaserverKey string, mediaserverTokenExp time.Duration, bundle *i18n.Bundle, collections []*CollFacetType, fieldMapping map[string]string, embeddings *openai.ClientV2, templateDebug, zoomOnly bool, loginURL, loginIssuer, loginJWTKey string, loginJWTAlgs []string, locations map[string][]net.IPNet, facetInclude, facetExclude []string, baseFilter []*client.InFilter, mode string, logger zLogger.ZLogger) (*Controller, error)
func (*Controller) AuthHandler ¶
func (ctrl *Controller) AuthHandler(ctx *gin.Context)
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
}
Click to show internal directories.
Click to hide internal directories.