infopb

package
v0.23.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthRpc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRpc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInfoServer

func RegisterInfoServer(s *grpc.Server, srv InfoServer)

Types

type ExemplarsInfo

type ExemplarsInfo struct {
	MinTime int64 `protobuf:"varint,1,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"`
	MaxTime int64 `protobuf:"varint,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"`
}

/ EXemplarsInfo holds the metadata related to Exemplars API exposed by the component.

func (*ExemplarsInfo) Descriptor

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

func (*ExemplarsInfo) Marshal

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

func (*ExemplarsInfo) MarshalTo

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

func (*ExemplarsInfo) MarshalToSizedBuffer

func (m *ExemplarsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExemplarsInfo) ProtoMessage

func (*ExemplarsInfo) ProtoMessage()

func (*ExemplarsInfo) Reset

func (m *ExemplarsInfo) Reset()

func (*ExemplarsInfo) Size

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

func (*ExemplarsInfo) String

func (m *ExemplarsInfo) String() string

func (*ExemplarsInfo) Unmarshal

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

func (*ExemplarsInfo) XXX_DiscardUnknown

func (m *ExemplarsInfo) XXX_DiscardUnknown()

func (*ExemplarsInfo) XXX_Marshal

func (m *ExemplarsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExemplarsInfo) XXX_Merge

func (m *ExemplarsInfo) XXX_Merge(src proto.Message)

func (*ExemplarsInfo) XXX_Size

func (m *ExemplarsInfo) XXX_Size() int

func (*ExemplarsInfo) XXX_Unmarshal

func (m *ExemplarsInfo) XXX_Unmarshal(b []byte) error

type InfoClient

type InfoClient interface {
	/// Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports.
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
}

InfoClient is the client API for Info service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInfoClient

func NewInfoClient(cc *grpc.ClientConn) InfoClient

type InfoRequest

type InfoRequest struct {
}

func (*InfoRequest) Descriptor

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

func (*InfoRequest) Marshal

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

func (*InfoRequest) MarshalTo

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

func (*InfoRequest) MarshalToSizedBuffer

func (m *InfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) Reset

func (m *InfoRequest) Reset()

func (*InfoRequest) Size

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

func (*InfoRequest) String

func (m *InfoRequest) String() string

func (*InfoRequest) Unmarshal

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

func (*InfoRequest) XXX_DiscardUnknown

func (m *InfoRequest) XXX_DiscardUnknown()

func (*InfoRequest) XXX_Marshal

func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InfoRequest) XXX_Merge

func (m *InfoRequest) XXX_Merge(src proto.Message)

func (*InfoRequest) XXX_Size

func (m *InfoRequest) XXX_Size() int

func (*InfoRequest) XXX_Unmarshal

func (m *InfoRequest) XXX_Unmarshal(b []byte) error

type InfoResponse

type InfoResponse struct {
	LabelSets     []labelpb.ZLabelSet `protobuf:"bytes,1,rep,name=label_sets,json=labelSets,proto3" json:"label_sets"`
	ComponentType string              `protobuf:"bytes,2,opt,name=ComponentType,proto3" json:"ComponentType,omitempty"`
	/// StoreInfo holds the metadata related to Store API if exposed by the component otherwise it will be null.
	Store *StoreInfo `protobuf:"bytes,3,opt,name=store,proto3" json:"store,omitempty"`
	/// RulesInfo holds the metadata related to Rules API if exposed by the component otherwise it will be null.
	Rules *RulesInfo `protobuf:"bytes,4,opt,name=rules,proto3" json:"rules,omitempty"`
	/// MetricMetadataInfo holds the metadata related to Metadata API if exposed by the component otherwise it will be null.
	MetricMetadata *MetricMetadataInfo `protobuf:"bytes,5,opt,name=metric_metadata,json=metricMetadata,proto3" json:"metric_metadata,omitempty"`
	/// TargetsInfo holds the metadata related to Targets API if exposed by the component otherwise it will be null.
	Targets *TargetsInfo `protobuf:"bytes,6,opt,name=targets,proto3" json:"targets,omitempty"`
	/// ExemplarsInfo holds the metadata related to Exemplars API if exposed by the component otherwise it will be null.
	Exemplars *ExemplarsInfo `protobuf:"bytes,7,opt,name=exemplars,proto3" json:"exemplars,omitempty"`
}

func (*InfoResponse) Descriptor

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

func (*InfoResponse) Marshal

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

func (*InfoResponse) MarshalTo

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

func (*InfoResponse) MarshalToSizedBuffer

func (m *InfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) Reset

func (m *InfoResponse) Reset()

func (*InfoResponse) Size

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

func (*InfoResponse) String

func (m *InfoResponse) String() string

func (*InfoResponse) Unmarshal

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

func (*InfoResponse) XXX_DiscardUnknown

func (m *InfoResponse) XXX_DiscardUnknown()

func (*InfoResponse) XXX_Marshal

func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InfoResponse) XXX_Merge

func (m *InfoResponse) XXX_Merge(src proto.Message)

func (*InfoResponse) XXX_Size

func (m *InfoResponse) XXX_Size() int

func (*InfoResponse) XXX_Unmarshal

func (m *InfoResponse) XXX_Unmarshal(b []byte) error

type InfoServer

type InfoServer interface {
	/// Info returns the metadata (Eg. LabelSets, Min/Max time) about all the APIs the component supports.
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
}

InfoServer is the server API for Info service.

type MetricMetadataInfo

type MetricMetadataInfo struct {
}

/ MetricMetadataInfo holds the metadata related to Metadata API exposed by the component.

func (*MetricMetadataInfo) Descriptor

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

func (*MetricMetadataInfo) Marshal

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

func (*MetricMetadataInfo) MarshalTo

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

func (*MetricMetadataInfo) MarshalToSizedBuffer

func (m *MetricMetadataInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetricMetadataInfo) ProtoMessage

func (*MetricMetadataInfo) ProtoMessage()

func (*MetricMetadataInfo) Reset

func (m *MetricMetadataInfo) Reset()

func (*MetricMetadataInfo) Size

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

func (*MetricMetadataInfo) String

func (m *MetricMetadataInfo) String() string

func (*MetricMetadataInfo) Unmarshal

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

func (*MetricMetadataInfo) XXX_DiscardUnknown

func (m *MetricMetadataInfo) XXX_DiscardUnknown()

func (*MetricMetadataInfo) XXX_Marshal

func (m *MetricMetadataInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetricMetadataInfo) XXX_Merge

func (m *MetricMetadataInfo) XXX_Merge(src proto.Message)

func (*MetricMetadataInfo) XXX_Size

func (m *MetricMetadataInfo) XXX_Size() int

func (*MetricMetadataInfo) XXX_Unmarshal

func (m *MetricMetadataInfo) XXX_Unmarshal(b []byte) error

type RulesInfo

type RulesInfo struct {
}

/ RulesInfo holds the metadata related to Rules API exposed by the component.

func (*RulesInfo) Descriptor

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

func (*RulesInfo) Marshal

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

func (*RulesInfo) MarshalTo

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

func (*RulesInfo) MarshalToSizedBuffer

func (m *RulesInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RulesInfo) ProtoMessage

func (*RulesInfo) ProtoMessage()

func (*RulesInfo) Reset

func (m *RulesInfo) Reset()

func (*RulesInfo) Size

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

func (*RulesInfo) String

func (m *RulesInfo) String() string

func (*RulesInfo) Unmarshal

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

func (*RulesInfo) XXX_DiscardUnknown

func (m *RulesInfo) XXX_DiscardUnknown()

func (*RulesInfo) XXX_Marshal

func (m *RulesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RulesInfo) XXX_Merge

func (m *RulesInfo) XXX_Merge(src proto.Message)

func (*RulesInfo) XXX_Size

func (m *RulesInfo) XXX_Size() int

func (*RulesInfo) XXX_Unmarshal

func (m *RulesInfo) XXX_Unmarshal(b []byte) error

type StoreInfo

type StoreInfo struct {
	MinTime int64 `protobuf:"varint,1,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"`
	MaxTime int64 `protobuf:"varint,2,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"`
}

/ StoreInfo holds the metadata related to Store API exposed by the component.

func (*StoreInfo) Descriptor

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

func (*StoreInfo) Marshal

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

func (*StoreInfo) MarshalTo

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

func (*StoreInfo) MarshalToSizedBuffer

func (m *StoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StoreInfo) ProtoMessage

func (*StoreInfo) ProtoMessage()

func (*StoreInfo) Reset

func (m *StoreInfo) Reset()

func (*StoreInfo) Size

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

func (*StoreInfo) String

func (m *StoreInfo) String() string

func (*StoreInfo) Unmarshal

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

func (*StoreInfo) XXX_DiscardUnknown

func (m *StoreInfo) XXX_DiscardUnknown()

func (*StoreInfo) XXX_Marshal

func (m *StoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StoreInfo) XXX_Merge

func (m *StoreInfo) XXX_Merge(src proto.Message)

func (*StoreInfo) XXX_Size

func (m *StoreInfo) XXX_Size() int

func (*StoreInfo) XXX_Unmarshal

func (m *StoreInfo) XXX_Unmarshal(b []byte) error

type TargetsInfo

type TargetsInfo struct {
}

/ TargetsInfo holds the metadata related to Targets API exposed by the component.

func (*TargetsInfo) Descriptor

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

func (*TargetsInfo) Marshal

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

func (*TargetsInfo) MarshalTo

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

func (*TargetsInfo) MarshalToSizedBuffer

func (m *TargetsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TargetsInfo) ProtoMessage

func (*TargetsInfo) ProtoMessage()

func (*TargetsInfo) Reset

func (m *TargetsInfo) Reset()

func (*TargetsInfo) Size

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

func (*TargetsInfo) String

func (m *TargetsInfo) String() string

func (*TargetsInfo) Unmarshal

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

func (*TargetsInfo) XXX_DiscardUnknown

func (m *TargetsInfo) XXX_DiscardUnknown()

func (*TargetsInfo) XXX_Marshal

func (m *TargetsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TargetsInfo) XXX_Merge

func (m *TargetsInfo) XXX_Merge(src proto.Message)

func (*TargetsInfo) XXX_Size

func (m *TargetsInfo) XXX_Size() int

func (*TargetsInfo) XXX_Unmarshal

func (m *TargetsInfo) XXX_Unmarshal(b []byte) error

type UnimplementedInfoServer

type UnimplementedInfoServer struct {
}

UnimplementedInfoServer can be embedded to have forward compatible implementations.

func (*UnimplementedInfoServer) Info

Jump to

Keyboard shortcuts

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