bridge

package
v2.0.0-...-8860fe1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	Title   string
	Authors string
	Verlag  string
	City    string
	Year    string
	ISBN    string
}

type Class

type Class struct {
	DE, EN string
	Links  map[string][]Link
}

type Kiste

type Kiste struct {
	Point []*KistePoint       `json:"point"`
	ASide string              `json:"aside"`
	Area  string              `json:"area"`
	Level map[int]*KisteLevel `json:"level"`
}

type KisteData

type KisteData map[string]Kiste

type KisteLevel

type KisteLevel struct {
	Indent float64 `json:"indent"`
	Boxes  int     `json:"boxes"`
}

type KistePoint

type KistePoint struct {
	X int64 `json:"x"`
	Y int64 `json:"y"`
}
type Link struct {
	Type, HRef, Label string
}

type PrimoMapper

type PrimoMapper interface {
	GetImage(signature string) (imgData []byte, mime string, err error)
	GetBarcode(signature, docID, barcode string) (imgData []byte, mime string, err error)
	SetData(signature, docID, barcode, projectID string) error
	GetData(signature string) (barcode string, docID string, box string, err error)
	GetSystematik(box string) (string, error)
	GetSystematikHierarchy(sys string) (map[string]map[string]Class, error)
	Init() error
}

type Server

type Server struct {
	AddrExt string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(service, addr, addrExt, primoSourceData, primoDeepLink string, staticFS, templateFS fs.FS, mapper PrimoMapper, log *logging.Logger, accessLog io.Writer, dev bool) (*Server, error)

func (*Server) InitMapperHandler

func (s *Server) InitMapperHandler(w http.ResponseWriter, r *http.Request)

func (*Server) InitTemplates

func (s *Server) InitTemplates() error

func (*Server) JSONHandler

func (s *Server) JSONHandler(w http.ResponseWriter, r *http.Request)

func (*Server) JSONSystematikHandler

func (s *Server) JSONSystematikHandler(w http.ResponseWriter, r *http.Request)

func (*Server) KistenlisteHandler

func (s *Server) KistenlisteHandler(w http.ResponseWriter, r *http.Request)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(cert, key string) (err error)

func (*Server) Marc21Handler

func (s *Server) Marc21Handler(w http.ResponseWriter, r *http.Request)

func (*Server) SearchQRCodeHandler

func (s *Server) SearchQRCodeHandler(w http.ResponseWriter, r *http.Request)

func (*Server) SearchThumbnailHandler

func (s *Server) SearchThumbnailHandler(w http.ResponseWriter, r *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) SystematikHandler

func (s *Server) SystematikHandler(w http.ResponseWriter, r *http.Request)

func (*Server) ThreeDHandler

func (s *Server) ThreeDHandler(w http.ResponseWriter, r *http.Request)

func (*Server) ViewerHandler

func (s *Server) ViewerHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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