service

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

View Source
const STYLESHEET = "../static/dspace/oai.xsl"

const STYLESHEET = "../static/oai2.xsl"

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(w http.ResponseWriter, r *http.Request, username, password, realm string) bool

Types

type Archive added in v2.0.6

type Archive struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type DataTableResult

type DataTableResult struct {
	Draw            int64               `json:"draw"`
	RecordsTotal    int64               `json:"recordsTotal"`
	RecordsFiltered int64               `json:"recordsFiltered"`
	Data            []map[string]string `json:"data"`
	Sql             string              `json:"sql"`
}

type FairResultStatus added in v2.0.6

type FairResultStatus struct {
	Status       string              `json:"status"`
	Message      string              `json:"message,omitempty"`
	Item         *fair.ItemData      `json:"uuid,omitempty"`
	ArchiveItems []*fair.ArchiveItem `json:"archiveitems,omitempty"`
}

type Server

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

func NewServer

func NewServer(service, addr, name, password string, log zLogger.ZLogger, fair *fair.Fair, accessLog io.Writer, jwtKey string, jwtAlg []string, linkTokenExp time.Duration) (*Server, error)

func (*Server) InitTemplates

func (s *Server) InitTemplates() error

func (*Server) ListenAndServe

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

func (*Server) Shutdown

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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