config

package
v1.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 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 {
	Token    string        `json:"token,omitempty"`
	URL      string        `json:"url,omitempty"`
	Timeout  time.Duration `json:"timeout,omitempty"`
	Protocol string        `json:"protocol,omitempty"`
}

Jump to

Keyboard shortcuts

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