grpc

package
v0.0.0-...-d6e163c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 39 Imported by: 269

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CodedError = status.Errorf

CodedError is a alias required to appease go vet

View Source
var ErrMissingParameters = CodedError(codes.FailedPrecondition, "required RPC parameter was missing")

Functions

func AuthzToPB

func AuthzToPB(authz core.Authorization) (*corepb.Authorization, error)

func CertStatusToPB

func CertStatusToPB(certStatus core.CertificateStatus) *corepb.CertificateStatus

func CertToPB

func CertToPB(cert core.Certificate) *corepb.Certificate

func ChallengeToPB

func ChallengeToPB(challenge core.Challenge) (*corepb.Challenge, error)

func ClientSetup

func ClientSetup(c *cmd.GRPCClientConfig, tlsConfig *tls.Config, statsRegistry prometheus.Registerer, clk clock.Clock) (*grpc.ClientConn, error)

ClientSetup creates a gRPC TransportCredentials that presents a client certificate and validates the server certificate based on the provided *tls.Config. It dials the remote service and returns a grpc.ClientConn if successful.

func NewServer

func NewServer(c *cmd.GRPCServerConfig, logger blog.Logger) *serverBuilder

NewServer returns an object which can be used to build gRPC servers. It takes the server's configuration to perform initialization and a logger for deep health checks.

func PBToAuthz

func PBToAuthz(pb *corepb.Authorization) (core.Authorization, error)

func PBToAuthzMap

PBToAuthzMap converts a protobuf map of domains mapped to protobuf authorizations to a golang map[string]*core.Authorization.

func PBToCert

func PBToCert(pb *corepb.Certificate) core.Certificate

func PBToChallenge

func PBToChallenge(in *corepb.Challenge) (challenge core.Challenge, err error)

func PBToProblemDetails

func PBToProblemDetails(in *corepb.ProblemDetails) (*probs.ProblemDetails, error)

func PBToValidationRecord

func PBToValidationRecord(in *corepb.ValidationRecord) (record core.ValidationRecord, err error)

func PbToRegistration

func PbToRegistration(pb *corepb.Registration) (core.Registration, error)

func ProblemDetailsToPB

func ProblemDetailsToPB(prob *probs.ProblemDetails) (*corepb.ProblemDetails, error)

func RegistrationToPB

func RegistrationToPB(reg core.Registration) (*corepb.Registration, error)

func ValidationRecordToPB

func ValidationRecordToPB(record core.ValidationRecord) (*corepb.ValidationRecord, error)

func ValidationResultToPB

func ValidationResultToPB(records []core.ValidationRecord, prob *probs.ProblemDetails, perspective, rir string) (*vapb.ValidationResult, error)

Types

This section is empty.

Directories

Path Synopsis
internal
backoff
Package backoff implement the backoff strategy for gRPC.
Package backoff implement the backoff strategy for gRPC.
grpcrand
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.
leakcheck
Package leakcheck contains functions to check leaked goroutines.
Package leakcheck contains functions to check leaked goroutines.

Jump to

Keyboard shortcuts

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