config

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 3 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 {
	HTTP HTTP `mapstructure:"http" validate:"required"`
	Repo Repo `mapstructure:"repo" validate:"required"`
}

func New

func New() (Config, error)

func NewWithoutValidate

func NewWithoutValidate() Config

type Gitlab

type Gitlab struct {
	Host  string `mapstructure:"gitlab_host" validate:"required"`
	Token string `mapstructure:"gitlab_token" validate:"required"`
}

type HTTP

type HTTP struct {
	Gitlab   Gitlab   `mapstructure:"gitlab" validate:"required"`
	YTracker YTracker `mapstructure:"y_tracker" validate:"required"`
}

type Repo

type Repo struct {
	MainBranch         string   `mapstructure:"main_branch" validate:"required"`
	AdditionalBranches []string `mapstructure:"additional_branches"`
}

type YTracker

type YTracker struct {
	Token string `mapstructure:"y_tracker_token" validate:"required"`
	OrgID int    `mapstructure:"y_tracker_org_id" validate:"required"`
}

Jump to

Keyboard shortcuts

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