register

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consul

type Consul struct {
	Port    int
	Address string
}

func (Consul) RegisterServer

func (c Consul) RegisterServer(ServiceName string, Port int, Address string)

func (Consul) UnRegisterServer

func (c Consul) UnRegisterServer(ServerName string)

UnRegisterServer 注销服务

type Register

type Register interface {
	// RegisterServer 注册服务
	RegisterServer(ServiceName string, Port int, Address string)
	// UnRegisterServer 注销服务
	UnRegisterServer(ServerName string)
}

Register 服务注册接口

Jump to

Keyboard shortcuts

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