consulhelp

package
v0.0.0-...-c27815a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClsConfig

func ClsConfig()

func DelConfig

func DelConfig(prefix, entityType, entityId, env string, c context.Context)

"ops/resource/" +

func DelConfigFull

func DelConfigFull(key string, c context.Context)

func GetConfigFull

func GetConfigFull(key string, c context.Context) []byte

func GetConfigs

func GetConfigs(prefix, entityType string, c context.Context) api.KVPairs

func GetDc

func GetDc(c context.Context) []string

func GetHealthService

func GetHealthService(servicename string, c context.Context) []*api.ServiceEntry

func GetHealthServiceDc

func GetHealthServiceDc(servicename string, c context.Context) []*api.ServiceEntry

func GetService

func GetService(servicename string, c context.Context) []*api.CatalogService

func GetServices

func GetServices(c context.Context) map[string][]string

func Getconfaml

func Getconfaml(prefix, entityType, entityId, env string, c context.Context) map[string]interface{}

*

  • get resource information

func Getconfibytes

func Getconfibytes(prefix, entityType, entityId, env string, c context.Context) []byte

func PutConfig

func PutConfig(prefix, entityType, entityId, env string, value []byte, c context.Context)

func PutConfigFull

func PutConfigFull(key string, value []byte, c context.Context)

func RemoveUnhealthService

func RemoveUnhealthService(servicename string, c context.Context)

func Sendconfig2consul

func Sendconfig2consul(entityType string, entityId string, env string, content string, c context.Context) (string, error)

*

  • get resource information

func ServiceEntryArrayPrint

func ServiceEntryArrayPrint(services []*api.ServiceEntry) string

func ServiceEntryPrint

func ServiceEntryPrint(service *api.ServiceEntry) string

func StartWatch

func StartWatch(prefix string, fulfil bool, c context.Context)

func StartWatchEvent

func StartWatchEvent(name string, fulfil bool, c context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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