config

package
v0.0.0-...-a57a6f7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 5 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 {
	Defaults  *Defaults   `yaml:"defaults"`
	DB        *DB         `yaml:"db"`
	Receivers []*Receiver `yaml:"receivers"`
	Template  string      `yaml:"template"`
}

func New

func New(filename string) (*Config, error)

type DB

type DB struct {
	Client        string `yaml:"client"`
	ConnString    string `yaml:"conn_string"`
	CreationLimit int    `yaml:"creation_limit"`
}

type Defaults

type Defaults struct {
	ApiUrl       string                 `yaml:"api_url"`
	User         string                 `yaml:"user"`
	Password     string                 `yaml:"password"`
	Project      jira.Project           `yaml:"project"`
	IssueType    jira.IssueType         `yaml:"issue_type"`
	Priority     jira.Priority          `yaml:"priority"`
	Summary      string                 `yaml:"summary"`
	Description  string                 `yaml:"description"`
	Components   []jira.Component       `yaml:"components"`
	Fields       map[string]interface{} `yaml:"fields"`
	ResolveState []string               `yaml:"resolve_state"`
}

type Issue

type Issue struct {
	GroupId    string
	StatusId   string
	StatusName string
	IssueId    string
	IssueKey   string
	IssueSelf  string
	Created    int64
	Updated    int64
	Template   string
}

type Receiver

type Receiver struct {
	Name        string                 `yaml:"name"`
	ApiUrl      string                 `yaml:"api_url"`
	Project     jira.Project           `yaml:"project"`
	IssueType   jira.IssueType         `yaml:"issue_type"`
	Priority    jira.Priority          `yaml:"priority"`
	Summary     string                 `yaml:"summary"`
	Description string                 `yaml:"description"`
	Components  []jira.Component       `yaml:"components"`
	Fields      map[string]interface{} `yaml:"fields"`
}

Jump to

Keyboard shortcuts

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