svr_registry

package
Version: v0.0.0-...-67873a1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 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()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL