package
2.1.0+incompatible
Repository: https://github.com/nuts-foundation/nuts-node.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BuildInfo returns a formatted version of the current branch/tag/version/os/arch.
ClientConfigFlags returns the flags for configuring the client config.
DecodeURIPath is a echo middleware that decodes path parameters.
DefaultClientConfig creates a new CLI client config with default values set.
Error returns an error that maps to a HTTP status.
FlagSet returns the default server flags.
InvalidInputError returns an error that maps to a HTTP 400 Bad Request.
LoadTrustStore creates a x509 certificate pool based on a truststore file.
Logger returns a logger which should be used for logging in this engine.
NewClientConfig creates a ClientConfig and loads the values from the given flags.
NewMetricsEngine creates a new Engine for exposing prometheus metrics via http.
NewMockConfigurable creates a new mock instance.
NewMockDiagnosable creates a new mock instance.
NewMockEchoRouter creates a new mock instance.
NewMockEchoServer creates a new mock instance.
NewMockEngine creates a new mock instance.
NewMockInjectable creates a new mock instance.
NewMockMigratable creates a new mock instance.
NewMockNamed creates a new mock instance.
NewMockRoutable creates a new mock instance.
NewMockRunnable creates a new mock instance.
NewMockViewableDiagnostics creates a new mock instance.
NewMultiEcho creates a new MultiEcho which uses the given function to create EchoServers.
NewServerConfig creates a new config with some defaults.
NewSystem creates a new, empty System.
NotFoundError returns an error that maps to a HTTP 404 Status Not Found.
OSArch returns the OS and Arch.
PreconditionFailedError returns an error that maps to a HTTP 412 Status Precondition Failed.
ResolveStatusCode looks tries to find the first error in the given map that satisfies errors.Is() for the given error, and returns the associated integer as HTTP status code.
No description provided by the author
Version gives the current version according to the git tag or the branch if there's no tag.

# Constants

MinTLSVersion defines the minimal TLS version used by all components that use TLS.
ModuleNameContextKey contains the key for the Echo context parameter that specifies the module that contains the OpenAPI operation being called, for logging/error returning.
OperationIDContextKey contains the key for the Echo context parameter that specifies the name of the OpenAPI operation being called, for logging/error returning.
StatusCodeResolverContextKey contains the key for the Echo context parameter that specifies a custom HTTP status code resolver.

# Variables

GitBranch holds the branch from where the binary is built.
GitCommit holds the latest git commit hash for this build.
GitVersion holds the tagged version belonging to the git commit.

# Structs

ClientConfig has CLI client settings.
DiagnosticResultMap is a DiagnosticResult that presents the given Items as a map, rather than a list.
GenericDiagnosticResult is a simple implementation of the DiagnosticResult interface.
GlobalHTTPConfig is the top-level config struct for HTTP interfaces.
HTTPConfig contains configuration for an HTTP interface, e.g.
HTTPCORSConfig contains configuration for Cross Origin Resource Sharing.
LandingPage is a Routable that exposes a landing page at the node's HTTP root (`/`).
MockConfigurable is a mock of Configurable interface.
MockConfigurableMockRecorder is the mock recorder for MockConfigurable.
MockDiagnosable is a mock of Diagnosable interface.
MockDiagnosableMockRecorder is the mock recorder for MockDiagnosable.
MockEchoRouter is a mock of EchoRouter interface.
MockEchoRouterMockRecorder is the mock recorder for MockEchoRouter.
MockEchoServer is a mock of EchoServer interface.
MockEchoServerMockRecorder is the mock recorder for MockEchoServer.
MockEngine is a mock of Engine interface.
MockEngineMockRecorder is the mock recorder for MockEngine.
MockInjectable is a mock of Injectable interface.
MockInjectableMockRecorder is the mock recorder for MockInjectable.
MockMigratable is a mock of Migratable interface.
MockMigratableMockRecorder is the mock recorder for MockMigratable.
MockNamed is a mock of Named interface.
MockNamedMockRecorder is the mock recorder for MockNamed.
MockRoutable is a mock of Routable interface.
MockRoutableMockRecorder is the mock recorder for MockRoutable.
MockRunnable is a mock of Runnable interface.
MockRunnableMockRecorder is the mock recorder for MockRunnable.
MockViewableDiagnostics is a mock of ViewableDiagnostics interface.
MockViewableDiagnosticsMockRecorder is the mock recorder for MockViewableDiagnostics.
MultiEcho allows to bind specific URLs to specific HTTP interfaces.
Period is a convenience type for a dateTime range.
RFC3339Time is a time that marshals as RFC3339.
ServerConfig has global server settings.
System is the control structure where engines are registered.
No description provided by the author
TestEngineConfig defines the configuration for the test engine.
TestEngineSubConfig defines the `sub` configuration for the test engine.
TrustStore contains both a CertPool and the actual certificates.

# Interfaces

Configurable is the interface that contains the Configure method.
Diagnosable allows the implementer, mostly engines, to return diagnostics.
DiagnosticResult are the result of different checks giving information on how well the system is doing.
EchoRouter is the interface the generated server API's will require as the Routes func argument.
EchoServer implements both the EchoRouter interface and Start function to aid testing.
Engine is the base interface for a modular design.
ErrorStatusCodeResolver defines the API of a type that resolves an HTTP status code from a Go error.
HTTPStatusCodeError defines an interface for HTTP errors that includes a HTTP statuscode.
Injectable marks an engine capable of Config injection.
Migratable is the interface that defines if an engine is migratable.
Named is the interface for all engines that have a name.
Routable enables connecting a REST API to the echo server.
Runnable is the interface that groups the Start and Shutdown methods.
ViewableDiagnostics is used for engines that display diagnostics in an interface.