Documentation ¶
Index ¶
- Variables
- func FormatInt(n int64, groupSize int, grouping byte) string
- func StructToMap(value interface{}) map[string][]interface{}
- type BagitOverview
- type BagitOverviewCheck
- type BagitOverviewFile
- type BagitOverviewIngest
- type BagitOverviewMime
- type Content
- type Indexer
- type Overview
- type OverviewBagit
- type Server
- type Statistics
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFS embed.FS
View Source
var TemplateFS embed.FS
Functions ¶
func FormatInt ¶
FormatInt formats an integer with grouping decimals, in decimal radix. Grouping signs are inserted after every groupSize digits, starting from the right. A groupingSize less than 1 will default to 3. Only ASCII grouping decimal signs are supported which may be provided with grouping.
For details, see https://github.com/icza/gox For details, see https://stackoverflow.com/a/31046325/1705598
func StructToMap ¶
func StructToMap(value interface{}) map[string][]interface{}
Types ¶
type BagitOverview ¶
type BagitOverview struct { BagitID int64 Name string Size int64 Creator string SHA512, SHA512_AES string CreationDate time.Time HealthOK bool Quality float64 BagInfo string Checks []*BagitOverviewCheck Files []*BagitOverviewFile Ingest []*BagitOverviewIngest Mimetypes []*BagitOverviewMime Content []*Content Costs float64 }
type BagitOverviewCheck ¶
type BagitOverviewFile ¶
type BagitOverviewIngest ¶
type BagitOverviewMime ¶
type Indexer ¶
type Indexer struct { Duration int64 `json:"duration,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Errors map[string]string `json:"errors,omitempty"` Mimetype string `json:"mimetype,omitempty"` NSRL []indexer.ActionNSRLMeta `json:"nsrl,omitempty"` Identify map[string]interface{} `json:"identify,omitempty"` FFProbe ffmpeg_models.Metadata `json:"ffprobe,omitempty"` Siegfried []siegfried_pronom.Identification `json:"siegfried,omitempty"` Tika []map[string]interface{} `json:"tika,omitempty"` Exif map[string]interface{} `json:"exif,omitempty"` Clamav map[string]string `json:"clamav,omitempty"` }
type Overview ¶
type Overview struct { Size int64 Files int64 Status string Bagits []*OverviewBagit HealthOK, HealthFailed int64 }
type OverviewBagit ¶
type Server ¶
type Server struct { AddrExt string // contains filtered or unexported fields }
func (*Server) InitTemplates ¶
func (*Server) ListenAndServe ¶
type Statistics ¶
type Statistics struct {
// contains filtered or unexported fields
}
func NewStatistics ¶
func NewStatistics(db *sql.DB, schema string, log *logging.Logger) (*Statistics, error)
func (*Statistics) BagitOverview ¶
func (stat *Statistics) BagitOverview(id int64) (*BagitOverview, error)
func (*Statistics) Overview ¶
func (stat *Statistics) Overview() (*Overview, error)
Click to show internal directories.
Click to hide internal directories.