grpc

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package grpc implements gRPC functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGRPCRequest added in v0.39.0

func IsGRPCRequest(r *http.Request) bool

IsGRPCRequest returns true if this is a GRPC request

Types

type Server

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

Server implements functions needed to configure, start and stop the gRPC server.

func NewServer

func NewServer(options *ServerOptions) *Server

NewServer creates a new gRPC server.

func (*Server) ServeHTTP added in v0.39.0

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown gracefully stops the server. Will block until all pending RPCs are finished.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

type ServerOptions

type ServerOptions struct {
	Listener        net.Listener
	Logger          log.Logger
	Authenticator   auth.Authenticator
	APIServerConfig *config.Config
	ServiceCatalog  *services.Catalog
	OAuthProviders  []config.IdpConfig
	RateLimitStore  limiter.Store
}

ServerOptions contains the options to configure the gRPC server.

Directories

Path Synopsis
Package interceptors contains the GRPC interceptors
Package interceptors contains the GRPC interceptors
Package reader implements a size-limited reader for uploading templates of multiple kinds.
Package reader implements a size-limited reader for uploading templates of multiple kinds.
Package servers implements the gRPC servers.
Package servers implements the gRPC servers.

Jump to

Keyboard shortcuts

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