heartbeat

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Overview

Package heartbeat is a generated protocol buffer package.

It is generated from these files:

github.com/m3db/m3/src/m3em/generated/proto/heartbeat/heartbeat.proto

It has these top-level messages:

HeartbeatRequest
HeartbeatResponse

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthHeartbeat = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowHeartbeat   = fmt.Errorf("proto: integer overflow")
)
View Source
var HeartbeatCode_name = map[int32]string{
	0: "UNKNOWN",
	1: "HEALTHY",
	2: "PROCESS_TERMINATION",
	3: "OVERWRITTEN",
}
View Source
var HeartbeatCode_value = map[string]int32{
	"UNKNOWN":             0,
	"HEALTHY":             1,
	"PROCESS_TERMINATION": 2,
	"OVERWRITTEN":         3,
}

Functions

func RegisterHeartbeaterServer

func RegisterHeartbeaterServer(s *grpc.Server, srv HeartbeaterServer)

Types

type HeartbeatCode

type HeartbeatCode int32
const (
	HeartbeatCode_UNKNOWN             HeartbeatCode = 0
	HeartbeatCode_HEALTHY             HeartbeatCode = 1
	HeartbeatCode_PROCESS_TERMINATION HeartbeatCode = 2
	HeartbeatCode_OVERWRITTEN         HeartbeatCode = 3
)

func (HeartbeatCode) EnumDescriptor

func (HeartbeatCode) EnumDescriptor() ([]byte, []int)

func (HeartbeatCode) String

func (x HeartbeatCode) String() string

type HeartbeatRequest

type HeartbeatRequest struct {
	OperatorUuid   string        `protobuf:"bytes,1,opt,name=operator_uuid,json=operatorUuid,proto3" json:"operator_uuid,omitempty"`
	Code           HeartbeatCode `protobuf:"varint,2,opt,name=code,proto3,enum=heartbeat.HeartbeatCode" json:"code,omitempty"`
	Error          string        `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	ProcessRunning bool          `protobuf:"varint,4,opt,name=process_running,json=processRunning,proto3" json:"process_running,omitempty"`
}

func (*HeartbeatRequest) Descriptor

func (*HeartbeatRequest) Descriptor() ([]byte, []int)

func (*HeartbeatRequest) GetCode

func (m *HeartbeatRequest) GetCode() HeartbeatCode

func (*HeartbeatRequest) GetError

func (m *HeartbeatRequest) GetError() string

func (*HeartbeatRequest) GetOperatorUuid

func (m *HeartbeatRequest) GetOperatorUuid() string

func (*HeartbeatRequest) GetProcessRunning

func (m *HeartbeatRequest) GetProcessRunning() bool

func (*HeartbeatRequest) Marshal

func (m *HeartbeatRequest) Marshal() (dAtA []byte, err error)

func (*HeartbeatRequest) MarshalTo

func (m *HeartbeatRequest) MarshalTo(dAtA []byte) (int, error)

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) Reset

func (m *HeartbeatRequest) Reset()

func (*HeartbeatRequest) Size

func (m *HeartbeatRequest) Size() (n int)

func (*HeartbeatRequest) String

func (m *HeartbeatRequest) String() string

func (*HeartbeatRequest) Unmarshal

func (m *HeartbeatRequest) Unmarshal(dAtA []byte) error

type HeartbeatResponse

type HeartbeatResponse struct {
}

func (*HeartbeatResponse) Descriptor

func (*HeartbeatResponse) Descriptor() ([]byte, []int)

func (*HeartbeatResponse) Marshal

func (m *HeartbeatResponse) Marshal() (dAtA []byte, err error)

func (*HeartbeatResponse) MarshalTo

func (m *HeartbeatResponse) MarshalTo(dAtA []byte) (int, error)

func (*HeartbeatResponse) ProtoMessage

func (*HeartbeatResponse) ProtoMessage()

func (*HeartbeatResponse) Reset

func (m *HeartbeatResponse) Reset()

func (*HeartbeatResponse) Size

func (m *HeartbeatResponse) Size() (n int)

func (*HeartbeatResponse) String

func (m *HeartbeatResponse) String() string

func (*HeartbeatResponse) Unmarshal

func (m *HeartbeatResponse) Unmarshal(dAtA []byte) error

type HeartbeaterClient

type HeartbeaterClient interface {
	Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error)
}

func NewHeartbeaterClient

func NewHeartbeaterClient(cc *grpc.ClientConn) HeartbeaterClient

type HeartbeaterServer

type HeartbeaterServer interface {
	Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL