config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	// 路径
	Path string `default:"${DRONE_CARD_PATH=/dev/stdout}" json:"path"`
}

type CardOutput

type CardOutput struct {
	// 地址
	Schema string `json:"schema"`
	// 数据
	Data json.RawMessage `json:"data"`
}

type Proxy

type Proxy struct {
	// 是否开启
	Enabled *bool `default:"true" json:"enabled,omitempty" yaml:"enabled" xml:"enabled" toml:"enabled"`
	// 主机
	Host string `json:"host,omitempty" yaml:"host" xml:"host" toml:"host" validate:"required"`
	// 端口
	Port int `json:"port,omitempty" yaml:"port" xml:"port" toml:"port" validate:"max=65535"`
	// 代理类型
	// nolint:lll
	Scheme string `` /* 132-byte string literal not displayed */
	// 目标
	Target string `json:"target,omitempty" yaml:"target" xml:"target" toml:"target"`
	// 排除
	Exclude string `json:"exclude,omitempty" yaml:"exclude" xml:"exclude" toml:"exclude"`
	// 代理认证用户名
	Username string `json:"username,omitempty" yaml:"username" xml:"username" toml:"username"`
	// 代理认证密码
	Password string `json:"password,omitempty" yaml:"password" xml:"password" toml:"password"`
}

func (*Proxy) Addr

func (p *Proxy) Addr() (addr string)

Jump to

Keyboard shortcuts

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