request

package
v2.0.0-...-5ff25aa Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package request 请求工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGRPCConnect

func InitGRPCConnect(clientConfig *ClientConfig) (*grpc.ClientConn, error)

InitGRPCConnect 初始化grpc链接

@param clientConfig
@return *grpc.ClientConn
@return error

Types

type ClientConfig

type ClientConfig struct {
	Address        string
	TlsEnable      bool
	CaCert         []byte
	CaPath         string
	ClientCert     []byte
	ClientCertPath string
	ClientKey      []byte
	ClientKeyPath  string
	Timeout        int64
	ServerName     string
	AccessCode     string
	Log            log.LoggerInterface
}

ClientConfig 客户端配置

Jump to

Keyboard shortcuts

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