grpc

package
v0.0.0-...-a5db094 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthGRPCSvcClient

func GetAuthGRPCSvcClient(conn *grpc.ClientConn) (protos.AuthRpcServiceClient, *grpc.ClientConn)

GetAuthGRPCSvcClient returns an RPC client for Authentication service

func GetProjectById

func GetProjectById(client protos.AuthRpcServiceClient,
	projectId string) (*protos.GetProjectByIdResponse, error)

GetProjectById returns the project details based on its uid

func GetUserById

func GetUserById(client protos.AuthRpcServiceClient,
	userId string) (*protos.GetUserByIdResponse, error)

GetUserById returns the project details based on its uid

func ValidatorGRPCRequest

func ValidatorGRPCRequest(client protos.AuthRpcServiceClient,
	jwt string, projectID string, requiredRoles []string, invitation string) error

ValidatorGRPCRequest sends a request to Authentication server to ensure user permission over the project

Types

This section is empty.

Jump to

Keyboard shortcuts

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