config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 Chuangcache

type Chuangcache struct {
	LabelBase `yaml:"inline"`

	Ak string `json:"ak,omitempty" yaml:"ak" xml:"ak" toml:"ak" validate:"required"`
	Sk string `json:"sk,omitempty" yaml:"sk" xml:"sk" toml:"sk" validate:"required"`
}

type Email

type Email struct {
	Smtp config.Slice[Smtp] `json:"smtp,omitempty" yaml:"smtp" xml:"smtp,innerxml" toml:"smtp"`
}

type LabelBase

type LabelBase struct {
	Label string `default:"default" json:"label,omitempty" yaml:"label" xml:"label" toml:"label"`
}

type Serverchan

type Serverchan struct {
	LabelBase `yaml:"inline"`

	Key string `json:"key,omitempty" yaml:"key" xml:"key" toml:"key" validate:"required"`
}

type Sms

type Sms struct {
	// nolint:lll
	Chuangcache config.Slice[Chuangcache] `json:"chuangcache,omitempty" yaml:"chuangcache" xml:"chuangcache,innerxml" toml:"chuangcache"`
}

type Smtp

type Smtp struct {
	LabelBase `yaml:"inline"`

	Host     string `json:"host,omitempty" yaml:"host" xml:"host" toml:"host" validate:"required,hostname|ip"`
	Port     int    `json:"port,omitempty" yaml:"port" xml:"port" toml:"port" validate:"required,min=1,max=65535"`
	Username string `json:"username,omitempty" yaml:"username" xml:"username" toml:"username" validate:"required"`
	Password string `json:"password,omitempty" yaml:"password" xml:"password" toml:"password" validate:"required"`
	Identity string `json:"identity,omitempty" yaml:"identity" xml:"identity" toml:"identity" validate:"required"`
	Pool     int    `json:"pool,omitempty" yaml:"pool" xml:"pool" toml:"pool" validate:"required,min=1"`
}

type Wechat

type Wechat struct {
	// nolint:lll
	Serverchan config.Slice[Serverchan] `json:"serverchan,omitempty" yaml:"serverchan" xml:"serverchan,innerxml" toml:"serverchan"`
}

Jump to

Keyboard shortcuts

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