Documentation ¶
Index ¶
- type Option
- func WithAccessKey(accessKey string) Option
- func WithCacheDir(cacheDir string) Option
- func WithCluster(cluster string) Option
- func WithDefaultKind(kind string) Option
- func WithGroup(group string) Option
- func WithLogDir(logDir string) Option
- func WithLogLevel(logLevel string) Option
- func WithNameSpaceId(namespaceId string) Option
- func WithNotLoadCacheAtStart(notLoadCacheAtStart bool) Option
- func WithPassWord(password string) Option
- func WithSecretKey(secretKey string) Option
- func WithServerConfs(serverConfs []ServerConfig) Option
- func WithTimeOutMs(timeoutMs uint64) Option
- func WithUserName(username string) Option
- func WithWeight(weight float64) Option
- type Registry
- func (r *Registry) Deregister(_ context.Context, service *registry.ServiceInstance) error
- func (r *Registry) GetService(_ context.Context, serviceName string) ([]*registry.ServiceInstance, error)
- func (r *Registry) Register(_ context.Context, service *registry.ServiceInstance) error
- func (r *Registry) Watch(ctx context.Context, serviceName string) (registry.Watcher, error)
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
func WithAccessKey ¶
func WithCacheDir ¶
func WithCluster ¶
func WithDefaultKind ¶
func WithLogDir ¶
func WithLogLevel ¶
func WithNameSpaceId ¶
func WithNotLoadCacheAtStart ¶
func WithPassWord ¶
func WithSecretKey ¶
func WithServerConfs ¶
func WithServerConfs(serverConfs []ServerConfig) Option
func WithTimeOutMs ¶
func WithUserName ¶
func WithWeight ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) Deregister ¶
注销
func (*Registry) GetService ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.