You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
service/config/config.go

19 lines
498 B

2 years ago
package config
import (
"context"
)
2 years ago
var RpcConfig = &Config{}
type Config struct {
RegistryServer []string
BeforeHandel func(ctx context.Context, baseName, serviceName, serviceMethod string, args interface{}, reply interface{}) (context.Context, error)
AfterHandel func(ctx context.Context, baseName, serviceName, serviceMethod string, args interface{}, reply interface{}, err error) error
2 years ago
}
// InitConfig @Title 初始化配置
func InitConfig(config Config) {
RpcConfig = &config
}