config

package
v0.0.0-...-e9625fd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigName = "config"
	ConfigPath = "configs/client"
	ConfigType = "yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	URL          string
	ResponseType string
}

type Client

type Client struct {
	ID          string
	Secret      string
	RedirectURI string
}

type Config

type Config struct {
	Env string

	HTTP   HTTP
	Auth   Auth
	Client Client
}

func NewConfig

func NewConfig(cName, cPath, cType string) Config

NewConfig returns config, incluedes environment vars.

type HTTP

type HTTP struct {
	Port uint16
}

Jump to

Keyboard shortcuts

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