respGovern

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	RuntimeStats
	JupiterRocketmqTestConsumerRwTimeout     string   `json:"jupiter.rocketmq.test.consumer.rwTimeout"`
	JupiterRestyTestCloseConnection          bool     `json:"jupiter.resty.test.closeConnection"`
	AppRegistryEtcdTimeout                   string   `json:"app.registry.etcd.timeout"`
	JupiterGrpcTestLevel                     string   `json:"jupiter.grpc.test.level"`
	JupiterDyrpcTestPassword                 string   `json:"jupiter.dyrpc.test.password"`
	JupiterBigmapTestDebug                   bool     `json:"jupiter.bigmap.test.debug"`
	JupiterRedixTestStubDialTimeout          string   `json:"jupiter.redix.test.stub.dialTimeout"`
	JupiterRestyTestRetryCount               int      `json:"jupiter.resty.test.retryCount"`
	JupiterMysqlGRPCAdminDebug               bool     `json:"jupiter.mysql.gRPCAdmin.debug"`
	AppMetricAddr                            string   `json:"app.metric.addr"`
	JupiterGrpcTestTimeout                   string   `json:"jupiter.grpc.test.timeout"`
	JupiterRocketmqTestConsumerGroup         string   `json:"jupiter.rocketmq.test.consumer.group"`
	JupiterMysqlGRPCAdminMaxIdleConns        int      `json:"jupiter.mysql.gRPCAdmin.maxIdleConns"`
	JupiterRocketmqTestConsumerSubExpression string   `json:"jupiter.rocketmq.test.consumer.subExpression"`
	JupiterRocketmqTestProducerTopic         string   `json:"jupiter.rocketmq.test.producer.topic"`
	JupiterMysqlGRPCAdminDsn                 string   `json:"jupiter.mysql.gRPCAdmin.dsn"`
	JupiterEtcdv3RegisterEndpoints           []string `json:"jupiter.etcdv3.register.endpoints"`
	JupiterMongoTestSocketTimeout            string   `json:"jupiter.mongo.test.socketTimeout"`
	JupiterRocketmqTestProducerGroup         string   `json:"jupiter.rocketmq.test.producer.group"`
	JupiterDyrpcEtcdHeaderTimeout            string   `json:"jupiter.dyrpc.etcd.headerTimeout"`
	JupiterRestyTestRetryMaxWaitTime         string   `json:"jupiter.resty.test.retryMaxWaitTime"`
	JupiterRestyTestDebug                    bool     `json:"jupiter.resty.test.debug"`
	JupiterRocketmqTestAddr                  []string `json:"jupiter.rocketmq.test.addr"`
	JupiterRocketmqTestConsumerEnable        bool     `json:"jupiter.rocketmq.test.consumer.enable"`
	JupiterRestyTestEnableMetric             bool     `json:"jupiter.resty.test.enableMetric"`
	JupiterRocketmqTestConsumerDialTimeout   string   `json:"jupiter.rocketmq.test.consumer.dialTimeout"`
	JupiterRestyTestTimeout                  string   `json:"jupiter.resty.test.timeout"`
	JupiterRedixTestStubMaxIdle              int      `json:"jupiter.redix.test.stub.maxIdle"`
	JupiterRedixTestStubIdleTimeout          string   `json:"jupiter.redix.test.stub.idleTimeout"`
	JupiterRestyTestSlowThreshold            string   `json:"jupiter.resty.test.slowThreshold"`
	JupiterMysqlGRPCAdminLevel               string   `json:"jupiter.mysql.gRPCAdmin.level"`
	JupiterDyrpcTestTimeout                  string   `json:"jupiter.dyrpc.test.timeout"`
	JupiterEtcdv3RegisterTimeout             string   `json:"jupiter.etcdv3.register.timeout"`
	JupiterDyrpcPullerAddrs                  []string `json:"jupiter.dyrpc.puller.addrs"`
	JupiterBigmapTestSweepInterval           string   `json:"jupiter.bigmap.test.sweepInterval"`
	JupiterMongoTestPoolLimit                int      `json:"jupiter.mongo.test.poolLimit"`
	JupiterRestyTestAddr                     string   `json:"jupiter.resty.test.addr"`
	JupiterRestyTestRetryWaitTime            string   `json:"jupiter.resty.test.retryWaitTime"`
	TimeoutStatus                            int      `json:"timeout.status"`
	JupiterRocketmqTestConsumerCapacity      int      `json:"jupiter.rocketmq.test.consumer.capacity"`
	JupiterRocketmqTestConsumerAddr          []string `json:"jupiter.rocketmq.test.consumer.addr"`
	AppMetricInterval                        string   `json:"app.metric.interval"`
	JupiterEtcdv3ConfigserverTimeout         string   `json:"jupiter.etcdv3.configserver.timeout"`
	JupiterRedixTestStubSlavesAddr           []string `json:"jupiter.redix.test.stub.slaves.addr"`
	AppRegistryEtcdEndpoints                 []string `json:"app.registry.etcd.endpoints"`
	JupiterDyrpcEtcdRegisterTTL              string   `json:"jupiter.dyrpc.etcd.registerTTL"`
	JupiterEtcdv3ConfigserverEndpoints       []string `json:"jupiter.etcdv3.configserver.endpoints"`
	JupiterRestyTestEnableAccessLog          bool     `json:"jupiter.resty.test.enableAccessLog"`
	AppMode                                  string   `json:"app.mode"`
	JupiterRestyTestEnableTrace              bool     `json:"jupiter.resty.test.enableTrace"`
	JupiterMysqlGRPCAdminConnMaxLifetime     string   `json:"jupiter.mysql.gRPCAdmin.connMaxLifetime"`
	JupiterRedixTestStubMaxActive            int      `json:"jupiter.redix.test.stub.maxActive"`
	JupiterMongoTestDsn                      string   `json:"jupiter.mongo.test.dsn"`
	JupiterLeveldbTestFilePath               string   `json:"jupiter.leveldb.test.FilePath"`
	ServerGovernPort                         int      `json:"server.govern.port"`
	ServerGrpcPort                           int      `json:"server.grpc.port"`
	JupiterRocketmqTestConsumerRate          int      `json:"jupiter.rocketmq.test.consumer.rate"`
	JupiterEtcdv3SentinelEndpoints           []string `json:"jupiter.etcdv3.sentinel.endpoints"`
	JupiterDyrpcEtcdAddrs                    []string `json:"jupiter.dyrpc.etcd.addrs"`
	JupiterMysqlGRPCAdminMaxOpenConns        int      `json:"jupiter.mysql.gRPCAdmin.maxOpenConns"`
	ServerHTTPPort                           int      `json:"server.http.port"`
	JupiterGrpcTestAddr                      string   `json:"jupiter.grpc.test.addr"`
	JupiterRocketmqTestProducerAddr          []string `json:"jupiter.rocketmq.test.producer.addr"`
	JupiterEtcdv3SentinelTimeout             string   `json:"jupiter.etcdv3.sentinel.timeout"`
	JupiterRocketmqTestConsumerTopic         string   `json:"jupiter.rocketmq.test.consumer.topic"`
	JupiterDyrpcTestGroupid                  int      `json:"jupiter.dyrpc.test.groupid"`
	JupiterBigmapTestBucketSize              int      `json:"jupiter.bigmap.test.bucketSize"`
	JupiterRedixTestStubReadTimeout          string   `json:"jupiter.redix.test.stub.readTimeout"`
}

type AppEnv

type AppEnv struct {
	RuntimeStats
	Data []string `json:"data"`
}

type AppInfo

type AppInfo struct {
	RuntimeStats
	StartTime   string `json:"startTime" label:"启动时间"` // 启动时间
	BuildTime   string `json:"buildTIme" label:"编译时间"` // 编译时间
	Name        string `json:"name" label:"应用名"`       // 应用名
	Aid         string `json:"aid" label:"应用ID"`
	Iid         string `json:"iid"`
	Pid         int    `json:"pid"`
	Zone        string `json:"zone" label:"zone"`
	Region      string `json:"region" label:"Region"`
	ProjectVcs  string `json:"projectVcs"`
	JupiterVcs  string `json:"jupiterVcs"`
	JupiterDate string `json:"jupiterDate"`
	Env         string `json:"env" label:"Env"`
}

应用基本信息

type BigcacheStats

type BigcacheStats struct {
	RuntimeStats
	Bigcaches map[string]OneBigcache `json:"bigcaches"`
}

bigmap 状态信息

type BigmapStats

type BigmapStats struct {
	RuntimeStats
	Bigmaps map[string]OneBigmap `json:"bigmaps"`
}

bigmap 状态信息

type Config

type Config struct {
	// Number of cache shards, value must be a power of two
	Shards int `json:"shards" toml:"shards" default:"1024"`
	// Time after which entry can be evicted
	LifeWindow time.Duration `json:"lifeWindow" toml:"lifeWindow" default:"0"`
	// Interval between removing expired entries (clean up).
	// If set to <= 0 then no action is performed. Setting to < 1 second is counterproductive — bigcache has a one second resolution.
	CleanWindow time.Duration `json:"cleanWindow" toml:"cleanWindow" default:"0"`
	// Max number of entries in life window. Used only to calculate initial size for cache shards.
	// When proper value is set then additional memory allocation does not occur.
	MaxEntriesInWindow int `json:"maxEntriesInWindow" toml:"maxEntriesInWindow" default:""`
	// Max size of entry in bytes. Used only to calculate initial size for cache shards.
	MaxEntrySize int `json:"maxEntrySize" toml:"maxEntrySize"`
	// Verbose mode prints information about new memory allocation
	Verbose bool `json:"verbose" toml:"verbose"`
	// HardMaxCacheSize is a limit for cache size in MB. Cache will not allocate more memory than this limit.
	// It can protect application from consuming all available memory on machine, therefore from running OOM Killer.
	// Default value is 0 which means unlimited size. When the limit is higher than 0 and reached then
	// the oldest entries are overridden for the new ones.
	HardMaxCacheSize int `json:"hardMaxCacheSize" toml:"hardMaxCacheSize"`
}

Config

[jupiter.bigcache.demo]
	shards=1024
	lifeWindow="10s"
	cleanWindow="1m
	maxEntriesInWindow=100000
	maxEntrySize=10240 #10k
	verbose=false
	hardMaxCacheSize=1 #1MB

type ConsumerConfig

type ConsumerConfig struct {
	Enable          bool          `json:"enable" toml:"enable"`
	Addr            []string      `json:"addr" toml:"addr"`
	Topic           string        `json:"topic" toml:"topic"`
	Group           string        `json:"group" toml:"group"`
	DialTimeout     time.Duration `json:"dialTimeout" toml:"dialTimeout"`
	RwTimeout       time.Duration `json:"rwTimeout" toml:"rwTimeout"`
	SubExpression   string        `json:"subExpression" toml:"subExpression"`
	Rate            float64       `json:"rate" toml:"rate"`
	Capacity        int64         `json:"capacity" toml:"capacity"`
	WaitMaxDuration time.Duration `json:"waitMaxDuration" toml:"waitMaxDuration"`
}

ConsumerConfig consumer config

type DyrpcStats

type DyrpcStats struct {
	RuntimeStats
	Dyrpcs map[string]OneDyrpc `json:"dyrpcs"`
}

redix 状态信息

type ErrStats

type ErrStats struct {
	Err string
}

type GormStats

type GormStats struct {
	RuntimeStats
	Gorms map[string]sql.DBStats `json:"gustys"`
}

gorm状态信息

type GustyStats

type GustyStats struct {
	RuntimeStats
	Gustys map[string]OneGusty `json:"gustys"`
}

gusty状态信息

type HealthStats

type HealthStats struct {
	RuntimeStats
	Status string `json:"status" label:"状态"`
}

应用存活信息

type LeveldbStats

type LeveldbStats struct {
	RuntimeStats
	Leveldbs map[string]OneLeveldb `json:"leveldbs"`
}

levelDB 状态信息

type MongoStats

type MongoStats struct {
	RuntimeStats
	Mongos map[string]OneMongo `json:"mongos"`
}

mongo 状态信息

type OneBigcache

type OneBigcache struct {
	// Status string
	Config Config
	Stats  struct {
		// Hits is a number of successfully found keys
		Hits int64 `json:"hits"`
		// Misses is a number of not found keys
		Misses int64 `json:"misses"`
		// DelHits is a number of successfully deleted keys
		DelHits int64 `json:"delete_hits"`
		// DelMisses is a number of not deleted keys
		DelMisses int64 `json:"delete_misses"`
		// Collisions is a number of happened key-collisions
		Collisions int64 `json:"collisions"`
	}
}

type OneBigmap

type OneBigmap struct {
	// Status string
	Config interface{} `json:"config"`
}

type OneDyrpc

type OneDyrpc struct {
	Mode    int         `json:"mode"`
	GroupID int         `json:"groupID"`
	Config  interface{} `json:"config"`
}

type OneGusty

type OneGusty struct {
	State  connectivity.State `json:"state"`
	Target string             `json:"target"`
	Config interface{}        `json:"config"`
}

type OneLeveldb

type OneLeveldb struct {
	// Status string
	Err   string          `json:"err"`
	Stats leveldb.DBStats `json:"stats"`
}

type OneMongo

type OneMongo struct {
	LiveServers []string `json:"liveServers"`
	Mode        mgo.Mode `json:"mode"`
}

type OneRedix

type OneRedix struct {
	Status redis.PoolStats
	Target string
	Config interface{}
}

type OneResty

type OneResty struct {
	Target string      `json:"target"`
	Config interface{} `json:"config"`
}

type OneRocketmq

type OneRocketmq struct {
	Config RMConfig `json:"config"`
}

type ProducerConfig

type ProducerConfig struct {
	Addr        []string      `json:"addr" toml:"addr"`
	Topic       string        `json:"topic" toml:"topic"`
	Group       string        `json:"group" toml:"group"`
	Retry       int           `json:"retry" toml:"retry"`
	DialTimeout time.Duration `json:"dialTimeout" toml:"dialTimeout"`
	RwTimeout   time.Duration `json:"rwTimeout" toml:"rwTimeout"`
}

ProducerConfig producer config

type RMConfig

type RMConfig struct {
	Addresses []string        `json:"addr" toml:"addr"`
	Consumer  *ConsumerConfig `json:"consumer" toml:"consumer"`
	Producer  *ProducerConfig `json:"producer" toml:"producer"`
}

Config config...

type RedixStats

type RedixStats struct {
	RuntimeStats
	Redixs map[string]OneRedix `json:"redixs"`
}

redix 状态信息

type RestyStats

type RestyStats struct {
	RuntimeStats
	Redixs map[string]OneResty `json:"restys"`
}

resty 状态信息

type RocketmqStats

type RocketmqStats struct {
	RuntimeStats
	Redixs map[string]OneRocketmq `json:"rocketmqs"`
}

Rocketmq 状态信息

type RuntimeStats

type RuntimeStats struct {
	IP       string `json:"ip" label:"IP"`
	Hostname string `json:"hostname" label:"Hostname"`
	Time     string `json:"time" label:"时间"` // 每次展示数据的时间
	Err      string `json:"err" label:"错误信息"`
}

通用状态信息

type ServerStats

type ServerStats struct {
	RuntimeStats
	Servers interface{} `json:"servers"`
}

应用服务状态信息

Jump to

Keyboard shortcuts

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