Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { EnvName string `env:"ENV_NAME"` ServerAddress string `env:"SERVER_ADDRESS"` LogLevel string `env:"LOG_LEVEL"` JWKAddress string `env:"CASDOOR_JWK_ADDRESS"` CasdoorEnforcerName string `env:"CASDOOR_ENFORCER_NAME"` OtelServiceName string `env:"OTEL_RESOURCE_SERVICE_NAME"` OtelLibraryName string `env:"OTEL_LIBRARY_NAME"` OtelServiceVersion string `env:"OTEL_RESOURCE_SERVICE_VERSION"` OtelDeploymentEnv string `env:"OTEL_RESOURCE_DEPLOYMENT_ENVIRONMENT"` OtelColExporterEndpoint string `env:"OTEL_EXPORTER_OTLP_ENDPOINT"` CasdoorAddress string `env:"CASDOOR_ADDRESS"` CasdoorClientID string `env:"CASDOOR_CLIENT_ID"` CasdoorClientSecret string `env:"CASDOOR_CLIENT_SECRET"` CasdoorOrganizationName string `env:"CASDOOR_ORGANIZATION_NAME"` CasdoorApplicationName string `env:"CASDOOR_APPLICATION_NAME"` CasdoorModelName string `env:"CASDOOR_MODEL_NAME"` MongoDBHost string `env:"MONGO_HOST"` MongoDBName string `env:"MONGO_NAME"` MongoDBUser string `env:"MONGO_USER"` MongoDBPassword string `env:"MONGO_PASSWORD"` MongoDBPort string `env:"MONGO_PORT"` RabbitMQHost string `env:"RABBITMQ_HOST"` RabbitMQPortHost string `env:"RABBITMQ_PORT_HOST"` RabbitMQPortAMQP string `env:"RABBITMQ_PORT_AMPQ"` RabbitMQUser string `env:"RABBITMQ_DEFAULT_USER"` RabbitMQPass string `env:"RABBITMQ_DEFAULT_PASS"` RabbitMQQueue string `env:"RABBITMQ_QUEUE"` TrillianGRPCAddress string `env:"TRILLIAN_GRPC_ADDRESS"` TrillianHTTPAddress string `env:"TRILLIAN_HTTP_ADDRESS"` }
Config is the top level configuration struct for the entire application.
type MultiQueueConsumer ¶
type MultiQueueConsumer struct { UseCase *services.UseCase // contains filtered or unexported fields }
MultiQueueConsumer represents a multi-queue consumer.
func NewMultiQueueConsumer ¶
func NewMultiQueueConsumer(routes *rabbitmq.ConsumerRoutes, useCase *services.UseCase) *MultiQueueConsumer
NewMultiQueueConsumer create a new instance of MultiQueueConsumer.
type Server ¶
type Server struct { mlog.Logger mopentelemetry.Telemetry // contains filtered or unexported fields }
Server represents the http server for Ledger services.
func NewServer ¶
func NewServer(cfg *Config, app *fiber.App, logger mlog.Logger, telemetry *mopentelemetry.Telemetry) *Server
NewServer creates an instance of Server.
func (*Server) ServerAddress ¶
ServerAddress returns is a convenience method to return the server address.
Click to show internal directories.
Click to hide internal directories.