update consul comments

This commit is contained in:
smallnest
2017-06-13 16:12:37 +08:00
parent df12a5a474
commit 331d5df972
3 changed files with 3 additions and 4 deletions

View File

@@ -11,8 +11,7 @@ import (
"github.com/smallnest/rpcx/log"
)
//ConsulRegisterPlugin a register plugin which can register services into consul for cluster
//This registry is experimental and has not been test.
//ConsulRegisterPlugin a register plugin which can register services into consul for cluster.
type ConsulRegisterPlugin struct {
ServiceAddress string
ConsulAddress string

View File

@@ -17,7 +17,6 @@ func TestConsulRegisterPlugin_Register(t *testing.T) {
plugin := &ConsulRegisterPlugin{
ServiceAddress: "tcp@127.0.0.1:1234",
ConsulAddress: "localhost:8500",
Services: make([]string, 1),
UpdateInterval: time.Second,
}

View File

@@ -136,7 +136,8 @@ type Server struct {
Timeout time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
KCPConfig KCPConfig
// use for KCP
KCPConfig KCPConfig
}
type KCPConfig struct {