tsing_center

package
v0.0.0-...-206c9bf Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

README

etcd

从etcd中获得端点,etcd中的数据存储结构按tsing gateway的约定

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TsingCenter

type TsingCenter struct {
	Addr   string `json:"addr"`   // tsing center的地址
	Secret string `json:"secret"` // tsing center的连接密钥
}

tsing center

func New

func New(config string) (*TsingCenter, error)

新建探测器实例

func (*TsingCenter) Fetch

func (self *TsingCenter) Fetch(serviceID string) (*url.URL, error)

获节点

func (TsingCenter) MarshalEasyJSON

func (v TsingCenter) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TsingCenter) MarshalJSON

func (v TsingCenter) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TsingCenter) UnmarshalEasyJSON

func (v *TsingCenter) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TsingCenter) UnmarshalJSON

func (v *TsingCenter) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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