shareddeps

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: GPL-3.0 Imports: 5 Imported by: 2

README

  • Viper for configuration
  • Zap for logging
  • Gin Gonic for HTTP server
  • go-playground/validator for validation

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Server *gin.Engine

Functions

func Init

func Init[T config.HasBaseConfig](cfg T, serviceName, version string)

GetConfig is the main function for consumers to load and get their configuration. It takes a pointer to any struct type that defines the configuration schema. The struct should have appropriate mapstructure and validate tags.

func Start

func Start()

Start starts the gin server on the specified port. If no port is provided, it defaults to ":8080".

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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