service

package
v0.0.0-...-e83f9bf Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceDiscovery

func NewServiceDiscovery(endpoints []string) resolver.Builder

Types

type ServiceDiscovery

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

func (*ServiceDiscovery) Build

func (*ServiceDiscovery) Close

func (s *ServiceDiscovery) Close()

func (*ServiceDiscovery) DelServiceList

func (s *ServiceDiscovery) DelServiceList(key string)

func (*ServiceDiscovery) ResolveNow

func (s *ServiceDiscovery) ResolveNow(rn resolver.ResolveNowOption)

func (*ServiceDiscovery) SetServiceList

func (s *ServiceDiscovery) SetServiceList(key, val string)

type ServiceRegister

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

func NewServiceRegister

func NewServiceRegister(endpoints []string, name, addr string, lease int64) (*ServiceRegister, error)

func (*ServiceRegister) Close

func (s *ServiceRegister) Close() error

func (*ServiceRegister) ListenLeaseRespC

func (s *ServiceRegister) ListenLeaseRespC()

Jump to

Keyboard shortcuts

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