Versions in this module Expand all Collapse all v0 v0.2.1 Jan 16, 2023 Changes in this version + func NewGrpcConn(addr string, opts ...grpc.DialOption) (*grpc.ClientConn, error) + func TraceUnaryInt(ctx context.Context, method string, req, reply interface{}, ...) error + func WithTrace() grpc.DialOption + type GrpcConn struct + type GrpcConnManager struct + func NewGrpcConnManager() *GrpcConnManager + func (gm *GrpcConnManager) AddConn(name, addr string, connecter GrpcConnecter, opts ...grpc.DialOption) + func (gm *GrpcConnManager) CloseConns() + func (gm *GrpcConnManager) Reconnect(name string) + type GrpcConnecter interface + OnConnected func(*grpc.ClientConn) + type HttpClient struct + func NewHttpClient() *HttpClient + func (c *HttpClient) GetJSON(url string, data any) (err error) + func (c *HttpClient) GetJSONAuth(url, un, pa string, data any) (err error) + func (c *HttpClient) PostFormJSON(url string, vals url.Values, data any) (err error) + func (c *HttpClient) PostFormJSONAuth(url, un, pa string, vals url.Values, data any) (err error) + func (c *HttpClient) PostJSON(url string, src, data any) (err error) + func (c *HttpClient) PostJSONAuth(url, un, pa string, src, data any) (err error)