frostfs-node/pkg/services/control/service.go

96 lines
2.2 KiB
Go
Raw Normal View History

package control
// SetBody sets health check request body.
func (m *HealthCheckRequest) SetBody(v *HealthCheckRequest_Body) {
if m != nil {
m.Body = v
}
}
// SetSignature sets signature of the health check request body.
func (m *HealthCheckRequest) SetSignature(body *Signature) {
if m != nil {
m.Signature = body
}
}
// ReadSignedData marshals request body to buf.
func (m *HealthCheckRequest) ReadSignedData(buf []byte) ([]byte, error) {
_, err := m.GetBody().MarshalTo(buf)
return buf, err
}
// SignedDataSize returns binary size of the request body.
func (m *HealthCheckRequest) SignedDataSize() int {
return m.GetBody().Size()
}
// SetStatus sets health status of storage node.
func (m *HealthCheckResponse_Body) SetStatus(v HealthStatus) {
if m != nil {
m.Status = v
}
}
// SetBody sets health check response body.
func (m *HealthCheckResponse) SetBody(v *HealthCheckResponse_Body) {
if m != nil {
m.Body = v
}
}
// SetSignature sets signature of the health check response body.
func (m *HealthCheckResponse) SetSignature(v *Signature) {
if m != nil {
m.Signature = v
}
}
// ReadSignedData marshals response body to buf.
func (m *HealthCheckResponse) ReadSignedData(buf []byte) ([]byte, error) {
_, err := m.GetBody().MarshalTo(buf)
return buf, err
}
// SignedDataSize returns binary size of the response body.
func (m *HealthCheckResponse) SignedDataSize() int {
return m.GetBody().Size()
}
// SetBody sets get netmap snapshot request body.
func (m *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body) {
if m != nil {
m.Body = v
}
}
// SetSignature sets signature of the netmap snapshot request body.
func (m *NetmapSnapshotRequest) SetSignature(body *Signature) {
if m != nil {
m.Signature = body
}
}
// SetNetmap sets structure of the current network map.
func (m *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap) {
if m != nil {
m.Netmap = v
}
}
// SetBody sets get netmap snapshot response body.
func (m *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body) {
if m != nil {
m.Body = v
}
}
// SetSignature sets signature of the get netmap snapshot response body.
func (m *NetmapSnapshotResponse) SetSignature(v *Signature) {
if m != nil {
m.Signature = v
}
}