Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdDiscovery ¶
type EtcdDiscovery struct {
// contains filtered or unexported fields
}
func NewEtcdDiscovery ¶
func NewEtcdDiscovery(etcd *etcd.Etcd) *EtcdDiscovery
func (*EtcdDiscovery) Build ¶
func (mb *EtcdDiscovery) Build(target resolver.Target, cc resolver.ClientConn, _ resolver.BuildOptions) (resolver.Resolver, error)
func (*EtcdDiscovery) Scheme ¶
func (mb *EtcdDiscovery) Scheme() string
type EtcdRegiser ¶
type EtcdRegiser struct {
// contains filtered or unexported fields
}
func NewEtcdRegiser ¶
func NewEtcdRegiser(e *etcd.Etcd) *EtcdRegiser
func (*EtcdRegiser) Regist ¶
func (e *EtcdRegiser) Regist(name, host string, port int)
func (*EtcdRegiser) Revoke ¶
func (e *EtcdRegiser) Revoke()
type FilePortProvider ¶
type FilePortProvider struct {
// contains filtered or unexported fields
}
func NewFilePortProvider ¶
func NewFilePortProvider(filename string) *FilePortProvider
func (*FilePortProvider) Close ¶
func (am *FilePortProvider) Close()
type FileReader ¶
type FileStaticDiscovery ¶
type FileStaticDiscovery struct { *FilePortProvider // contains filtered or unexported fields }
func NewFileStaticDiscovery ¶
func NewFileStaticDiscovery(filename string) *FileStaticDiscovery
func (*FileStaticDiscovery) Build ¶
func (f *FileStaticDiscovery) Build(target resolver.Target, cc resolver.ClientConn, _ resolver.BuildOptions) (resolver.Resolver, error)
func (*FileStaticDiscovery) Scheme ¶
func (mb *FileStaticDiscovery) Scheme() string
type NullRegiser ¶
type NullRegiser struct { }
func NewNullRegister ¶
func NewNullRegister() *NullRegiser
func (*NullRegiser) Regist ¶
func (e *NullRegiser) Regist(name, host string, port int)
func (*NullRegiser) Revoke ¶
func (e *NullRegiser) Revoke()
type PortProvider ¶
type SystemPortProvider ¶
type SystemPortProvider struct { }
func NewSystemPortProvider ¶
func NewSystemPortProvider() *SystemPortProvider
func (*SystemPortProvider) Close ¶
func (e *SystemPortProvider) Close()
Click to show internal directories.
Click to hide internal directories.