worc

package module
v0.0.0-...-fc74bd0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

README

worc

Wothing Rpc Call Library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallRPC

func CallRPC(ctx context.Context, client interface{}, serviceName string, method string, req interface{}) (ret interface{}, err error)

CallRPC is helper func that make life easier ctx: context client: grpc client serviceName: name of service metod: method name that you want to use req: grpc request

func CloseServiceConns

func CloseServiceConns()

CloseServiceConns close all established conns

func StartServiceConns

func StartServiceConns(address string, serviceList []string)

StartServiceConns start grpc conns with balancer

Types

This section is empty.

Jump to

Keyboard shortcuts

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