config

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Organization []Organization `json:"organization" validate:"required,dive,required"`
	Default      Setting        `json:"default" validate:"required,dive,required"`
}

func GetConfig

func GetConfig(path string) (*Config, error)

type Organization

type Organization struct {
	Name     string     `json:"name"  validate:"required"`
	Token    string     `json:"token"  validate:"required"`
	Projects *[]project `json:"projects"`
	Setting  *Setting   `json:"setting"`
}

type Setting

type Setting struct {
	Sentry        sentry        `json:"sentry"`
	Notifications notifications `json:"notifications"`
}

Jump to

Keyboard shortcuts

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