client

package
v0.0.0-...-0e611fa Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserClientWithConnection

func NewUserClientWithConnection(grpcServerAddr string, attachToken bool, loginRequest *pb.LoginRequest) (*grpc.ClientConn, pb.AuthServiceClient, pb.UserDataServiceClient)

NewUserClientWithConnection dials a connection to gRPC server and initializes a new UserClient using the connection

Types

type AuthInterceptor

type AuthInterceptor struct {
	Token string
}

AuthInterceptor is the client interceptor struct

func (*AuthInterceptor) GetUnaryInterceptor

func (interceptor *AuthInterceptor) GetUnaryInterceptor() grpc.UnaryClientInterceptor

GetUnaryInterceptor returns UnaryClientInterceptor for the client

Jump to

Keyboard shortcuts

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