Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureAPI()
- func GetTimestampCertChainHandler(_ ts.GetTimestampCertChainParams) middleware.Responder
- func ParseJSONRequest(reqBytes []byte) (*timestamp.Request, string, error)
- func TimestampResponseHandler(params ts.GetTimestampResponseParams) middleware.Responder
- type API
- type JSONRequest
Constants ¶
View Source
const (
WeakHashAlgorithmTimestampRequest = "Weak hash algorithm in timestamp request"
)
Variables ¶
View Source
var ( MetricLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "timestamp_authority_api_latency", Help: "API Latency on calls", }, []string{"path", "code"}) MetricLatencySummary = promauto.NewSummaryVec(prometheus.SummaryOpts{ Name: "timestamp_authority_api_latency_summary", Help: "API Latency on calls", }, []string{"path", "code"}) MetricRequestLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "timestamp_authority_latency_by_api", Help: "API Latency (in ns) by path and method", Buckets: prometheus.ExponentialBucketsRange( float64(time.Millisecond), float64(4*time.Second), 10), }, []string{"path", "method"}) MetricRequestCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "timestamp_authority_http_requests_total", Help: "Total number of HTTP requests by status code, path, and method.", }, []string{"code", "path", "method"}) MetricNTPLatency = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "timestamp_authority_ntp_latency", Help: "NTP request latency", }, []string{"host"}) MetricNTPSyncCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "timestamp_authority_ntp_sync_total", Help: "Total number of NTP requests against a remote server", }, []string{"host", "failed"}) MetricNTPErrorCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "timestamp_authority_ntp_errors_total", Help: "Total number of NTP related errors", }, []string{"reason"}) )
Functions ¶
func ConfigureAPI ¶
func ConfigureAPI()
func GetTimestampCertChainHandler ¶
func GetTimestampCertChainHandler(_ ts.GetTimestampCertChainParams) middleware.Responder
func ParseJSONRequest ¶ added in v1.1.0
ParseJSONRequest parses a JSON request into a timestamp.Request struct
func TimestampResponseHandler ¶
func TimestampResponseHandler(params ts.GetTimestampResponseParams) middleware.Responder
Types ¶
Click to show internal directories.
Click to hide internal directories.