Documentation ¶
Index ¶
- Variables
- func RegisterVersionServer(s grpc.ServiceRegistrar, srv VersionServer)
- type InstanceVersion
- func (m *InstanceVersion) CloneMessageVT() proto.Message
- func (m *InstanceVersion) CloneVT() *InstanceVersion
- func (*InstanceVersion) Descriptor() ([]byte, []int)deprecated
- func (this *InstanceVersion) EqualMessageVT(thatMsg proto.Message) bool
- func (this *InstanceVersion) EqualVT(that *InstanceVersion) bool
- func (x *InstanceVersion) GetAddr() string
- func (x *InstanceVersion) GetID() string
- func (x *InstanceVersion) GetLeft() bool
- func (x *InstanceVersion) GetQuerierAPI() uint64
- func (x *InstanceVersion) GetTimestamp() int64
- func (m *InstanceVersion) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *InstanceVersion) MarshalToVT(dAtA []byte) (int, error)
- func (m *InstanceVersion) MarshalVT() (dAtA []byte, err error)
- func (*InstanceVersion) ProtoMessage()
- func (x *InstanceVersion) ProtoReflect() protoreflect.Message
- func (x *InstanceVersion) Reset()
- func (m *InstanceVersion) SizeVT() (n int)
- func (x *InstanceVersion) String() string
- func (m *InstanceVersion) UnmarshalVT(dAtA []byte) error
- type UnimplementedVersionServer
- type UnsafeVersionServer
- type VersionClient
- type VersionRequest
- func (m *VersionRequest) CloneMessageVT() proto.Message
- func (m *VersionRequest) CloneVT() *VersionRequest
- func (*VersionRequest) Descriptor() ([]byte, []int)deprecated
- func (this *VersionRequest) EqualMessageVT(thatMsg proto.Message) bool
- func (this *VersionRequest) EqualVT(that *VersionRequest) bool
- func (m *VersionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VersionRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *VersionRequest) MarshalVT() (dAtA []byte, err error)
- func (*VersionRequest) ProtoMessage()
- func (x *VersionRequest) ProtoReflect() protoreflect.Message
- func (x *VersionRequest) Reset()
- func (m *VersionRequest) SizeVT() (n int)
- func (x *VersionRequest) String() string
- func (m *VersionRequest) UnmarshalVT(dAtA []byte) error
- type VersionResponse
- func (m *VersionResponse) CloneMessageVT() proto.Message
- func (m *VersionResponse) CloneVT() *VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)deprecated
- func (this *VersionResponse) EqualMessageVT(thatMsg proto.Message) bool
- func (this *VersionResponse) EqualVT(that *VersionResponse) bool
- func (x *VersionResponse) GetQuerierAPI() uint64
- func (m *VersionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *VersionResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *VersionResponse) MarshalVT() (dAtA []byte, err error)
- func (*VersionResponse) ProtoMessage()
- func (x *VersionResponse) ProtoReflect() protoreflect.Message
- func (x *VersionResponse) Reset()
- func (m *VersionResponse) SizeVT() (n int)
- func (x *VersionResponse) String() string
- func (m *VersionResponse) UnmarshalVT(dAtA []byte) error
- type VersionServer
- type Versions
- func (m *Versions) CloneMessageVT() proto.Message
- func (m *Versions) CloneVT() *Versions
- func (*Versions) Descriptor() ([]byte, []int)deprecated
- func (this *Versions) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Versions) EqualVT(that *Versions) bool
- func (x *Versions) GetInstances() map[string]*InstanceVersion
- func (m *Versions) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Versions) MarshalToVT(dAtA []byte) (int, error)
- func (m *Versions) MarshalVT() (dAtA []byte, err error)
- func (*Versions) ProtoMessage()
- func (x *Versions) ProtoReflect() protoreflect.Message
- func (x *Versions) Reset()
- func (m *Versions) SizeVT() (n int)
- func (x *Versions) String() string
- func (m *Versions) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var File_version_v1_version_proto protoreflect.FileDescriptor
var Version_ServiceDesc = grpc.ServiceDesc{ ServiceName: "version.v1.Version", HandlerType: (*VersionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Version", Handler: _Version_Version_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "version/v1/version.proto", }
Version_ServiceDesc is the grpc.ServiceDesc for Version service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVersionServer ¶
func RegisterVersionServer(s grpc.ServiceRegistrar, srv VersionServer)
Types ¶
type InstanceVersion ¶
type InstanceVersion struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // Unix timestamp (with nanoseconds precision) of the last heartbeat sent // by this instance. Timestamp int64 `protobuf:"varint,3,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` // Querier Service API version QuerierAPI uint64 `protobuf:"varint,4,opt,name=QuerierAPI,proto3" json:"QuerierAPI,omitempty"` // Tells if the instance is running or has left cluster. Left bool `protobuf:"varint,5,opt,name=left,proto3" json:"left,omitempty"` // contains filtered or unexported fields }
func (*InstanceVersion) CloneMessageVT ¶
func (m *InstanceVersion) CloneMessageVT() proto.Message
func (*InstanceVersion) CloneVT ¶
func (m *InstanceVersion) CloneVT() *InstanceVersion
func (*InstanceVersion) Descriptor
deprecated
func (*InstanceVersion) Descriptor() ([]byte, []int)
Deprecated: Use InstanceVersion.ProtoReflect.Descriptor instead.
func (*InstanceVersion) EqualMessageVT ¶
func (this *InstanceVersion) EqualMessageVT(thatMsg proto.Message) bool
func (*InstanceVersion) EqualVT ¶
func (this *InstanceVersion) EqualVT(that *InstanceVersion) bool
func (*InstanceVersion) GetAddr ¶
func (x *InstanceVersion) GetAddr() string
func (*InstanceVersion) GetID ¶
func (x *InstanceVersion) GetID() string
func (*InstanceVersion) GetLeft ¶
func (x *InstanceVersion) GetLeft() bool
func (*InstanceVersion) GetQuerierAPI ¶
func (x *InstanceVersion) GetQuerierAPI() uint64
func (*InstanceVersion) GetTimestamp ¶
func (x *InstanceVersion) GetTimestamp() int64
func (*InstanceVersion) MarshalToSizedBufferVT ¶
func (m *InstanceVersion) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*InstanceVersion) MarshalToVT ¶
func (m *InstanceVersion) MarshalToVT(dAtA []byte) (int, error)
func (*InstanceVersion) MarshalVT ¶
func (m *InstanceVersion) MarshalVT() (dAtA []byte, err error)
func (*InstanceVersion) ProtoMessage ¶
func (*InstanceVersion) ProtoMessage()
func (*InstanceVersion) ProtoReflect ¶
func (x *InstanceVersion) ProtoReflect() protoreflect.Message
func (*InstanceVersion) Reset ¶
func (x *InstanceVersion) Reset()
func (*InstanceVersion) SizeVT ¶
func (m *InstanceVersion) SizeVT() (n int)
func (*InstanceVersion) String ¶
func (x *InstanceVersion) String() string
func (*InstanceVersion) UnmarshalVT ¶
func (m *InstanceVersion) UnmarshalVT(dAtA []byte) error
type UnimplementedVersionServer ¶
type UnimplementedVersionServer struct { }
UnimplementedVersionServer must be embedded to have forward compatible implementations.
func (UnimplementedVersionServer) Version ¶
func (UnimplementedVersionServer) Version(context.Context, *VersionRequest) (*VersionResponse, error)
type UnsafeVersionServer ¶
type UnsafeVersionServer interface {
// contains filtered or unexported methods
}
UnsafeVersionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VersionServer will result in compilation errors.
type VersionClient ¶
type VersionClient interface {
Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
}
VersionClient is the client API for Version service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVersionClient ¶
func NewVersionClient(cc grpc.ClientConnInterface) VersionClient
type VersionRequest ¶
type VersionRequest struct {
// contains filtered or unexported fields
}
func (*VersionRequest) CloneMessageVT ¶
func (m *VersionRequest) CloneMessageVT() proto.Message
func (*VersionRequest) CloneVT ¶
func (m *VersionRequest) CloneVT() *VersionRequest
func (*VersionRequest) Descriptor
deprecated
func (*VersionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
func (*VersionRequest) EqualMessageVT ¶
func (this *VersionRequest) EqualMessageVT(thatMsg proto.Message) bool
func (*VersionRequest) EqualVT ¶
func (this *VersionRequest) EqualVT(that *VersionRequest) bool
func (*VersionRequest) MarshalToSizedBufferVT ¶
func (m *VersionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*VersionRequest) MarshalToVT ¶
func (m *VersionRequest) MarshalToVT(dAtA []byte) (int, error)
func (*VersionRequest) MarshalVT ¶
func (m *VersionRequest) MarshalVT() (dAtA []byte, err error)
func (*VersionRequest) ProtoMessage ¶
func (*VersionRequest) ProtoMessage()
func (*VersionRequest) ProtoReflect ¶
func (x *VersionRequest) ProtoReflect() protoreflect.Message
func (*VersionRequest) Reset ¶
func (x *VersionRequest) Reset()
func (*VersionRequest) SizeVT ¶
func (m *VersionRequest) SizeVT() (n int)
func (*VersionRequest) String ¶
func (x *VersionRequest) String() string
func (*VersionRequest) UnmarshalVT ¶
func (m *VersionRequest) UnmarshalVT(dAtA []byte) error
type VersionResponse ¶
type VersionResponse struct { QuerierAPI uint64 `protobuf:"varint,1,opt,name=QuerierAPI,proto3" json:"QuerierAPI,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) CloneMessageVT ¶
func (m *VersionResponse) CloneMessageVT() proto.Message
func (*VersionResponse) CloneVT ¶
func (m *VersionResponse) CloneVT() *VersionResponse
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) EqualMessageVT ¶
func (this *VersionResponse) EqualMessageVT(thatMsg proto.Message) bool
func (*VersionResponse) EqualVT ¶
func (this *VersionResponse) EqualVT(that *VersionResponse) bool
func (*VersionResponse) GetQuerierAPI ¶
func (x *VersionResponse) GetQuerierAPI() uint64
func (*VersionResponse) MarshalToSizedBufferVT ¶
func (m *VersionResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*VersionResponse) MarshalToVT ¶
func (m *VersionResponse) MarshalToVT(dAtA []byte) (int, error)
func (*VersionResponse) MarshalVT ¶
func (m *VersionResponse) MarshalVT() (dAtA []byte, err error)
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) SizeVT ¶
func (m *VersionResponse) SizeVT() (n int)
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string
func (*VersionResponse) UnmarshalVT ¶
func (m *VersionResponse) UnmarshalVT(dAtA []byte) error
type VersionServer ¶
type VersionServer interface { Version(context.Context, *VersionRequest) (*VersionResponse, error) // contains filtered or unexported methods }
VersionServer is the server API for Version service. All implementations must embed UnimplementedVersionServer for forward compatibility
type Versions ¶
type Versions struct { Instances map[string]*InstanceVersion `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
Versions is the top-level type used to model version for all instances, containing information for individual instances.
func (*Versions) CloneMessageVT ¶
func (*Versions) Descriptor
deprecated
func (*Versions) GetInstances ¶
func (x *Versions) GetInstances() map[string]*InstanceVersion
func (*Versions) MarshalToSizedBufferVT ¶
func (*Versions) ProtoMessage ¶
func (*Versions) ProtoMessage()
func (*Versions) ProtoReflect ¶
func (x *Versions) ProtoReflect() protoreflect.Message