grpc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

CreateUser implements the gRPC CreateUser endpoint

type Config

type Config struct {
	Addr        string
	AuthService authService
	Logger      logger
}

type Server

type Server struct {
	*grpc.Server
	// contains filtered or unexported fields
}

Server implements gRPC UserService for internal service-to-service communication

func NewServer

func NewServer(config *Config) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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