mirror of
https://github.com/status-im/consul.git
synced 2025-02-24 19:38:19 +00:00
18 lines
481 B
Go
18 lines
481 B
Go
package proxysnapshot
|
|
|
|
import "github.com/hashicorp/consul/acl"
|
|
|
|
// ProxySnapshot is an abstraction that allows interchangeability between
|
|
// Catalog V1 ConfigSnapshot and Catalog V2 ProxyState.
|
|
type ProxySnapshot interface {
|
|
AllowEmptyListeners() bool
|
|
AllowEmptyRoutes() bool
|
|
AllowEmptyClusters() bool
|
|
Authorize(authz acl.Authorizer) error
|
|
LoggerName() string
|
|
}
|
|
|
|
// CancelFunc is a type for a returned function that can be called to cancel a
|
|
// watch.
|
|
type CancelFunc func()
|