Categorygithub.com/calebtraceyco/config
modulepackage
0.1.4
Repository: https://github.com/calebtraceyco/config.git
Documentation: pkg.go.dev

# README

config-yaml


See example usage here

Install

go get -u github.com/calebtracey/config-yaml

Example yaml file config:

Env: "Dev"
Port: 6080
AppName: "example-app"
ComponentConfigs:
  Client:
    Timeout: 15
    IdleConnTimeout: 15
    MaxIdleConsPerHost: 50
    MaxConsPerHost: 0
    DisableCompression: 2
    InsecureSkipVerify: 1
Services:
  - Name: "TestAPI"
    URL: "https://api.test.net/v5"
    ApiKeyEnvironmentVariable: "API_KEY"
    PublicKeyEnvironmentVariable: "PUBLIC_KEY"
Databases:
  - Name: "PostgresDB"
    Database: "postgres"
    Server: "db.example.supabase.co:5432"
    Username: "postgres"
    Scheme: "postgres"
    AuthRequired: "true"
    AuthEnvironmentVariable: "DB_PASSWORD_DEV"

# Functions

No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Scraper TODO change yaml.Node fields to correct types.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author