client

package
v0.0.0-...-370319b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGrpcClient

func GetGrpcClient[T any](name string, f func(cc grpc.ClientConnInterface) T, optsFunc ...OptsFunc) T

GetGrpcClient 获取grpc客户端,封装了流量染色功能和client日志

func GetHttpClient

func GetHttpClient(optsFunc ...OptsFunc) *gclient.Client

GetHttpClient 获取http客户端,封装了流量染色,client日志

Types

type OptsFunc

type OptsFunc func(o *opts)

func WithHttpDiscovery

func WithHttpDiscovery(httpDiscovery bool) OptsFunc

WithHttpDiscovery 是否开启http服务发现,只有http客户端有用

func WithLog

func WithLog(log bool) OptsFunc

WithLog 是否打印client日志

Jump to

Keyboard shortcuts

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