common

package
v0.0.0-...-5870b03 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticResolver = "static"
	ConsulResolver = "consul"
	EtcdResolver   = "etcd"
)

Variables

View Source
var RegisterFuncMap = make(map[string]func([]string, int) Register)
View Source
var ResolverFuncMap = make(map[string]func(configs.GrpcConfig) (string, error))

Functions

This section is empty.

Types

type Register

type Register interface {
	Register(info RegisterInfo) error
	UnRegister() error
}

type RegisterInfo

type RegisterInfo struct {
	Host           string
	Port           int
	ServerName     string
	ServerId       string
	UpdateInterval int64
	Tags           []string
}

Jump to

Keyboard shortcuts

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