Simplify the Docker Compose configuration, remove unnecessary environment variables, and eliminate the gateway service.

pull/2148/head
skiffer-git 1 year ago
parent 3602921697
commit 0267fec106

@ -1,13 +1,13 @@
env: zookeeper env: zookeeper
rpcRegisterName: rpcRegisterName:
User: User user: User
Friend: Friend friend: Friend
Msg: Msg msg: Msg
Push: Push push: Push
MessageGateway: MessageGateway messageGateway: MessageGateway
Group: Group group: Group
Auth: Auth auth: Auth
Conversation: Conversation conversation: Conversation
Third: Third third: Third

@ -323,6 +323,21 @@ type WebhookConfig struct {
FailedContinue bool `mapstructure:"failedContinue"` FailedContinue bool `mapstructure:"failedContinue"`
} }
type Share struct {
Env string `mapstructure:"env"`
RpcRegisterName struct {
User string `mapstructure:"user"`
Friend string `mapstructure:"friend"`
Msg string `mapstructure:"msg"`
Push string `mapstructure:"push"`
MessageGateway string `mapstructure:"messageGateway"`
Group string `mapstructure:"group"`
Auth string `mapstructure:"auth"`
Conversation string `mapstructure:"conversation"`
Third string `mapstructure:"third"`
} `mapstructure:"rpcRegisterName"`
}
type Webhooks struct { type Webhooks struct {
URL string `mapstructure:"url"` URL string `mapstructure:"url"`
BeforeSendSingleMsg WebhookConfig `mapstructure:"beforeSendSingleMsg"` BeforeSendSingleMsg WebhookConfig `mapstructure:"beforeSendSingleMsg"`
@ -376,22 +391,10 @@ type Webhooks struct {
} }
type ZooKeeper struct { type ZooKeeper struct {
Schema string `mapstructure:"schema"` Schema string `mapstructure:"schema"`
Address []string `mapstructure:"address"` Address []string `mapstructure:"address"`
Username string `mapstructure:"username"` Username string `mapstructure:"username"`
Password string `mapstructure:"password"` Password string `mapstructure:"password"`
Env string `mapstructure:"env"`
RpcRegisterName struct {
User string `mapstructure:"User"`
Friend string `mapstructure:"Friend"`
Msg string `mapstructure:"Msg"`
Push string `mapstructure:"Push"`
MessageGateway string `mapstructure:"MessageGateway"`
Group string `mapstructure:"Group"`
Auth string `mapstructure:"Auth"`
Conversation string `mapstructure:"Conversation"`
Third string `mapstructure:"Third"`
} `mapstructure:"rpcRegisterName"`
} }
func (m *Mongo) Build() *mongoutil.Config { func (m *Mongo) Build() *mongoutil.Config {

Loading…
Cancel
Save