server

package
v0.0.0-...-949823d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Port is the port that the server will listen on.
	Port int

	// ListenAddress is the address that the server will listen on.
	ListenAddress string

	// Security is the security Provider for the server.
	Security security.Provider

	// Validator are the client authentication validator.
	Validators map[sentryv1pb.SignCertificateRequest_TokenValidator]validator.Validator

	// Name of the default validator to use if the request doesn't specify one.
	DefaultValidator sentryv1pb.SignCertificateRequest_TokenValidator

	// CA is the certificate authority which signs client certificates.
	CA ca.Signer

	// Healthz is the healthz handler for the server.
	Healthz healthz.Healthz
}

Options is the configuration for the server.

type Server

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

Server is the gRPC server for the Sentry service.

func New

func New(opts Options) *Server

func (*Server) SignCertificate

SignCertificate implements the SignCertificate gRPC method.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server. Blocks until the context is cancelled.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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