grpc

package
v0.0.0-...-97fc41f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is truly needed for its Intercept method which authenticates users before accessing services, but also useful to have all the grpc server boilerplate contained within NewServer function

func NewServer

func NewServer(cfg *config.Config, dbClient db.Database, aS protos.AuthServer, pS protos.PodServer) *Server

func (*Server) Intercept

func (s *Server) Intercept() grpc.UnaryServerInterceptor

func (*Server) Start

func (s *Server) Start(lis net.Listener) error

Jump to

Keyboard shortcuts

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