config

package
v1.20.57 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Service
	Check server.Health
}

func WithTarget added in v1.0.5

func WithTarget(target builder.Target, health server.Health) Config

type EndPoints added in v1.0.4

type EndPoints struct {
	Servers server.Addresses `json:"servers"`
	//consul,etcd,dubbo, local注册
	Type string `json:"type"`
}

func ReadEndPoints added in v1.0.4

func ReadEndPoints(filename string) (EndPoints, error)

ReadEndPoints filename 相对文件名

type Node added in v1.0.4

type Node struct {
	builder.Target
}

func (*Node) Root added in v1.0.4

func (node *Node) Root() string

type Service added in v1.0.4

type Service struct {
	// The node name that the endpoint belongs to.
	Node Node `json:"node"`

	// The network address at which the service can be reached.
	Server server.Address `json:"server"`

	// The list of tags associated with the service.
	Tags []string `json:"tags"`

	// The set of metadata associated with the node on which the service is
	// running.
	Meta map[string]string `json:"meta"`
}

func (*Service) Adjust added in v1.0.4

func (s *Service) Adjust(addr net.Addr, pubIp string)

Jump to

Keyboard shortcuts

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