Versions in this module Expand all Collapse all v5 v5.4.40 Sep 22, 2026 v5.4.39 Sep 21, 2026 Changes in this version + const ErrorWriterContextKey + const LogFieldAuditSubject + const LogFieldAuthorizerDID + const LogFieldConversationID + const LogFieldCredentialID + const LogFieldCredentialIssuer + const LogFieldCredentialSubject + const LogFieldCredentialType + const LogFieldDID + const LogFieldEventSubject + const LogFieldEventSubscriber + const LogFieldEventType + const LogFieldKeyID + const LogFieldMessageType + const LogFieldModule + const LogFieldNodeAddress + const LogFieldPeerAddr + const LogFieldPeerAuthenticated + const LogFieldPeerID + const LogFieldPeerNodeDID + const LogFieldProtocolVersion + const LogFieldRequesterDID + const LogFieldServiceEndpoint + const LogFieldServiceID + const LogFieldServiceType + const LogFieldStore + const LogFieldStoreShelf + const LogFieldTransactionIsPrivate + const LogFieldTransactionPayloadHash + const LogFieldTransactionPayloadLength + const LogFieldTransactionRef + const LogFieldTransactionType + const MinTLSVersion + const ModuleNameContextKey + const OperationIDContextKey + const StatusCodeResolverContextKey + const UserContextKey + var GitBranch string = "development" + var GitCommit string = "0" + var GitVersion string + func BuildInfo() string + func ClientConfigFlags() *pflag.FlagSet + func CreateHTTPErrorHandler() echo.HTTPErrorHandler + func Error(statusCode int, errStr string, args ...interface{}) error + func FlagSet() *pflag.FlagSet + func InvalidInputError(errStr string, args ...interface{}) error + func JoinURLPaths(parts ...string) string + func NewCertPool(certificates []*x509.Certificate) *x509.CertPool + func NotFoundError(errStr string, args ...interface{}) error + func OSArch() string + func ParseCertificates(data []byte) (certificates []*x509.Certificate, _ error) + func PreconditionFailedError(errStr string, args ...interface{}) error + func ResolveStatusCode(err error, mapping map[error]int) int + func TestResponseCode(expectedStatusCode int, response *http.Response) error + func UserAgent() string + func UserAgentRequestEditor(_ context.Context, req *http.Request) error + func Version() string + type AuthorizationTokenGenerator func() (string, error) + type ClientConfig struct + Address string + Timeout time.Duration + Token string + TokenFile string + Verbosity string + func NewClientConfigForCommand(cmd *cobra.Command) ClientConfig + func (cfg ClientConfig) GetAddress() string + func (cfg ClientConfig) GetAuthToken() (string, error) + type Configurable interface + Configure func(config ServerConfig) error + type Diagnosable interface + Diagnostics func() []DiagnosticResult + type DiagnosticResult interface + Name func() string + Result func() interface{} + String func() string + type DiagnosticResultMap struct + Items []DiagnosticResult + Title string + func (g DiagnosticResultMap) Name() string + func (g DiagnosticResultMap) Result() interface{} + func (g DiagnosticResultMap) String() string + type EchoRouter interface + Add func(method, path string, handler echo.HandlerFunc, ...) *echo.Route + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + Use func(middleware ...echo.MiddlewareFunc) + type Engine interface + func NewMetricsEngine() Engine + type ErrorStatusCodeResolver interface + ResolveStatusCode func(err error) int + type ErrorWriter interface + Write func(echoContext echo.Context, statusCode int, description string, err error) error + type GenericDiagnosticResult struct + Outcome interface{} + Title string + func (gdr GenericDiagnosticResult) Name() string + func (gdr GenericDiagnosticResult) Result() interface{} + func (gdr GenericDiagnosticResult) String() string + type HTTPRequestDoer interface + Do func(*http.Request) (*http.Response, error) + func CreateHTTPClient(cfg ClientConfig, generator AuthorizationTokenGenerator) (HTTPRequestDoer, error) + func MustCreateHTTPClient(cfg ClientConfig, generator AuthorizationTokenGenerator) HTTPRequestDoer + func NewStrictHTTPClient(strictmode bool, client *http.Client) HTTPRequestDoer + type HTTPStatusCodeError interface + StatusCode func() int + type Health struct + Details interface{} + Status HealthStatus + type HealthCheckable interface + CheckHealth func() map[string]Health + type HealthStatus string + const HealthStatusDown + const HealthStatusUnknown + const HealthStatusUp + func (h HealthStatus) Severity() int + type HttpError struct + ResponseBody []byte + StatusCode int + type Injectable interface + Config func() interface{} + type LandingPage struct + func (l LandingPage) Routes(router EchoRouter) + type Migratable interface + Migrate func() error + type MockConfigurable struct + func NewMockConfigurable(ctrl *gomock.Controller) *MockConfigurable + func (m *MockConfigurable) Configure(config ServerConfig) error + func (m *MockConfigurable) EXPECT() *MockConfigurableMockRecorder + type MockConfigurableMockRecorder struct + func (mr *MockConfigurableMockRecorder) Configure(config interface{}) *gomock.Call + type MockDiagnosable struct + func NewMockDiagnosable(ctrl *gomock.Controller) *MockDiagnosable + func (m *MockDiagnosable) Diagnostics() []DiagnosticResult + func (m *MockDiagnosable) EXPECT() *MockDiagnosableMockRecorder + type MockDiagnosableMockRecorder struct + func (mr *MockDiagnosableMockRecorder) Diagnostics() *gomock.Call + type MockEchoRouter struct + func NewMockEchoRouter(ctrl *gomock.Controller) *MockEchoRouter + func (m *MockEchoRouter) Add(method, path string, handler echo.HandlerFunc, ...) *echo.Route + func (m *MockEchoRouter) EXPECT() *MockEchoRouterMockRecorder + func (m *MockEchoRouter) Use(middleware ...echo.MiddlewareFunc) + func (m_2 *MockEchoRouter) CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + func (m_2 *MockEchoRouter) TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type MockEchoRouterMockRecorder struct + func (mr *MockEchoRouterMockRecorder) Add(method, path, handler interface{}, middleware ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) CONNECT(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) DELETE(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) GET(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) HEAD(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) OPTIONS(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) PATCH(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) POST(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) PUT(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) TRACE(path, h interface{}, m ...interface{}) *gomock.Call + func (mr *MockEchoRouterMockRecorder) Use(middleware ...interface{}) *gomock.Call + type MockEngine struct + func NewMockEngine(ctrl *gomock.Controller) *MockEngine + func (m *MockEngine) EXPECT() *MockEngineMockRecorder + type MockEngineMockRecorder struct + type MockHealthCheckable struct + func NewMockHealthCheckable(ctrl *gomock.Controller) *MockHealthCheckable + func (m *MockHealthCheckable) CheckHealth() map[string]Health + func (m *MockHealthCheckable) EXPECT() *MockHealthCheckableMockRecorder + func (m *MockHealthCheckable) Name() string + type MockHealthCheckableMockRecorder struct + func (mr *MockHealthCheckableMockRecorder) CheckHealth() *gomock.Call + func (mr *MockHealthCheckableMockRecorder) Name() *gomock.Call + type MockInjectable struct + func NewMockInjectable(ctrl *gomock.Controller) *MockInjectable + func (m *MockInjectable) Config() interface{} + func (m *MockInjectable) EXPECT() *MockInjectableMockRecorder + func (m *MockInjectable) Name() string + type MockInjectableMockRecorder struct + func (mr *MockInjectableMockRecorder) Config() *gomock.Call + func (mr *MockInjectableMockRecorder) Name() *gomock.Call + type MockMigratable struct + func NewMockMigratable(ctrl *gomock.Controller) *MockMigratable + func (m *MockMigratable) EXPECT() *MockMigratableMockRecorder + func (m *MockMigratable) Migrate() error + type MockMigratableMockRecorder struct + func (mr *MockMigratableMockRecorder) Migrate() *gomock.Call + type MockNamed struct + func NewMockNamed(ctrl *gomock.Controller) *MockNamed + func (m *MockNamed) EXPECT() *MockNamedMockRecorder + func (m *MockNamed) Name() string + type MockNamedMockRecorder struct + func (mr *MockNamedMockRecorder) Name() *gomock.Call + type MockRoutable struct + func NewMockRoutable(ctrl *gomock.Controller) *MockRoutable + func (m *MockRoutable) EXPECT() *MockRoutableMockRecorder + func (m *MockRoutable) Routes(router EchoRouter) + type MockRoutableMockRecorder struct + func (mr *MockRoutableMockRecorder) Routes(router interface{}) *gomock.Call + type MockRunnable struct + func NewMockRunnable(ctrl *gomock.Controller) *MockRunnable + func (m *MockRunnable) EXPECT() *MockRunnableMockRecorder + func (m *MockRunnable) Shutdown() error + func (m *MockRunnable) Start() error + type MockRunnableMockRecorder struct + func (mr *MockRunnableMockRecorder) Shutdown() *gomock.Call + func (mr *MockRunnableMockRecorder) Start() *gomock.Call + type MockViewableDiagnostics struct + func NewMockViewableDiagnostics(ctrl *gomock.Controller) *MockViewableDiagnostics + func (m *MockViewableDiagnostics) Diagnostics() []DiagnosticResult + func (m *MockViewableDiagnostics) EXPECT() *MockViewableDiagnosticsMockRecorder + func (m *MockViewableDiagnostics) Name() string + type MockViewableDiagnosticsMockRecorder struct + func (mr *MockViewableDiagnosticsMockRecorder) Diagnostics() *gomock.Call + func (mr *MockViewableDiagnosticsMockRecorder) Name() *gomock.Call + type Named interface + Name func() string + type NetworkTLSConfig struct + CertFile string + CertKeyFile string + Enabled bool + TrustStoreFile string + type Period struct + Begin time.Time + End *time.Time + func (p Period) Contains(when time.Time) bool + type RFC3339Time struct + func (j *RFC3339Time) UnmarshalJSON(bytes []byte) error + func (j RFC3339Time) MarshalText() ([]byte, error) + type Routable interface + Routes func(router EchoRouter) + type Runnable interface + Shutdown func() error + Start func() error + type ServerConfig struct + CPUProfile string + Datadir string + InternalRateLimiter bool + LegacyTLS *NetworkTLSConfig + LoggerFormat string + Strictmode bool + TLS TLSConfig + Verbosity string + func NewServerConfig() *ServerConfig + func TestServerConfig(template ServerConfig) ServerConfig + func (ngc *ServerConfig) InjectIntoEngine(e Injectable) error + func (ngc *ServerConfig) Load(flags *pflag.FlagSet) (err error) + func (ngc *ServerConfig) PrintConfig() string + type System struct + Config *ServerConfig + Context context.Context + ContextCancel context.CancelFunc + Routers []Routable + func NewSystem() *System + func (system *System) Configure() error + func (system *System) FindEngineByName(target string) Engine + func (system *System) Load(flags *pflag.FlagSet) error + func (system *System) Migrate() error + func (system *System) RegisterEngine(engine Engine) + func (system *System) RegisterRoutes(router Routable) + func (system *System) Shutdown() error + func (system *System) Start() error + func (system *System) VisitEngines(visitor func(engine Engine)) + func (system *System) VisitEnginesE(visitor func(engine Engine) error) error + type TLSConfig struct + CertFile string + CertKeyFile string + ClientCertHeaderName string + Offload TLSOffloadingMode + TrustStoreFile string + func (t TLSConfig) Enabled() bool + func (t TLSConfig) Load() (*tls.Config, *TrustStore, error) + func (t TLSConfig) LoadCertificate() (tls.Certificate, error) + func (t TLSConfig) LoadTrustStore() (*TrustStore, error) + type TLSOffloadingMode string + const NoOffloading + const OffloadIncomingTLS + type TestEngine struct + ShutdownError bool + TestConfig TestEngineConfig + func (i *TestEngine) Config() interface{} + func (i *TestEngine) FlagSet() *pflag.FlagSet + func (i *TestEngine) Name() string + func (i *TestEngine) Shutdown() error + func (i *TestEngine) Start() error + type TestEngineConfig struct + Key string + List []string + Sub TestEngineSubConfig + SubPtr *TestEngineSubConfig + type TestEngineSubConfig struct + Test string + type TrustStore struct + CertPool *x509.CertPool + IntermediateCAs []*x509.Certificate + RootCAs []*x509.Certificate + func LoadTrustStore(trustStoreFile string) (*TrustStore, error) + func ParseTrustStore(data []byte) (*TrustStore, error) + func (store *TrustStore) Certificates() []*x509.Certificate + type ViewableDiagnostics interface Other modules containing this package github.com/nuts-foundation/nuts-node github.com/nuts-foundation/nuts-node/v6