config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 1 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 Batch

type Batch struct {
	// 最大条数
	// 达到数量后会主动触发推送
	Size int `json:"size" yaml:"size" xml:"size" toml:"size"`
	// 最大等待时间
	// 超过后会主动触发推送
	Wait time.Duration `json:"wait" yaml:"wait" xml:"wait" toml:"wait"`
}

type Loki

type Loki struct {
	// 推送地址
	Url string `json:"url" yaml:"url" xml:"url" toml:"url" validate:"required,url"`
	// 标签
	Labels map[string]string `json:"labels" yaml:"labels" xml:"labels" toml:"labels"`
	// 批量操作
	Batch *Batch `json:"batch" yaml:"batch" xml:"batch" toml:"batch"`
	// 用户名
	Username string `json:"username" yaml:"username" xml:"username" toml:"username" validate:"required_with=Password"`
	// 密码
	Password string `json:"password" yaml:"password" xml:"password" toml:"password" validate:"required_with=Username"`
}

Jump to

Keyboard shortcuts

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