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