service

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 34 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 NewResultMessage added in v2.0.10

func NewResultMessage(ctx *gin.Context, status int, err error)

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 FairResultMessage added in v2.0.10

type FairResultMessage struct {
	Status  string `json:"status"`
	Message string `json:"message,omitempty"`
}

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 HTTPResultMessage added in v2.0.10

type HTTPResultMessage struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

type Server

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

func NewServer

func NewServer(service, addr, addrExt, name, password, adminBearer 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(tlsConfig *tls.Config) (err error)

func (*Server) Shutdown

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

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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