Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidNumMessageComponents = errors.New("invalid number of components in message")
ErrInvalidNumMessageComponents is the error returned when parsing a message that has an invaid number of items.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Name string Value string Timestamp time.Time PublicKey string Signature string }
Message represents an amproxy metric
func ParseSigned ¶
ParseSigned attempts to parse the given signed string into a Message.
func (Message) ComputeSignature ¶
ComputeSignature uses the private key to compute the HMAC SHA-256 signature for the message.
Click to show internal directories.
Click to hide internal directories.