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
Click to show internal directories.
Click to hide internal directories.