client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartClient

func StartClient()

func StartClientIntercept

func StartClientIntercept()

func StartClientRegister

func StartClientRegister()

func StartClientTLS

func StartClientTLS()

func StartClientToken

func StartClientToken()

Types

type CustomerCredsAuth

type CustomerCredsAuth struct {
}

自定义认证,实现 PerRPCCredentials 接口

func (CustomerCredsAuth) GetRequestMetadata

func (c CustomerCredsAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

获取元数据

func (CustomerCredsAuth) RequireTransportSecurity

func (c CustomerCredsAuth) RequireTransportSecurity() bool

是否开启传输安全

Jump to

Keyboard shortcuts

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