config

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// BuildMode defines the build mode for the server
	BuildingMode string `default:"dev"` // default to dev
	// Port defines the port for the server
	Port string `default:":8080"` // default to 8080
	// Host defines the host for the server
	Host string `default:"localhost"` // default to localhost
	// Version defines the version for the service
	Version string `default:"v1"` // default to v1
	// App path
	AppRootPath string
	// ProductId defines the product id for the service
	ProductId uuid.UUID
	// MemoryMB defines the memory in MB for the service
	MemoryMb string `default:"1024"` // default to 1024
	// AllowedOrigins defines the allowed origins for the service
	AllowedOrigins []string
}

Config defines the config for ds servers

func (*Config) SetDefaults

func (c *Config) SetDefaults()

Jump to

Keyboard shortcuts

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