grpc

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnarySecurityWrapper

func UnarySecurityWrapper(secretManager secrets.SecretManager) grpc.UnaryServerInterceptor

UnarySecurityWrapper creates a new Security middleware for gRPC. It will check for the presence of a useragent. It will also validate that the sent token is correct.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is an instance of the GRPC server struct which includes all dependencies.

func CreateServer

func CreateServer(userServiceClient userDataService) (*Server, error)

CreateServer creates a new Server struct and assigns all dependencies to it.

func (*Server) User

func (s *Server) User(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)

User returns a single user based on email.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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