service

package
v0.0.0-...-25e8c23 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonError

func JsonError(w http.ResponseWriter, msg string, statusCode int)

func Run

func Run(cfg *Config) error

Types

type Config

type Config struct {
	DatabaseBackend  string `json:"database_backend"`
	DatabaseUser     string `json:"database_user"`
	DatabasePassword string `json:"database_password"`
	DatabaseName     string `json:"database_name"`
	RegistryBaseUrl  string `json:"registry_base_url"`
}

func LoadConfigFromPath

func LoadConfigFromPath(path string) (*Config, error)

func (Config) Validate

func (c Config) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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