endpoints

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHealthEndpoint

func MakeHealthEndpoint(s service.Service) endpoint.Endpoint

func MakeOCSPEndpoint

func MakeOCSPEndpoint(s service.Service) endpoint.Endpoint

Types

type Endpoints

type Endpoints struct {
	GetEndpoint    endpoint.Endpoint
	PostEndpoint   endpoint.Endpoint
	HealthEndpoint endpoint.Endpoint
}

func MakeServerEndpoints

func MakeServerEndpoints(s service.Service, otTracer stdopentracing.Tracer) Endpoints

type HealthRequest

type HealthRequest struct{}

type HealthResponse

type HealthResponse struct {
	Healthy bool  `json:"healthy,omitempty"`
	Err     error `json:"err,omitempty"`
}

type OcspRequest

type OcspRequest struct {
	Msg []byte
}

type OcspResponse

type OcspResponse struct {
	Resp []byte
	Err  error
}

Jump to

Keyboard shortcuts

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