util

package
v0.0.0-...-68745f2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessError

func ProcessError(err error)

ProcessError function to process and error

Types

type Config

type Config struct {
	Application struct {
		CastVoteFixedRate   string `mapstructure:"castVoteFixedRate"`
		ListQuotesFixedRate string `mapstructure:"listQuotesFixedRate"`
		TallyVotesFixedRate string `mapstructure:"tallyVotesFixedRate"`
	} `mapstructure:"application"`

	Frontend struct {
		Port string `mapstructure:"port" envconfig:"FRONTEND_SERVER_PORT"`
		Host string `mapstructure:"host" envconfig:"FRONTEND_SERVER_HOST"`
	} `mapstructure:"frontend-server"`

	Zipkin struct {
		Port string `mapstructure:"port" envconfig:"ZIPKIN_SERVER_PORT"`
		Host string `mapstructure:"host" envconfig:"ZIPKIN_SERVER_HOST"`
		// contains filtered or unexported fields
	} `mapstructure:"zipkin-server"`
}

Config template for application configuration

var Cfg Config

Cfg Structure to hold application configuration

Jump to

Keyboard shortcuts

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