Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default, _ = New(WithURL("http://localhost:8080"))
View Source
var (
ErrEndpointNotGiven = fmt.Errorf("%w: endpoint not given", gbioerr.Err)
)
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) HttpClient ¶
type Option ¶
func WithHttpClient ¶
func WithRegistry ¶
func WithRegistry( cfg *etcd.Config, opts ...RegistryOption, ) Option
type RegistryOption ¶
type RegistryOption func(r *registries.CachedRegistry)
func WithContext ¶
func WithContext(ctx context.Context) RegistryOption
func WithPickFirst ¶
func WithPickFirst() RegistryOption
func WithPickRandom ¶
func WithPickRandom() RegistryOption
func WithPrefix ¶
func WithPrefix(p string) RegistryOption
func WithTick ¶
func WithTick(d time.Duration) RegistryOption
Click to show internal directories.
Click to hide internal directories.