Documentation ¶
Index ¶
- func ClsConfig()
- func DelConfig(prefix, entityType, entityId, env string, c context.Context)
- func DelConfigFull(key string, c context.Context)
- func GetConfigFull(key string, c context.Context) []byte
- func GetConfigs(prefix, entityType string, c context.Context) api.KVPairs
- func GetDc(c context.Context) []string
- func GetHealthService(servicename string, c context.Context) []*api.ServiceEntry
- func GetHealthServiceDc(servicename string, c context.Context) []*api.ServiceEntry
- func GetService(servicename string, c context.Context) []*api.CatalogService
- func GetServices(c context.Context) map[string][]string
- func Getconfaml(prefix, entityType, entityId, env string, c context.Context) map[string]interface{}
- func Getconfibytes(prefix, entityType, entityId, env string, c context.Context) []byte
- func PutConfig(prefix, entityType, entityId, env string, value []byte, c context.Context)
- func PutConfigFull(key string, value []byte, c context.Context)
- func RemoveUnhealthService(servicename string, c context.Context)
- func Sendconfig2consul(entityType string, entityId string, env string, content string, ...) (string, error)
- func ServiceEntryArrayPrint(services []*api.ServiceEntry) string
- func ServiceEntryPrint(service *api.ServiceEntry) string
- func StartWatch(prefix string, fulfil bool, c context.Context)
- func StartWatchEvent(name string, fulfil bool, c context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelConfigFull ¶
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 Getconfibytes ¶
func RemoveUnhealthService ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.