Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertConfig ¶
type AlertConfig struct { SmtpHost string `toml:"smtp-host" json:"smtp-host"` SmtpPort int `toml:"smtp-port" json:"smtp-port"` SendEmail string `toml:"send-email" json:"send-email"` SendEmailAuthPWD string `toml:"send-email-auth-pwd" json:"send-email-auth-pwd"` ReceiveEmails []string `toml:"receive-emails" json:"receive-emails"` }
type AppConfig ¶
type AppConfig struct { InsertBatchSize int `toml:"insert-batch-size" json:"insert-batch-size"` SlowLogThreshold int `toml:"slowlog-threshold" json:"slowlog-threshold"` PprofPort string `toml:"pprof-port" json:"pprof-port"` AnalyzeTimeout int `toml:"analyze-timeout" json:"analyze-timeout"` TableThreads int `toml:"table-threads" json:"table-threads"` StatsOutDir string `toml:"stats-outdir" json:"stats-outdir"` StatsGCDays int `toml:"stats-gc-days" json:"stats-gc-days"` SmallTableSamplerate string `toml:"small-table-samplerate" json:"small-table-samplerate"` MediumTableSamplerate string `toml:"medium-table-samplerate" json:"medium-table-samplerate"` BigTableSamplerate string `toml:"big-table-samplerate" json:"small-table-big-table-samplerate"` Crontab string `toml:"crontab" json:"crontab"` }
type Config ¶
type Config struct { AppConfig AppConfig `toml:"app" json:"app"` TiDBConfig TiDBConfig `toml:"tidb" json:"tidb"` AlertConfig AlertConfig `toml:"alert" json:"alert"` LogConfig LogConfig `toml:"log" json:"log"` }
type TiDBConfig ¶
type TiDBConfig struct { Username string `toml:"username" json:"username"` Password string `toml:"password" json:"password"` Host string `toml:"host" json:"host"` Port int `toml:"port" json:"port"` StatusPort int `toml:"status-port" json:"status-port"` ConnectParams string `toml:"connect-params" json:"connect-params"` MetaSchema string `toml:"meta-schema" json:"meta-schema"` }
Click to show internal directories.
Click to hide internal directories.