Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvPrefix = "NODE" Environment = "environment" EnvironmentDevelopment = "development" EnvironmentProduction = "production" )
Variables ¶
This section is empty.
Functions ¶
func EvmAddressHookFunc ¶
func EvmAddressHookFunc() mapstructure.DecodeHookFuncType
Types ¶
type Discovery ¶
type Discovery struct { Maintainer *Maintainer `mapstructure:"maintainer"` Server *Server `mapstructure:"server"` }
type File ¶
type File struct { Environment string `mapstructure:"environment" validate:"required" default:"development"` Discovery *Discovery `mapstructure:"discovery" validate:"required"` Node *Node `mapstructure:"component" validate:"required"` Database *Database `mapstructure:"database" validate:"required"` Stream *Stream `mapstructure:"stream" validate:"required"` Observability *Telemetry `mapstructure:"observability" validate:"required"` }
type Maintainer ¶
type Module ¶
type OpenTelemetryConfig ¶
type OpenTelemetryConfig struct { Metrics *OpenTelemetryMetricsConfig `mapstructure:"metrics" validate:"required"` Traces *OpenTelemetryTracesConfig `mapstructure:"traces" validate:"required"` }
type Stream ¶
type Stream struct { Enable *bool `mapstructure:"enable" validate:"required" default:"false"` Driver stream.Driver `mapstructure:"driver" validate:"required" default:"kafka"` Topic string `mapstructure:"topic" validate:"required" default:"rss3.node.feeds"` URI string `mapstructure:"uri" validate:"required" default:"localhost:9092"` }
type Telemetry ¶
type Telemetry struct {
OpenTelemetry *OpenTelemetryConfig `mapstructure:"opentelemetry" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.