forked from TrueCloudLab/frostfs-node
Define `ControlService` for IR similar to the one from storage node. Add `HealthStatus` RPC which returns health status of the IR application. Implement getters, setters and methods to sign/verify the messages. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
15 lines
240 B
Go
15 lines
240 B
Go
package control
|
|
|
|
// SetKey sets public key used for signing.
|
|
func (x *Signature) SetKey(v []byte) {
|
|
if x != nil {
|
|
x.Key = v
|
|
}
|
|
}
|
|
|
|
// SetSign sets binary signature.
|
|
func (x *Signature) SetSign(v []byte) {
|
|
if x != nil {
|
|
x.Sign = v
|
|
}
|
|
}
|