Documentation ¶
Index ¶
- Constants
- func GetClusterID(zkHosts string, hostIP string, bcsTLSConfig options.TLS) (string, error)
- type ClusterKeeperResponse
- type HTTPClientConfig
- type InnerService
- func GetNetService(zkHosts string, bcsTLSConfig options.TLS, customEndpoints []string, ...) (*InnerService, *RegisterDiscover.RegDiscover, error)
- func GetStorageService(zkHosts string, bcsTLSConfig options.TLS, customEndpoints []string, ...) (*InnerService, *RegisterDiscover.RegDiscover, error)
- func NewInnerService(serviceName string, eventChan <-chan *RegisterDiscover.DiscoverEvent, ...) *InnerService
Constants ¶
View Source
const ( // SchemeHTTP is http scheme. SchemeHTTP = "http" // SchemeHTTPS is https scheme. SchemeHTTPS = "https" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterKeeperResponse ¶
type HTTPClientConfig ¶
type HTTPClientConfig struct { // URL is http whole url. URL string // Scheme is http url scheme, http/https. Scheme string // CAFile is https root certificate authority file path. CAFile string // CertFile is https certificate file path. CertFile string // KeyFile is https key file path. KeyFile string // Password is certificate authority file password. Password string }
HTTPClientConfig is bcs inner service http client config struct.
type InnerService ¶
type InnerService struct {
// contains filtered or unexported fields
}
InnerService is bcs inner service for discovery.
func GetNetService ¶
func GetNetService(zkHosts string, bcsTLSConfig options.TLS, customEndpoints []string, isExternal bool) (*InnerService, *RegisterDiscover.RegDiscover, error)
GetNetService returns netservice InnerService object for discovery.
func GetStorageService ¶
func GetStorageService(zkHosts string, bcsTLSConfig options.TLS, customEndpoints []string, isExternal bool) (*InnerService, *RegisterDiscover.RegDiscover, error)
GetStorageService returns storage InnerService object for discovery.
func NewInnerService ¶
func NewInnerService(serviceName string, eventChan <-chan *RegisterDiscover.DiscoverEvent, customEndpoints []string, isExternal bool) *InnerService
NewInnerService creates a new serviceName InnerService instance for discovery.
func (*InnerService) Servers ¶
func (s *InnerService) Servers() []*HTTPClientConfig
Servers returns current available services instances.
Click to show internal directories.
Click to hide internal directories.