Documentation ¶
Index ¶
- Variables
- func RegisterStatusServer(s *grpc.Server, srv StatusServer)
- func RegisterStatusServiceServer(s *grpc.Server, srv StatusServiceServer)
- type NodeError
- func (*NodeError) Descriptor() ([]byte, []int)
- func (m *NodeError) GetErrorStatus() string
- func (m *NodeError) GetHVal() string
- func (m *NodeError) GetPeerId() string
- func (m *NodeError) GetTimeCreated() time.Time
- func (m *NodeError) GettableName() string
- func (m *NodeError) Marshal() (dAtA []byte, err error)
- func (m *NodeError) MarshalTo(dAtA []byte) (int, error)
- func (m *NodeError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodeError) ProtoMessage()
- func (m *NodeError) Reset()
- func (m *NodeError) Size() (n int)
- func (m *NodeError) String() string
- func (m *NodeError) Unmarshal(dAtA []byte) error
- func (m *NodeError) XXX_DiscardUnknown()
- func (m *NodeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeError) XXX_Merge(src proto.Message)
- func (*NodeError) XXX_MessageName() string
- func (m *NodeError) XXX_Size() int
- func (m *NodeError) XXX_Unmarshal(b []byte) error
- type NodeHealth
- func (*NodeHealth) Descriptor() ([]byte, []int)
- func (m *NodeHealth) GetBtfsVersion() string
- func (m *NodeHealth) GetFailurePoint() string
- func (m *NodeHealth) GetNodeId() string
- func (m *NodeHealth) GetTimeCreated() time.Time
- func (m *NodeHealth) GettableName() string
- func (m *NodeHealth) Marshal() (dAtA []byte, err error)
- func (m *NodeHealth) MarshalTo(dAtA []byte) (int, error)
- func (m *NodeHealth) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NodeHealth) ProtoMessage()
- func (m *NodeHealth) Reset()
- func (m *NodeHealth) Size() (n int)
- func (m *NodeHealth) String() string
- func (m *NodeHealth) Unmarshal(dAtA []byte) error
- func (m *NodeHealth) XXX_DiscardUnknown()
- func (m *NodeHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeHealth) XXX_Merge(src proto.Message)
- func (*NodeHealth) XXX_MessageName() string
- func (m *NodeHealth) XXX_Size() int
- func (m *NodeHealth) XXX_Unmarshal(b []byte) error
- type SignedMetrics
- func (*SignedMetrics) Descriptor() ([]byte, []int)
- func (m *SignedMetrics) GetPayload() []byte
- func (m *SignedMetrics) GetPublicKey() []byte
- func (m *SignedMetrics) GetSignature() []byte
- func (m *SignedMetrics) Marshal() (dAtA []byte, err error)
- func (m *SignedMetrics) MarshalTo(dAtA []byte) (int, error)
- func (m *SignedMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignedMetrics) ProtoMessage()
- func (m *SignedMetrics) Reset()
- func (m *SignedMetrics) Size() (n int)
- func (m *SignedMetrics) String() string
- func (m *SignedMetrics) Unmarshal(dAtA []byte) error
- func (m *SignedMetrics) XXX_DiscardUnknown()
- func (m *SignedMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedMetrics) XXX_Merge(src proto.Message)
- func (*SignedMetrics) XXX_MessageName() string
- func (m *SignedMetrics) XXX_Size() int
- func (m *SignedMetrics) XXX_Unmarshal(b []byte) error
- type StatusClient
- type StatusServer
- type StatusServiceClient
- type StatusServiceServer
- type UnimplementedStatusServer
- func (*UnimplementedStatusServer) CollectError(ctx context.Context, req *NodeError) (*types.Empty, error)
- func (*UnimplementedStatusServer) CollectHealth(ctx context.Context, req *NodeHealth) (*types.Empty, error)
- func (*UnimplementedStatusServer) UpdateMetrics(ctx context.Context, req *SignedMetrics) (*types.Empty, error)
- type UnimplementedStatusServiceServer
- func (*UnimplementedStatusServiceServer) CollectError(ctx context.Context, req *NodeError) (*types.Empty, error)
- func (*UnimplementedStatusServiceServer) CollectHealth(ctx context.Context, req *NodeHealth) (*types.Empty, error)
- func (*UnimplementedStatusServiceServer) UpdateMetrics(ctx context.Context, req *SignedMetrics) (*types.Empty, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterStatusServer ¶
func RegisterStatusServer(s *grpc.Server, srv StatusServer)
func RegisterStatusServiceServer ¶ added in v0.1.8
func RegisterStatusServiceServer(s *grpc.Server, srv StatusServiceServer)
Types ¶
type NodeError ¶
type NodeError struct { HVal string `protobuf:"bytes,2,opt,name=h_val,json=hVal,proto3" json:"h_val,omitempty" pg:"h_val"` PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty" pg:"peer_id"` ErrorStatus string `protobuf:"bytes,4,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty" pg:"error_status"` TimeCreated time.Time `protobuf:"bytes,5,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created" pg:"time_created"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` // contains filtered or unexported fields }
func (*NodeError) Descriptor ¶
func (*NodeError) GetErrorStatus ¶
func (*NodeError) GetTimeCreated ¶
func (*NodeError) GettableName ¶ added in v0.1.1
func (*NodeError) MarshalToSizedBuffer ¶ added in v0.0.13
func (*NodeError) ProtoMessage ¶
func (*NodeError) ProtoMessage()
func (*NodeError) XXX_DiscardUnknown ¶
func (m *NodeError) XXX_DiscardUnknown()
func (*NodeError) XXX_Marshal ¶
func (*NodeError) XXX_MessageName ¶ added in v0.0.13
func (*NodeError) XXX_Unmarshal ¶
type NodeHealth ¶
type NodeHealth struct { NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" pg:"node_id"` BtfsVersion string `protobuf:"bytes,3,opt,name=btfs_version,json=btfsVersion,proto3" json:"btfs_version,omitempty" pg:"btfs_version"` FailurePoint string `protobuf:"bytes,4,opt,name=failure_point,json=failurePoint,proto3" json:"failure_point,omitempty" pg:"failure_point"` TimeCreated time.Time `protobuf:"bytes,5,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created" pg:"time_created"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` // contains filtered or unexported fields }
func (*NodeHealth) Descriptor ¶
func (*NodeHealth) Descriptor() ([]byte, []int)
func (*NodeHealth) GetBtfsVersion ¶
func (m *NodeHealth) GetBtfsVersion() string
func (*NodeHealth) GetFailurePoint ¶
func (m *NodeHealth) GetFailurePoint() string
func (*NodeHealth) GetNodeId ¶
func (m *NodeHealth) GetNodeId() string
func (*NodeHealth) GetTimeCreated ¶
func (m *NodeHealth) GetTimeCreated() time.Time
func (*NodeHealth) GettableName ¶ added in v0.1.1
func (m *NodeHealth) GettableName() string
func (*NodeHealth) Marshal ¶ added in v0.0.13
func (m *NodeHealth) Marshal() (dAtA []byte, err error)
func (*NodeHealth) MarshalTo ¶ added in v0.0.13
func (m *NodeHealth) MarshalTo(dAtA []byte) (int, error)
func (*NodeHealth) MarshalToSizedBuffer ¶ added in v0.0.13
func (m *NodeHealth) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NodeHealth) ProtoMessage ¶
func (*NodeHealth) ProtoMessage()
func (*NodeHealth) Reset ¶
func (m *NodeHealth) Reset()
func (*NodeHealth) Size ¶ added in v0.0.13
func (m *NodeHealth) Size() (n int)
func (*NodeHealth) String ¶
func (m *NodeHealth) String() string
func (*NodeHealth) Unmarshal ¶ added in v0.0.13
func (m *NodeHealth) Unmarshal(dAtA []byte) error
func (*NodeHealth) XXX_DiscardUnknown ¶
func (m *NodeHealth) XXX_DiscardUnknown()
func (*NodeHealth) XXX_Marshal ¶
func (m *NodeHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NodeHealth) XXX_Merge ¶
func (m *NodeHealth) XXX_Merge(src proto.Message)
func (*NodeHealth) XXX_MessageName ¶ added in v0.0.13
func (*NodeHealth) XXX_MessageName() string
func (*NodeHealth) XXX_Size ¶
func (m *NodeHealth) XXX_Size() int
func (*NodeHealth) XXX_Unmarshal ¶
func (m *NodeHealth) XXX_Unmarshal(b []byte) error
type SignedMetrics ¶
type SignedMetrics struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" pg:"public_key"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty" pg:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` }
func (*SignedMetrics) Descriptor ¶
func (*SignedMetrics) Descriptor() ([]byte, []int)
func (*SignedMetrics) GetPayload ¶
func (m *SignedMetrics) GetPayload() []byte
func (*SignedMetrics) GetPublicKey ¶
func (m *SignedMetrics) GetPublicKey() []byte
func (*SignedMetrics) GetSignature ¶
func (m *SignedMetrics) GetSignature() []byte
func (*SignedMetrics) Marshal ¶ added in v0.0.13
func (m *SignedMetrics) Marshal() (dAtA []byte, err error)
func (*SignedMetrics) MarshalTo ¶ added in v0.0.13
func (m *SignedMetrics) MarshalTo(dAtA []byte) (int, error)
func (*SignedMetrics) MarshalToSizedBuffer ¶ added in v0.0.13
func (m *SignedMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignedMetrics) ProtoMessage ¶
func (*SignedMetrics) ProtoMessage()
func (*SignedMetrics) Reset ¶
func (m *SignedMetrics) Reset()
func (*SignedMetrics) Size ¶ added in v0.0.13
func (m *SignedMetrics) Size() (n int)
func (*SignedMetrics) String ¶
func (m *SignedMetrics) String() string
func (*SignedMetrics) Unmarshal ¶ added in v0.0.13
func (m *SignedMetrics) Unmarshal(dAtA []byte) error
func (*SignedMetrics) XXX_DiscardUnknown ¶
func (m *SignedMetrics) XXX_DiscardUnknown()
func (*SignedMetrics) XXX_Marshal ¶
func (m *SignedMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedMetrics) XXX_Merge ¶
func (m *SignedMetrics) XXX_Merge(src proto.Message)
func (*SignedMetrics) XXX_MessageName ¶ added in v0.0.13
func (*SignedMetrics) XXX_MessageName() string
func (*SignedMetrics) XXX_Size ¶
func (m *SignedMetrics) XXX_Size() int
func (*SignedMetrics) XXX_Unmarshal ¶
func (m *SignedMetrics) XXX_Unmarshal(b []byte) error
type StatusClient ¶
type StatusClient interface { UpdateMetrics(ctx context.Context, in *SignedMetrics, opts ...grpc.CallOption) (*types.Empty, error) CollectHealth(ctx context.Context, in *NodeHealth, opts ...grpc.CallOption) (*types.Empty, error) CollectError(ctx context.Context, in *NodeError, opts ...grpc.CallOption) (*types.Empty, error) }
StatusClient is the client API for Status service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStatusClient ¶
func NewStatusClient(cc *grpc.ClientConn) StatusClient
type StatusServer ¶
type StatusServer interface { UpdateMetrics(context.Context, *SignedMetrics) (*types.Empty, error) CollectHealth(context.Context, *NodeHealth) (*types.Empty, error) CollectError(context.Context, *NodeError) (*types.Empty, error) }
StatusServer is the server API for Status service.
type StatusServiceClient ¶ added in v0.1.8
type StatusServiceClient interface { UpdateMetrics(ctx context.Context, in *SignedMetrics, opts ...grpc.CallOption) (*types.Empty, error) CollectHealth(ctx context.Context, in *NodeHealth, opts ...grpc.CallOption) (*types.Empty, error) CollectError(ctx context.Context, in *NodeError, opts ...grpc.CallOption) (*types.Empty, error) }
StatusServiceClient is the client API for StatusService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStatusServiceClient ¶ added in v0.1.8
func NewStatusServiceClient(cc *grpc.ClientConn) StatusServiceClient
type StatusServiceServer ¶ added in v0.1.8
type StatusServiceServer interface { UpdateMetrics(context.Context, *SignedMetrics) (*types.Empty, error) CollectHealth(context.Context, *NodeHealth) (*types.Empty, error) CollectError(context.Context, *NodeError) (*types.Empty, error) }
StatusServiceServer is the server API for StatusService service.
type UnimplementedStatusServer ¶
type UnimplementedStatusServer struct { }
UnimplementedStatusServer can be embedded to have forward compatible implementations.
func (*UnimplementedStatusServer) CollectError ¶
func (*UnimplementedStatusServer) CollectHealth ¶
func (*UnimplementedStatusServer) CollectHealth(ctx context.Context, req *NodeHealth) (*types.Empty, error)
func (*UnimplementedStatusServer) UpdateMetrics ¶
func (*UnimplementedStatusServer) UpdateMetrics(ctx context.Context, req *SignedMetrics) (*types.Empty, error)
type UnimplementedStatusServiceServer ¶ added in v0.1.8
type UnimplementedStatusServiceServer struct { }
UnimplementedStatusServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedStatusServiceServer) CollectError ¶ added in v0.1.8
func (*UnimplementedStatusServiceServer) CollectHealth ¶ added in v0.1.8
func (*UnimplementedStatusServiceServer) CollectHealth(ctx context.Context, req *NodeHealth) (*types.Empty, error)
func (*UnimplementedStatusServiceServer) UpdateMetrics ¶ added in v0.1.8
func (*UnimplementedStatusServiceServer) UpdateMetrics(ctx context.Context, req *SignedMetrics) (*types.Empty, error)