service

package
v1.30.0-alpha.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package service xxx

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 NewInnerService

func NewInnerService(serviceName string, eventChan <-chan *RegisterDiscover.DiscoverEvent) *InnerService

NewInnerService creates a new serviceName InnerService instance for discovery.

func (*InnerService) Servers

func (s *InnerService) Servers() []*HTTPClientConfig

Servers returns current available services instances.

func (*InnerService) Watch

func (s *InnerService) Watch(cfg *types.CmdConfig) error

Watch keeps watching service instance endpoints from ZK.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL