Skip to content
Snippets Groups Projects
Commit d34506d5 authored by flycash's avatar flycash
Browse files

Upgrade gost

parent 91fa822f
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ require (
github.com/creasty/defaults v1.3.0
github.com/dubbogo/getty v1.3.2
github.com/dubbogo/go-zookeeper v1.0.0
github.com/dubbogo/gost v1.5.2
github.com/dubbogo/gost v1.7.0
github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect
github.com/go-errors/errors v1.0.1 // indirect
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
......@@ -56,6 +56,4 @@ require (
gopkg.in/yaml.v2 v2.2.2
)
replace github.com/dubbogo/gost => /Users/mindeng/git/apache-dubbo/gost
go 1.13
......@@ -24,7 +24,7 @@ import (
// EventListener is an new interface used to align with dubbo 2.7.5
// It contains the Prioritized means that the listener has its priority
type EventListener interface {
gxsort.Prioritized
gxsort.Prioritizer
// OnEvent handle this event
OnEvent(e Event) error
}
......@@ -38,5 +38,4 @@ type ConditionalEventListener interface {
// TODO (implement ConditionalEventListener)
type ServiceInstancesChangedListener struct {
}
......@@ -31,7 +31,6 @@ import (
)
type ServiceDiscovery interface {
fmt.Stringer
// ----------------- lifecycle -------------------
......@@ -44,7 +43,6 @@ type ServiceDiscovery interface {
// If the discovery cannot be destroy, it will return an error.
Destroy() error
// ----------------- registration ----------------
// Register will register an instance of ServiceInstance to registry
......@@ -56,7 +54,6 @@ type ServiceDiscovery interface {
// Unregister will unregister this instance from registry
Unregister(instance ServiceInstance) error
// ----------------- discovery -------------------
// GetDefaultPageSize will return the default page size
GetDefaultPageSize() int
......@@ -79,7 +76,6 @@ type ServiceDiscovery interface {
// Batch get all instances by the specified service names
GetRequestInstances(serviceNames []string, offset int, requestedSize int) map[string]gxpage.Pager
// ----------------- event ----------------------
// AddListener adds a new ServiceInstancesChangedListener
AddListener(listener *ServiceInstancesChangedListener) error
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment