consul

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_CHECK_NAME = "consul00000health"

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	ID      string   `json:"id"`
	Name    string   `json:"name"`
	Tags    []string `json:"tags"`
	Address string   `json:"address"`
	Port    int      `json:"port"`
	Check   CheckConfig
}

func (*BaseConfig) RegisterService

func (conf *BaseConfig) RegisterService() (*consulapi.Client, error)

type CheckConfig

type CheckConfig struct {
	HTTP      string `json:"http"`
	Interval  string `json:"interval"`
	Timeout   string `json:"timeout"`
	CheckName string `json:"checkName"`
}

Jump to

Keyboard shortcuts

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