server

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MongoDBUriEnv = "MONGODB_URI"
View Source
const MongoDbDatabaseNameEnv = "MONGODB_DATABASE"
View Source
const MongoDbTimeoutEnv = "MONGODB_CONNECTIONTIMEOUT"
View Source
const OtelMetricEndpointEnv = "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT"
View Source
const PersistentVolumePathEnv = "STORAGE_PERSISTENT_VOLUME_PATH"
View Source
const ServiceNameEnv = "OTEL_SERVICE_NAME"
View Source
const StorageTypeEnv = "STORAGE_TYPE"

Variables

This section is empty.

Functions

func InitializeDatabase added in v0.0.2

func InitializeDatabase(ctx context.Context, databaseConnected chan struct{}, databaseDisconnected chan struct{})

func InitializeMetrics added in v0.0.2

func InitializeMetrics(ctx context.Context) *metric.MeterProvider

func InitializeStorage added in v0.0.16

func InitializeStorage(ctx context.Context, storageConnected chan struct{}, storageDisconnected chan struct{})

func RegisterAllGrpcServices

func RegisterAllGrpcServices(grpcServer *grpc.Server)

func StartGrpcServer

func StartGrpcServer(grpcServerStarted chan struct{}, grpcServerStopped chan struct{})

Types

type Storage added in v0.0.16

type Storage int
const (
	Unspecified Storage = iota
	PersistentVolume
	StorageGoogleCloud
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL