Documentation
¶
Index ¶
- func DefaultMiddleware() []func(http.Handler) http.Handler
- type BuildVersionInfo
- type Option
- func SetBuildVersionInfo(info *BuildVersionInfo) Option
- func SetBulkService(svc *bulk.Service) Option
- func SetDataNodeProxy(dataNode string, proxyRoutes ...ProxyRoute) Option
- func SetDisableRequestLogger() Option
- func SetEADService(svc *ead.Service) Option
- func SetElasticSearchProxy(proxy *elasticsearch.Proxy) Option
- func SetEnableLegacyConfig(cfgFile string) Option
- func SetImageProxyService(service *imageproxy.Service) Option
- func SetLegacyRouters(routers ...RouterFunc) Option
- func SetLogger(l *logger.CustomLogger) Option
- func SetMetricsPort(port int) Option
- func SetMiddleware(middleware ...func(next http.Handler) http.Handler) Option
- func SetOAIPMHService(svc *oaipmh.Service) Option
- func SetOrganisationService(service *organization.Service) Option
- func SetPort(port int) Option
- func SetRevisionService(service *revision.Service) Option
- func SetRouters(rb ...RouterFunc) Option
- func SetShutdownHook(name string, hook Shutdown) Option
- func SetTLS(cert, key string) Option
- type ProxyRoute
- type RouterFunc
- type Server
- type Service
- type Shutdown
- type WorkerService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildVersionInfo ¶ added in v0.1.8
type BuildVersionInfo struct { Version string `json:"version"` Commit string `json:"commit"` BuildAgent string `json:"buildAgent"` BuildDate string `json:"buildDate"` BuildID string `json:"buildID"` }
BuildVersionInfo holds all the version information
func NewBuildVersionInfo ¶ added in v0.1.8
func NewBuildVersionInfo(version, commit, buildagent, builddate string) *BuildVersionInfo
NewBuildVersionInfo creates a BuildVersionInfo struct
func (*BuildVersionInfo) String ¶ added in v0.1.8
func (info *BuildVersionInfo) String() string
type Option ¶
type Option func(*server) error
Option is a closure to configure the Server. It is used in NewServer.
func SetBuildVersionInfo ¶ added in v0.1.8
func SetBuildVersionInfo(info *BuildVersionInfo) Option
func SetBulkService ¶ added in v0.1.8
func SetDataNodeProxy ¶ added in v0.1.10
func SetDataNodeProxy(dataNode string, proxyRoutes ...ProxyRoute) Option
SetDataNodeProxy creates a reverse proxy to the dataNode and set override routes.
The 'proxyRoutes' argument can be used to add additional override routes.
func SetDisableRequestLogger ¶
func SetDisableRequestLogger() Option
SetDisableRequestLogger disables logging of HTTP request
func SetEADService ¶ added in v0.1.8
func SetElasticSearchProxy ¶ added in v0.1.8
func SetElasticSearchProxy(proxy *elasticsearch.Proxy) Option
func SetEnableLegacyConfig ¶ added in v0.1.8
func SetImageProxyService ¶ added in v0.1.8
func SetImageProxyService(service *imageproxy.Service) Option
func SetLegacyRouters ¶ added in v0.1.8
func SetLegacyRouters(routers ...RouterFunc) Option
func SetLogger ¶ added in v0.1.8
func SetLogger(l *logger.CustomLogger) Option
SetLogger configures the global logger for the server.
func SetMetricsPort ¶ added in v0.1.8
SetMetricsPort sets the TCP port for the metrics server.
No default. When set to 0 the metrics server is not started
func SetMiddleware ¶
SetMiddleware configures the global middleware for the HTTP router.
func SetOAIPMHService ¶ added in v0.2.0
func SetOrganisationService ¶
func SetOrganisationService(service *organization.Service) Option
SetOrganisationService configures the organization service. When no service is set a default transient memory-based service is used.
func SetRevisionService ¶ added in v0.1.8
SetRevisionService configures the organization service. When no service is set a default transient memory-based service is used.
func SetRouters ¶
func SetRouters(rb ...RouterFunc) Option
SetRouters adds all HTTP routes for the server.
func SetShutdownHook ¶ added in v0.1.8
type ProxyRoute ¶ added in v0.1.11
type RouterFunc ¶
RouterFunc is a callback that registers routes to the ikuzo.Server.
type Server ¶
type Server interface { ListenAndServe() error ServeHTTP(w http.ResponseWriter, r *http.Request) }
Server provides a net/http compliant WebServer.
Directories
¶
Path | Synopsis |
---|---|
Package domain contains all Ikuzo domain models.
|
Package domain contains all Ikuzo domain models. |
internal
|
|
assets
Package assets contains a virtual http.FileSytem with embedded static assets for the WebServer.
|
Package assets contains a virtual http.FileSytem with embedded static assets for the WebServer. |
Package search provides generic functionality to query the hub3 Linked-Open-Data store.
|
Package search provides generic functionality to query the hub3 Linked-Open-Data store. |
service
|
|
x
package x contains experimental or unstable services.
|
package x contains experimental or unstable services. |
x/namespace
nolint:misspell // because namespaces often are not valid words Package namespace provides support for managing namespaces for RDF or XML URIs.
|
nolint:misspell // because namespaces often are not valid words Package namespace provides support for managing namespaces for RDF or XML URIs. |
storage
|
|
x
package x contains experimental storage implementations.
|
package x contains experimental storage implementations. |
x/ginger
Package ginger supports integration with the Driebit Ginger platform Via a PostHook function during the Bulking Index process data that is ingested can also be stored in ginger.
|
Package ginger supports integration with the Driebit Ginger platform Via a PostHook function during the Bulking Index process data that is ingested can also be stored in ginger. |
x/sparqltest
package sparqltest contains a test-suite based on the W3c SPARQL workinggroup.
|
package sparqltest contains a test-suite based on the W3c SPARQL workinggroup. |