consul

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() error

Types

type Config

type Config struct {
	Consul struct {
		Server   string   `yaml:"server"`
		Port     string   `yaml:"port"`
		ID       string   `yaml:"id"`
		Name     string   `yaml:"name"`
		Tags     []string `yaml:"tags,flow"`
		Timeout  int      `yaml:"timeout"`
		Interval int      `yaml:"interval"`
		Dcsafter int      `yaml:"dcsafter"`

		Client struct {
			IP     string `yaml:"ip"`
			Port   int    `yaml:"port"`
			Health string `yaml:"health"`
		} `yaml:"client"`
	} `yaml:"consul"`
}

Jump to

Keyboard shortcuts

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