consul_client

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulClientParam

type ConsulClientParam struct {
	Host  string //the customer consul server address
	Token string //the customer consul server Token
	Port  int    //the customer consul server Port
}

*

  • ConsulClientParam *

type ShenYuConsulClient

type ShenYuConsulClient struct {
	Ccp          *ConsulClientParam //ConsulClientParam
	ConsulClient *api.Client        //consulClient
}

*

  • ShenYuConsulClient *

func (*ShenYuConsulClient) DeregisterServiceInstance

func (scc *ShenYuConsulClient) DeregisterServiceInstance(metaData interface{}) (deRegisterResult bool, err error)

*

  • DeregisterServiceInstance *

func (*ShenYuConsulClient) GetServiceInstanceInfo

func (scc *ShenYuConsulClient) GetServiceInstanceInfo(metaData interface{}) (instances interface{}, err error)

*

  • GetServiceInstanceInfo *

func (*ShenYuConsulClient) NewClient

func (scc *ShenYuConsulClient) NewClient(clientParam interface{}) (client interface{}, createResult bool, err error)

*

  • NewClient *

func (*ShenYuConsulClient) RegisterServiceInstance

func (scc *ShenYuConsulClient) RegisterServiceInstance(metaData interface{}) (registerResult bool, err error)

*

  • RegisterServiceInstance *

Jump to

Keyboard shortcuts

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