pkg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadata

func AddMetadata(key, val string) bool

元数据

func Campus

func Campus() string

园区

func InitInstanceInfo

func InitInstanceInfo()

func Metadata

func Metadata() map[string]string

元数据

func Name

func Name() string

服务名

func Namespace

func Namespace() string

命名空间

func Region

func Region() string

地区

func Version

func Version() string

版本号

func Zone

func Zone() string

地域

Types

type InstanceInfo

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

func (*InstanceInfo) AddMetadata

func (i *InstanceInfo) AddMetadata(key, val string) bool

func (*InstanceInfo) Campus

func (i *InstanceInfo) Campus() string

func (*InstanceInfo) Metadata

func (i *InstanceInfo) Metadata() map[string]string

func (*InstanceInfo) Name

func (i *InstanceInfo) Name() string

func (*InstanceInfo) Namespace

func (i *InstanceInfo) Namespace() string

func (*InstanceInfo) Region

func (i *InstanceInfo) Region() string

func (*InstanceInfo) Version

func (i *InstanceInfo) Version() string

func (*InstanceInfo) Zone

func (i *InstanceInfo) Zone() string

Directories

Path Synopsis
client
Package conf is an interface for dynamic configuration.
Package conf is an interface for dynamic configuration.
source/file
Package file is a file source.
Package file is a file source.
log
utils
xgo

Jump to

Keyboard shortcuts

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