Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenServer ¶
Types ¶
type Config ¶
type Config struct {
RegisterPath string
RegisterInfo types.ServerInfo
CoreAPI apimachinery.ClientSetInterface
Server Server
}
type Engine ¶
type Engine struct {
sync.Mutex
CoreAPI apimachinery.ClientSetInterface
SvcDisc ServiceDiscoverInterface
Language language.CCLanguageIf
CCErr errors.CCErrorIf
}
func NewBackbone ¶
func NewMockBackbone ¶
func NewMockBackbone() *Engine
type ServiceDiscoverInterface ¶
type ServiceDiscoverInterface interface {
// Ping to check if this service discovery service is health.
Ping() error
// stop the service discover service
Stop() error
// register local server info, it can only be called for once.
Register(path string, c types.ServerInfo) error
}
func NewServcieDiscovery ¶
func NewServcieDiscovery(zkAddr string) (ServiceDiscoverInterface, error)
type TLSConfig ¶
type TLSConfig struct {
// Server should be accessed without verifying the TLS certificate. For testing only.
InsecureSkipVerify bool
// Server requires TLS client certificate authentication
CertFile string
// Server requires TLS client certificate authentication
KeyFile string
// Trusted root certificates for server
CAFile string
// the password to decrypt the certificate
Password string
}
Click to show internal directories.
Click to hide internal directories.