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