Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Limit          int    `yaml:"limit"`
	Period         string `yaml:"period"`
	SigningKeyFile string `yaml:"signingKeyFile"`
	TokenIssuer    string `yaml:"tokenIssuer"`
	TokenExpiry    string `yaml:"tokenExpiry"`
}

AuthConfig contains the settings for Authentication.

type Config

type Config struct {
	Listen string          `yaml:"listen"`
	TLS    TLSConfig       `yaml:"tls"`
	Auth   AuthConfig      `yaml:"auth"`
	Roles  map[string]Role `yaml:"roles"`
}

Config represents a configuration file.

func New

func New() *Config

New returns a config with default values.

type Role

type Role struct {
	ProjectID string            `yaml:"projectID"`
	UserID    string            `yaml:"userID"`
	Metadata  map[string]string `yaml:"metadata"`
}

Role represents a role which is a group of instances.

type TLSConfig

type TLSConfig struct {
	CertFile string `yaml:"certFile"`
	KeyFile  string `yaml:"keyFile"`
}

TLSConfig contains the settings for TLS.

Jump to

Keyboard shortcuts

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