grpcx

package module
v0.0.0-...-0e72998 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty() *emptypb.Empty

func TimestampToTimeP

func TimestampToTimeP(in *timestamppb.Timestamp) *time.Time

func Timestamppb

func Timestamppb(in *time.Time) *timestamppb.Timestamp

func UInt64

func UInt64[T int64 | uint64](v T) *wrapperspb.UInt64Value

Types

type Interceptor

type Interceptor interface {
	UnrayInterceptor() []grpc.UnaryServerInterceptor
	StreamInterceptor() []grpc.StreamServerInterceptor
}

type TokenAuth

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

Token client token authorizer...

func NewTokenAuth

func NewTokenAuth(token string) *TokenAuth

func (*TokenAuth) GetRequestMetadata

func (t *TokenAuth) GetRequestMetadata(ctx context.Context, in ...string) (map[string]string, error)

func (*TokenAuth) RequireTransportSecurity

func (t *TokenAuth) RequireTransportSecurity() bool

func (*TokenAuth) SetToken

func (t *TokenAuth) SetToken(token string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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