bangbang

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateFS embed.FS

Functions

This section is empty.

Types

type BBDetail

type BBDetail struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBDetail) ServeHTTP

func (bb *BBDetail) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBDetail) SetRoutes

func (bb *BBDetail) SetRoutes(pathPrefix string, router *mux.Router) error

type BBDocs

type BBDocs struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBDocs) ServeHTTP

func (bb *BBDocs) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBDocs) SetRoutes

func (bb *BBDocs) SetRoutes(pathPrefix string, router *mux.Router) error

type BBGrid

type BBGrid struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBGrid) ServeHTTP

func (bb *BBGrid) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBGrid) SetRoutes

func (bb *BBGrid) SetRoutes(pathPrefix string, router *mux.Router) error

type BBHome

type BBHome struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBHome) ServeHTTP

func (bb *BBHome) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBHome) SetRoutes

func (bb *BBHome) SetRoutes(pathPrefix string, router *mux.Router) error

type BBIndex

type BBIndex struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBIndex) ServeHTTP

func (bb *BBIndex) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBIndex) SetRoutes

func (bb *BBIndex) SetRoutes(pathPrefix string, router *mux.Router) error

type BBList

type BBList struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBList) ServeHTTP

func (bb *BBList) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBList) SetRoutes

func (bb *BBList) SetRoutes(pathPrefix string, router *mux.Router) error

type BBSalon

type BBSalon struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBSalon) ServeHTTP

func (bb *BBSalon) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBSalon) SetRoutes

func (bb *BBSalon) SetRoutes(pathPrefix string, router *mux.Router) error

type BBZoom

type BBZoom struct {
	*BangBang
	// contains filtered or unexported fields
}

func (*BBZoom) ServeHTTP

func (bb *BBZoom) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BBZoom) SetRoutes

func (bb *BBZoom) SetRoutes(pathPrefix string, router *mux.Router) error

type BangBang

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

func NewBangBang

func NewBangBang(index bleve.Index, urlExt *url.URL, dataUrl *url.URL, collagePos map[string][]image.Rectangle, templateFS fs.FS, salonZoom float64, logger *logging.Logger, station, dev bool) (*BangBang, error)

func (*BangBang) DetailHandler

func (bb *BangBang) DetailHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) DocumentHandler

func (bb *BangBang) DocumentHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) GetSignatureP

func (bb *BangBang) GetSignatureP(posX, posY int) string

func (*BangBang) GetWork

func (bb *BangBang) GetWork(signature string) (*search.SourceData, error)

func (*BangBang) GetWorks

func (bb *BangBang) GetWorks() ([]*search.SourceData, error)

func (*BangBang) GetWorksSalon

func (bb *BangBang) GetWorksSalon() (map[string]*salon.Work, error)

func (*BangBang) GridHandler

func (bb *BangBang) GridHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) HomeHandler

func (bb *BangBang) HomeHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) IndexHandler

func (bb *BangBang) IndexHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) ListHandler

func (bb *BangBang) ListHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) SalonHandler

func (bb *BangBang) SalonHandler(w http.ResponseWriter, r *http.Request)

func (*BangBang) ZoomHandler

func (bb *BangBang) ZoomHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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