consul

package
v0.0.0-...-72c0b7d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*api.Client
}

func NewClient

func NewClient(addr string) (*Client, error)

func (*Client) GrpcRegistration

func (c *Client) GrpcRegistration(conf *GrpcRegConf) error

type GrpcRegConf

type GrpcRegConf struct {
	Id, Name, Addr string
	Port           int
	Tags           []string
	Interval       int
	TLS            bool
}

type KV

type KV struct {
	*api.KV
}

func NewKV

func NewKV(c *Client) *KV

func (*KV) PutSelfToArray

func (kv *KV) PutSelfToArray(key string, cnf SSConsulConfig) error

type SSConsulConfig

type SSConsulConfig struct {
	ID      string
	Address string
	Port    int
}

Jump to

Keyboard shortcuts

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