config

package
v1.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	URL:      "localhost:8081",
	Timeout:  5 * time.Second,
	Protocol: "grpc",
}

Functions

func Load

func Load(name string, config interface{})

Types

type Config

type Config struct {
	ApplicationID     string        `json:"application_id" yaml:"application_id" mapstructure:"application_id"`
	ApplicationSecret string        `json:"application_secret" yaml:"application_secret" mapstructure:"application_secret"`
	URL               string        `json:"url" yaml:"url"`
	Timeout           time.Duration `json:"timeout" yaml:"timeout"`
	Protocol          string        `json:"protocol" yaml:"protocol"`
}

Jump to

Keyboard shortcuts

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