service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(Service) Service

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) Middleware

func NewInstrumentingMiddleware

func NewInstrumentingMiddleware(counter metrics.Counter, latency metrics.Histogram) Middleware

type OCSPResponder

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

func (*OCSPResponder) Health

func (o *OCSPResponder) Health(ctx context.Context) bool

func (*OCSPResponder) Verify

func (o *OCSPResponder) Verify(ctx context.Context, msg []byte) ([]byte, error)

type Service

type Service interface {
	Health(ctx context.Context) bool
	Verify(ctx context.Context, msg []byte) ([]byte, error)
}

func NewService

func NewService(respSecrets responder.Secrets, lamassuCAClient *client.LamassuCaClient) (Service, error)

Jump to

Keyboard shortcuts

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