Documentation
¶
Index ¶
Constants ¶
View Source
const ( Chain = "chain" TRC = "trc" )
Trust material
View Source
const ( TRCReq = "trc_request" ChainReq = "chain_request" ChainRenewalReq = "chain_renewal_request" LatestTRC = "latest_trc_number" )
Request types
View Source
const ( SigVerification = "signature_verification" ASInspector = "trc_inspection" App = "application" )
Triggers
View Source
const ( Success = prom.Success OkExists = "ok_exists" OkInserted = "ok_inserted" OkIgnored = "ok_ignored" ErrMismatch = "err_content_mismatch" ErrDB = prom.ErrDB ErrInactive = "err_inactive" ErrInternal = prom.ErrInternal ErrKey = "err_key" ErrCerts = "err_certs" ErrNotAllowed = "err_not_allowed" ErrNotFound = "err_not_found" ErrParse = prom.ErrParse ErrTransmit = "err_transmit" ErrValidate = prom.ErrValidate ErrVerify = prom.ErrVerify )
Result types
View Source
const Namespace = "trustengine"
Namespace is the prometheus namespace.
Variables ¶
View Source
var ( // Handler exposes the handler metrics. Handler = newHandler() // Signer exposes the signer metrics. Signer = newSigner() )
Functions ¶
func PeerToLabel ¶
PeerToLabel converts the peer address to a peer metric label.
Types ¶
type HandlerLabels ¶
HandlerLabels defines the handler labels.
func (HandlerLabels) Labels ¶
func (l HandlerLabels) Labels() []string
Labels returns the list of labels.
func (HandlerLabels) Values ¶
func (l HandlerLabels) Values() []string
Values returns the label values in the order defined by Labels.
func (HandlerLabels) WithResult ¶
func (l HandlerLabels) WithResult(result string) HandlerLabels
WithResult returns the handler labels with the modified result.
type SignerLabels ¶
type SignerLabels struct {
Result string
}
SignerLabels defines the trust material signer labels.
func (SignerLabels) Labels ¶
func (l SignerLabels) Labels() []string
Labels returns the list of labels.
func (SignerLabels) Values ¶
func (l SignerLabels) Values() []string
Values returns the label values in the order defined by Labels.
func (SignerLabels) WithResult ¶
func (l SignerLabels) WithResult(result string) SignerLabels
WithResult returns the lookup labels with the modified result.
Click to show internal directories.
Click to hide internal directories.