conf

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientID

func ClientID() string

func ClientSecret

func ClientSecret() string

func ListenAddr

func ListenAddr() string

ListenAddr return ListenAddr .

func Load

func Load()

Load load env configs.

func RunnerUserID

func RunnerUserID() string

Types

type Conf

type Conf struct {
	Debug        bool   `env:"DEBUG" default:"false"`
	ListenAddr   string `env:"LISTEN_ADDR" default:":9500"`
	ClientID     string `env:"CLIENT_ID" default:"action-runner"`
	ClientSecret string `env:"CLIENT_SECRET" default:"devops/action-runner"`
	RunnerUserID string `env:"RUNNER_USER_ID" default:"1111"`
}

Conf defines env configs.

Jump to

Keyboard shortcuts

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