config

package
v0.0.0-...-9e605f1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AuthMetrics = ":37100"
View Source
const AuthRpcServerAddr = ":37001"
View Source
const AuthRpcServerName = "AorB-AuthService"
View Source
const BloomRedisChannel = "Aorb-Bloom"
View Source
const CommentMetrics = ":37101"
View Source
const CommentRpcServerAddr = ":37003"
View Source
const CommentRpcServerName = "AorB-CommentService"
View Source
const Event = "Aorb-Recommend"
View Source
const MessageMetrics = ":37105"
View Source
const MessageRpcServerAddr = ":37006"
View Source
const MessageRpcServerName = "AorB-MessageService"
View Source
const MsgConsumer = "Aorb-MgsConsumer"
View Source
const PollMetrics = ":37102"
View Source
const PollProcessorRpcServiceName = "Aorb-PollProcessorService"
View Source
const PollRpcServerAddr = ":37005"
View Source
const PollRpcServerName = "AorB-PollService"
View Source
const RecommendMetrics = ":37106"
View Source
const RecommendRpcServerAddr = ":37007"
View Source
const RecommendRpcServerName = "AorB-RecommendService"
View Source
const UserMetrics = ":37103"
View Source
const UserRpcServerAddr = ":37002"
View Source
const UserRpcServerName = "AorB-UserService"
View Source
const VoteMetrics = ":37104"
View Source
const VoteRpcServerAddr = ":37004"
View Source
const VoteRpcServerName = "AorB-VoteService"
View Source
const WebServerAddr = ":37000"
View Source
const WebServerName = "AorB-WebGateway"

微服务的名字以及端口

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Consul   *Consul             `toml:"Consul"`
	Server   *Server             `toml:"Server"`
	MongoDB  *MongoDB            `toml:"MongoDB"`
	Redis    *Redis              `toml:"Redis"`
	JWT      *JWT                `toml:"JWT"`
	Services map[string]*Service `toml:"Services"`
	Pod      *Pod                `toml:"Pod"`
	Log      *Log                `toml:"Log"`
	Tracing  *Tracing            `toml:"Tracing"`
	RabbitMQ *RabbitMQ           `toml:"RabbitMQ"`
	Gorse    *Gorse              `toml:"Gorse"`
	Other    *Other              `toml:"Other"`
}
var Conf *Config

type Consul

type Consul struct {
	Addr          string `toml:"addr"`
	AnonymityName string `toml:"anonymityName"`
}

type Etcd

type Etcd struct {
	Host string `toml:"host"`
	Port string `toml:"port"`
}

type Gorse

type Gorse struct {
	GorseAddr   string `toml:"gorseAddr"`
	GorseApikey string `toml:"gorseApikey"`
}

type JWT

type JWT struct {
	JwtSecret string `toml:"jwtSecret"`
}

type Log

type Log struct {
	LoggerLevel string `toml:"loggerLevel"`
	LogPath     string `toml:"logPath"`
}

type MongoDB

type MongoDB struct {
	Host     string `toml:"host"`
	Port     string `toml:"port"`
	Username string `toml:"username"`
	Password string `toml:"password"`
	Database string `toml:"database"`
}

type Other

type Other struct {
	AnonymityUser string `toml:"anonymityUser"`
}

type Pod

type Pod struct {
	PodIp string `toml:"podIp"`
}

type PyroScope

type PyroScope struct {
	State string `toml:"state"`
	Addr  string `toml:"addr"`
}

type RabbitMQ

type RabbitMQ struct {
	Username    string `toml:"username"`
	Password    string `toml:"password"`
	Host        string `toml:"host"`
	Port        string `toml:"port"`
	VhostPrefix string `toml:"vhostPrefix"`
}

type Redis

type Redis struct {
	Host     string `toml:"host"`
	Port     string `toml:"port"`
	Username string `toml:"username"`
	Password string `toml:"password"`
	Db       int    `toml:"db"`
	Prefix   string `toml:"prefix"`
}

type Server

type Server struct {
	Port    string `toml:"port"`
	Version string `toml:"version"`
}

type Service

type Service struct {
	Name        string `toml:"name"`
	LoadBalance bool   `toml:"loadBalance"`
	Host        string `toml:"host"`
	Port        string `toml:"port"`
}

type Tracing

type Tracing struct {
	EndPoint string  `toml:"endPoint"`
	State    string  `toml:"state"`
	Sampler  float64 `toml:"sampler"`
}

Jump to

Keyboard shortcuts

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