naming

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.6

type Config struct {
	Environment string
	Scheme      string //那种驱动类型,redis,etcd

	Org  string
	Name string
	Host string //连接地址
	Auth string //认证
	Num  int    //库的数字
}

type Registry

type Registry interface {
	Scheme() string

	Register(service Service) error
	UnRegister(service Service) error
	//返回服务
	List(name string) []Service
}

type Service added in v0.0.6

type Service struct {
	Org     string `json:"org"`
	Name    string `json:"name"`
	Addr    string `json:"addr"`    // 服务地址
	Version string `json:"version"` // 服务版本
	Weight  int64  `json:"weight"`  // 服务权重
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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