config_entries

package
v0.0.0-...-a88cfdc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplePushSecretConfig

type ApplePushSecretConfig struct {
	Items map[string]ApplePushSecretConfigItem `json:"items"`
}

type ApplePushSecretConfigItem

type ApplePushSecretConfigItem struct {
	BundleID string `json:"bundle_id"`
	AuthKey  string `json:"auth_key"`
	KeyID    string `json:"key_id"`
	TeamID   string `json:"team_id"`
}

type CacheConfig

type CacheConfig struct {
	RedisAddr     string `json:"redis_addr"`
	RedisDB       int    `json:"redis_db"`
	RedisPassword string `json:"redis_password"`
	ReadTimeout   int    `json:"read_timeout"`
	WriteTimeout  int    `json:"write_timeout"`
}

type ClientConfigItem

type ClientConfigItem struct {
	PushType PushType `json:"push_type"`
}

type DBConfigItem

type DBConfigItem struct {
	Addr     string `json:"addr"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	DB       string `json:"db"`
}

type FirebaseConfig

type FirebaseConfig struct {
	Items map[string]FirebaseConfigItem `json:"items"`
}

type FirebaseConfigItem

type FirebaseConfigItem struct {
	PackageName               string `json:"package_name"`
	ServiceAccountFileContent string `json:"service_account_file_content"`
}

type LokiConfig

type LokiConfig struct {
	// the loki api url
	URL string `json:"url"`
	//(optional, default: hot-novel) 用于区分不同应用的日志来源,且会依据不同的 LoggerType 添加后缀用于区分不同的 logger
	Source string `json:"source"`
	//(optional, default: severity) the label's key to distinguish log's level, it will be added to Labels map
	LevelName string `json:"level_name"`
	// (optional, default: zapcore.InfoLevel) logs beyond this level will be sent
	SendLevel int8 `json:"send_level"`
	// the labels which will be sent to loki, contains the {levelname: level}
	Labels map[string]string `json:"labels"`
}

type MqConfig

type MqConfig struct {
	// 重新恢复消息的时间间隔, 单位 ms
	RecoverMessageDuration   int `json:"recover_message_duration"`
	MaxRetryCount            int `json:"max_retry_count"`
	OnceReadMessageCount     int `json:"once_read_message_count"`
	InitCreatedConsumerCount int `json:"init_created_consumer_count"`
	MaxPendingTime           int `json:"max_pending_time"`
}

type PushType

type PushType string
const (
	ApplePush    PushType = "apple"
	FirebasePush PushType = "firebase"
)

Jump to

Keyboard shortcuts

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