Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataInterceptor ¶
func MetadataInterceptor() grpc.UnaryServerInterceptor
MetadataInterceptor extracts identity information from gRPC metadata headers and adds them to the request context. A tenant ID is required for every request; actor, request ID, and IP address are optional.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
pb.UnimplementedUserServiceServer
AuthService authService
}
func (*AuthHandler) CreateUser ¶
func (h *AuthHandler) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
CreateUser implements the gRPC CreateUser endpoint
type Server ¶
Server implements gRPC UserService for internal service-to-service communication
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.