client

package
v0.0.0-...-cdd6459 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "mauditClient"

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	// contains filtered or unexported fields
}

Credential 为每个RPC 请求提供凭据

func (*Credential) GetRequestMetadata

func (cr *Credential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*Credential) RequireTransportSecurity

func (cr *Credential) RequireTransportSecurity() bool

type MauditClient

type MauditClient struct {
	ioc.ObjectImpl

	Addr  string `json:"addr" yaml:"addr"`
	Port  int    `json:"port" yaml:"port"`
	Token string `json:"token" yaml:"token"`
	// contains filtered or unexported fields
}

func GetSvc

func GetSvc() *MauditClient

func (*MauditClient) Init

func (mc *MauditClient) Init()

func (*MauditClient) MauditClient

func (mc *MauditClient) MauditClient() bridge.RpcClient

func (*MauditClient) Name

func (mc *MauditClient) Name() string

func (*MauditClient) Options

func (mc *MauditClient) Options() (opt []grpc.DialOption)

func (*MauditClient) Priority

func (mc *MauditClient) Priority() int

Jump to

Keyboard shortcuts

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