registry

package
v0.0.0-...-e4fe77d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroRegistry

type MicroRegistry struct {
	Host string
}

func NewMicroRegistry

func NewMicroRegistry(host string) *MicroRegistry

func (*MicroRegistry) KeepAlive

func (mr *MicroRegistry) KeepAlive(name string, addr string) error

func (*MicroRegistry) Register

func (mr *MicroRegistry) Register(name string, addr string) error

func (*MicroRegistry) UnRegister

func (mr *MicroRegistry) UnRegister(name string, addr string) error

type Route

type Route struct {
	Addr string `json:"addr"`
	Name string `json:"name"`
}

type RouteResp

type RouteResp struct {
	Code int32  `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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