Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceInstance ¶
func AddServiceInstance(in *ServiceInstance)
func ConnectService ¶
func ConnectService(in *ServiceInstance) (*grpc.ClientConn, error)
func RemoveServiceInstance ¶
func RemoveServiceInstance(id string)
Types ¶
type ServiceInstance ¶
type ServiceInstance struct { ID string `json:"id"` Type string `json:"type"` Label string `json:"label"` GrpcAddr string `json:"grpc_addr"` HttpAddr *string `json:"http_addr"` // contains filtered or unexported fields }
func GetServiceInstance ¶
func GetServiceInstance(id string) *ServiceInstance
func GetServiceInstanceByType ¶
func GetServiceInstanceByType(t string) *ServiceInstance
func ListServiceInstance ¶
func ListServiceInstance() []*ServiceInstance
func ListServiceInstanceByType ¶
func ListServiceInstanceByType(t string) []*ServiceInstance
func (*ServiceInstance) GetGrpcConn ¶
func (v *ServiceInstance) GetGrpcConn() (*grpc.ClientConn, error)
Click to show internal directories.
Click to hide internal directories.