register

package
v0.0.0-...-9d05754 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIp

func GetLocalIp() string

func GetLocalIp2

func GetLocalIp2() string

func GetLocalIp3

func GetLocalIp3() string

Types

type Register

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

func NewRegister

func NewRegister(endpoints []string, port string, name string) (*Register, error)

func (*Register) Start

func (r *Register) Start()

func (*Register) Stop

func (r *Register) Stop()

type ServiceInfo

type ServiceInfo struct {
	Ip           string    `json:"ip"`
	Port         string    `json:"port"`
	Name         string    `json:"name"`
	RegisterTime time.Time `json:"registerTime"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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