model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Postgres      string = "postgres"
	Sentinel      string = "sentinel"
	None          string = ""
	HTTP          string = "http"
	TCP           string = "tcp"
	ActivePassive string = "active-passive"
	RoundRobin    string = "roundrobin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IpAddr

type IpAddr struct {
	Addr      string
	Port      string
	IsHealthy bool
	UserName  string
	Password  string
	Url       string
}

type Option

type Option struct {
	MasterOnly                bool
	SlaveOnly                 bool
	CheckForHealth            bool
	DbName                    string
	SentinelMonitorMasterName string
	Expected_Response_Code    int
	HttpMethod                string
	RetryCount                int
	LBmethod                  string
}

type Record

type Record struct {
	Name        string
	Ip          []IpAddr
	Sentinels   []IpAddr
	LastHint    int
	ServiceType string
	Options     Option
}

Jump to

Keyboard shortcuts

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