directory

package
v0.0.0-...-a621233 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

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