grpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: AGPL-3.0 Imports: 15 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 represents the gRPC server

func NewServer

func NewServer(cfg *config.ServerConfig, logger *slog.Logger, opts ...ServerOption) (*Server, error)

NewServer creates a new gRPC server

func (*Server) GracefulStop

func (s *Server) GracefulStop()

GracefulStop gracefully stops the server

func (*Server) Start

func (s *Server) Start() error

Start starts the gRPC server

func (*Server) Stop

func (s *Server) Stop()

Stop immediately stops the server

type ServerOption

type ServerOption func(*Server)

ServerOption is a functional option for configuring the Server

func WithExternalAuthz

func WithExternalAuthz(svc *authz.ExternalAuthzService) ServerOption

WithExternalAuthz sets the external authorization service

func WithPermissionsService

func WithPermissionsService(svc *permissions.Service) ServerOption

WithPermissionsService sets the permissions service

Jump to

Keyboard shortcuts

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