Documentation
¶
Index ¶
- Constants
- func AllService(path string) map[string]*grpc.ClientConn
- func GetService(path string) (*grpc.ClientConn, string)
- func GetServiceWithHash(path string, value int) (*grpc.ClientConn, string)
- func GetServiceWithId(path string, id string) *grpc.ClientConn
- func Init(root string, hosts, names []string)
- func RegisterCallback(path string, callback chan string)
Constants ¶
View Source
const ( DEFAULT_TIMEOUT = 5 * time.Second DEFAULT_RETRIES = 6 // failed connection retries (for every ten seconds) )
Variables ¶
This section is empty.
Functions ¶
func AllService ¶
func AllService(path string) map[string]*grpc.ClientConn
func GetService ¶
func GetService(path string) (*grpc.ClientConn, string)
/////////////////////////////////////////////////////////////// Wrappers
func GetServiceWithHash ¶
func GetServiceWithHash(path string, value int) (*grpc.ClientConn, string)
func GetServiceWithId ¶
func GetServiceWithId(path string, id string) *grpc.ClientConn
func RegisterCallback ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.