Categorygithub.com/bitmark-inc/config-loader
modulepackage
0.1.1
Repository: https://github.com/bitmark-inc/config-loader.git
Documentation: pkg.go.dev

# README

Bitmark Config Loader

The config-loader reads configurations from both the local configuration file and environment variables and sets them using the viper package. A user can read them later using viper. For example:

viper.GetString("my_key")

Usage

After import the package, you simply call:

config.LoadConfig("MY_CONF")

For more detail, please look into example folder.

AWS Parameter Store

AWS Parameter Store store parameter and provide to client via SSM service

Usage

1. Set up AWS Policy for IAM

  • Add this policy to your IAM, for example:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ssm:GetParameters",
                "ssm:PutParameters"
            ],
            "Resource": "*"
        }
    ]
}
  • configure AWS credentials before use aws/ssm package

# Packages

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

# Functions

LoadConfig first reads `config.yaml` from a list of configuration path and merges the configurations with environment variables if there is any.
No description provided by the author

# Structs

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