grpcserver

package
v0.0.0-...-8940cb8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	RegisterCollector(collector prometheus.Collector)
}

type Server

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

func NewServer

func NewServer(
	metrics Metrics,
	unaryInterceptors []grpc.UnaryServerInterceptor,
	streamInterceptors []grpc.StreamServerInterceptor,
) *Server

func (*Server) RegisterAuthzServer

func (s *Server) RegisterAuthzServer(backend pb.AuthzServer)

func (*Server) RegisterCertificateAuthorityServer

func (s *Server) RegisterCertificateAuthorityServer(backend pb.CertificateAuthorityServer)

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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