svr_registry

package
v0.0.0-...-ecc5721 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerRegistry

type ServerRegistry struct {
	Name   string                 `json:"name"`
	Ip     string                 `json:"ip"`
	Port   int                    `json:"port"`
	Weight int                    `json:"weight"`
	Extra  map[string]interface{} `json:"extra"`

	AddrList []string `json:"-"`
	// contains filtered or unexported fields
}

func NewGRPCServerRegistry

func NewGRPCServerRegistry() *ServerRegistry

func NewHttpServerRegistry

func NewHttpServerRegistry() *ServerRegistry

func NewRegistry

func NewRegistry(svrName, ip string, addrList []string, port int) *ServerRegistry

func (*ServerRegistry) SetWeight

func (s *ServerRegistry) SetWeight(w int)

func (*ServerRegistry) Stop

func (s *ServerRegistry) Stop()

Jump to

Keyboard shortcuts

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