api

package
v0.0.0-...-1cb0413 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_LOCAL = "local"
	ENV_DEV   = "dev"
	ENV_PROD  = "prod"
)

Variables

View Source
var (
	ErrorAliasNotFound = errors.New("An alias wasnt found")
)

Functions

func Start

func Start(config *Config) error

Types

type Config

type Config struct {
	Port             string `yaml:"port"`
	Env              string `yaml:"env"`
	ConnectionString string `yaml:"connection-string"`
}

func NewConfig

func NewConfig(configPath string) *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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