utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulServiceResponse

type ConsulServiceResponse []map[string]interface{}

consul service

type Util

type Util struct {
	// contains filtered or unexported fields
}

func New

func New(consul string) *Util

func (*Util) DeleteService

func (u *Util) DeleteService(node string, serviceId string) error

unregisters a service

func (*Util) FindServicesToDelete

func (u *Util) FindServicesToDelete(tag string) []string

filters services based on the supplied 'tag'

func (*Util) GetService

func (u *Util) GetService(name string) ConsulServiceResponse

Jump to

Keyboard shortcuts

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