config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package config is used to read and store client configuration saved in .hcl format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string) error

Types

type Config

type Config struct {
	Server *Server         `hcl:"api-server,block"`
	APIKey string          `hcl:"api-key"`
	Email  string          `hcl:"email"`
	Logger *logger.Options `hcl:"log-config,block"`
}

func Get

func Get() *Config

type Server

type Server struct {
	Address  string `hcl:"address"`
	Port     int    `hcl:"port"`
	Insecure bool   `hcl:"insecure"`
}

Jump to

Keyboard shortcuts

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