consul

package
v0.0.0-...-bda7aed Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

******************************************************************* created: 2019-02-01 author: lixianmin

Copyright (C) - All Rights Reserved ********************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aid

type Aid struct {
	Tag                            []string
	DeregisterCriticalServiceAfter time.Duration
	CheckInterval                  time.Duration
	// contains filtered or unexported fields
}

func NewAid

func NewAid(consulAddress string) *Aid

func (*Aid) GetService

func (aid *Aid) GetService(name string) (*api.AgentService, error)

func (*Aid) RegisterService

func (aid *Aid) RegisterService(name string, port int) error

Jump to

Keyboard shortcuts

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