service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Client errors
	ErrInvalidID = errors.New("invalid CSR ID, does not exist") //404

	//Server errors
	ErrInvalidOperation = errors.New("invalid operation")
	ErrGetCSR           = errors.New("unable to get CSR")
	ErrGetCert          = errors.New("unable to get certificate")
	ErrInsertCert       = errors.New("unable to insert certificate")
	ErrInsertCSR        = errors.New("unable to insert CSR")
	ErrInsertKey        = errors.New("unable to insert Key")
	ErrResponseEncode   = errors.New("error encoding response")
)

Functions

func NewParserm

func NewParserm(mtlsCa x509.Certificate) endpoint.Middleware

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 Service

type Service interface {
	Health(ctx context.Context) bool
}

func NewDMSService

func NewDMSService(fileStore filestore.File, homePath string, lamassuEstClient *lamassuestclient.LamassuEstClient, logger log.Logger) Service

Jump to

Keyboard shortcuts

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