Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintObject ¶
func PrintObject(object interface{})
Types ¶
type AuthCredential ¶
type AuthCredential struct {
// contains filtered or unexported fields
}
AuthCredential 自定义认证
func NewAuthCredential ¶
func NewAuthCredential(token string) *AuthCredential
func (AuthCredential) GetRequestMetadata ¶
func (c AuthCredential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
GetRequestMetadata 实现自定义认证接口
func (AuthCredential) RequireTransportSecurity ¶
func (c AuthCredential) RequireTransportSecurity() bool
RequireTransportSecurity 自定义认证是否开启TLS
Click to show internal directories.
Click to hide internal directories.