Versions in this module Expand all Collapse all v0 v0.3.0 Mar 22, 2024 Changes in this version + const DefaultElastic + const DefaultIndex + const DefaultProxyTo + const DefaultTLSCache + const DefaultTitle + var CoreProperties = map[identifier.Identifier]Document + func GenerateCoreProperties(properties []struct{ ... }) + func GetCorePropertyID(mnemonic string) identifier.Identifier + func GetCorePropertyReference(mnemonic string) document.Reference + func GetID(namespace uuid.UUID, args ...interface{}) identifier.Identifier + func InsertOrReplaceDocument(processor *elastic.BulkProcessor, index string, doc *Document) + func SaveCoreProperties(ctx context.Context, logger zerolog.Logger, esClient *elastic.Client, ...) errors.E + func UpdateDocument(processor *elastic.BulkProcessor, index string, seqNo, primaryTerm int64, ...) + type Build struct + BuildTimestamp string + Revision string + Version string + type Config struct + Populate PopulateCommand + Serve ServeCommand + type Document struct + Claims *document.ClaimTypes + Mnemonic document.Mnemonic + func (d *Document) Add(claim document.Claim) errors.E + func (d *Document) AllClaims() []document.Claim + func (d *Document) Get(propID identifier.Identifier) []document.Claim + func (d *Document) GetByID(id identifier.Identifier) document.Claim + func (d *Document) MergeFrom(other ...*Document) errors.E + func (d *Document) Remove(propID identifier.Identifier) []document.Claim + func (d *Document) RemoveByID(id identifier.Identifier) document.Claim + func (d *Document) Visit(visitor document.Visitor) errors.E + func (d Document) Reference() document.Reference + type Globals struct + Config cli.ConfigFlag + Elastic string + Index string + Sites []Site + SizeField bool + Version kong.VersionFlag + func (g *Globals) Validate() error + type PopulateCommand struct + func (c *PopulateCommand) Run(globals *Globals) errors.E + type ServeCommand struct + Domain string + Server waf.Server[*Site] + Title string + func (c *ServeCommand) Init(globals *Globals, files fs.ReadFileFS) (http.Handler, *Service, errors.E) + func (c *ServeCommand) Run(globals *Globals) errors.E + func (c *ServeCommand) Validate() error + type Service struct + ESClient *elastic.Client + func (s *Service) DocumentGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentGetGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearch(w http.ResponseWriter, req *http.Request, _ waf.Params) + func (s *Service) DocumentSearchAmountFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchFiltersGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchGet(w http.ResponseWriter, req *http.Request, _ waf.Params) + func (s *Service) DocumentSearchIndexFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchPost(w http.ResponseWriter, req *http.Request, _ waf.Params) + func (s *Service) DocumentSearchRelFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchSizeFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchStringFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) DocumentSearchTimeFilterGet(w http.ResponseWriter, req *http.Request, params waf.Params) + func (s *Service) Home(w http.ResponseWriter, req *http.Request, _ waf.Params) + func (s *Service) License(w http.ResponseWriter, req *http.Request, _ waf.Params) + func (s *Service) Notice(w http.ResponseWriter, req *http.Request, _ waf.Params) + type Site struct + Build *Build + Index string + SizeField bool + Title string + func (s *Site) Decode(ctx *kong.DecodeContext) error