registry

package
v0.0.0-...-f43ee00 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultSCRegistry

func NewDefaultSCRegistry(opts ...Option) (registry.Registry, error)

NewDefaultSCRegistry create a new default ServiceComb registry

func NewSCRegistry

func NewSCRegistry(client *sc.Client, opts ...Option) registry.Registry

NewSCRegistry create a new ServiceComb registry

Types

type Option

type Option func(o *options)

Option is ServiceComb option.

func WithAppId

func WithAppId(appId string) Option

WithAppId with app id option

func WithHeartbeatInterval

func WithHeartbeatInterval(second int32) Option

func WithHostName

func WithHostName(hostName string) Option

WithHostName with host name option

func WithVersionRule

func WithVersionRule(versionRule string) Option

WithVersionRule with version rule option

Jump to

Keyboard shortcuts

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