config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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