etcdService

package
v0.0.0-...-f7ea49c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerBuilder

type ServerBuilder struct {
}

func NewServerBuilder

func NewServerBuilder() *ServerBuilder

func (*ServerBuilder) Build

etcdService://authority1,authority2/endpoint

func (*ServerBuilder) Scheme

func (a *ServerBuilder) Scheme() string

type ServerRegister

type ServerRegister struct {
	// contains filtered or unexported fields
}

func NewServerRegister

func NewServerRegister(addrs []string, ttl int64) *ServerRegister

func (*ServerRegister) Close

func (a *ServerRegister) Close()

func (*ServerRegister) PutServer

func (a *ServerRegister) PutServer(key, val string) error

func (*ServerRegister) RevokeLease

func (a *ServerRegister) RevokeLease()

func (*ServerRegister) SetKeepalive

func (a *ServerRegister) SetKeepalive()

func (*ServerRegister) SetLease

func (a *ServerRegister) SetLease(ttl int64)

type ServerResolver

type ServerResolver struct {
	AddrMap map[string]string
	// contains filtered or unexported fields
}

func (*ServerResolver) Close

func (a *ServerResolver) Close()

func (*ServerResolver) GetAddr

func (a *ServerResolver) GetAddr(prefix string)

func (*ServerResolver) ResolveNow

func (a *ServerResolver) ResolveNow(resolver.ResolveNowOption)

Directories

Path Synopsis
example
lib

Jump to

Keyboard shortcuts

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