Documentation ¶
Index ¶
- type ConsulClientParam
- type ShenYuConsulClient
- func (scc *ShenYuConsulClient) DeregisterServiceInstance(metaData interface{}) (deRegisterResult bool, err error)
- func (scc *ShenYuConsulClient) GetServiceInstanceInfo(metaData interface{}) (instances interface{}, err error)
- func (scc *ShenYuConsulClient) NewClient(clientParam interface{}) (client interface{}, createResult bool, err error)
- func (scc *ShenYuConsulClient) RegisterServiceInstance(metaData interface{}) (registerResult bool, err error)
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 *
Click to show internal directories.
Click to hide internal directories.