Documentation ¶
Index ¶
- func MockRoutingV2(t *testing.T, cnt int32) []*apitraffic.RouteRule
- func RespSuccess(resp api.ResponseMessage) bool
- type Bootstrap
- type DiscoverTestSuit
- func (d *DiscoverTestSuit) Destroy()
- func (d *DiscoverTestSuit) DiscoverServer() service.DiscoverServer
- func (d *DiscoverTestSuit) HealthCheckServer() *healthcheck.Server
- func (d *DiscoverTestSuit) Initialize(opts ...options) error
- func (d *DiscoverTestSuit) NamespaceServer() ns.NamespaceOperateServer
- func (d *DiscoverTestSuit) OriginDiscoverServer() service.DiscoverServer
- func (d *DiscoverTestSuit) UpdateCacheInterval() time.Duration
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockRoutingV2 ¶ added in v1.16.0
func MockRoutingV2(t *testing.T, cnt int32) []*apitraffic.RouteRule
Types ¶
type DiscoverTestSuit ¶
type DiscoverTestSuit struct { DefaultCtx context.Context Storage store.Store // contains filtered or unexported fields }
func (*DiscoverTestSuit) Destroy ¶
func (d *DiscoverTestSuit) Destroy()
func (*DiscoverTestSuit) DiscoverServer ¶
func (d *DiscoverTestSuit) DiscoverServer() service.DiscoverServer
func (*DiscoverTestSuit) HealthCheckServer ¶
func (d *DiscoverTestSuit) HealthCheckServer() *healthcheck.Server
func (*DiscoverTestSuit) Initialize ¶
func (d *DiscoverTestSuit) Initialize(opts ...options) error
func (*DiscoverTestSuit) NamespaceServer ¶
func (d *DiscoverTestSuit) NamespaceServer() ns.NamespaceOperateServer
func (*DiscoverTestSuit) OriginDiscoverServer ¶
func (d *DiscoverTestSuit) OriginDiscoverServer() service.DiscoverServer
func (*DiscoverTestSuit) UpdateCacheInterval ¶
func (d *DiscoverTestSuit) UpdateCacheInterval() time.Duration
type TestConfig ¶
type TestConfig struct { Bootstrap Bootstrap `yaml:"bootstrap"` Cache cache.Config `yaml:"cache"` Namespace ns.Config `yaml:"namespace"` Naming service.Config `yaml:"naming"` Config config.Config `yaml:"config"` HealthChecks healthcheck.Config `yaml:"healthcheck"` Store store.Config `yaml:"store"` Auth auth.Config `yaml:"auth"` Plugin plugin.Config `yaml:"plugin"` }
Click to show internal directories.
Click to hide internal directories.