versionv1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_version_v1_version_proto protoreflect.FileDescriptor
View Source
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

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 (m *Versions) CloneMessageVT() proto.Message

func (*Versions) CloneVT

func (m *Versions) CloneVT() *Versions

func (*Versions) Descriptor deprecated

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

Deprecated: Use Versions.ProtoReflect.Descriptor instead.

func (*Versions) EqualMessageVT

func (this *Versions) EqualMessageVT(thatMsg proto.Message) bool

func (*Versions) EqualVT

func (this *Versions) EqualVT(that *Versions) bool

func (*Versions) GetInstances

func (x *Versions) GetInstances() map[string]*InstanceVersion

func (*Versions) MarshalToSizedBufferVT

func (m *Versions) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Versions) MarshalToVT

func (m *Versions) MarshalToVT(dAtA []byte) (int, error)

func (*Versions) MarshalVT

func (m *Versions) MarshalVT() (dAtA []byte, err error)

func (*Versions) ProtoMessage

func (*Versions) ProtoMessage()

func (*Versions) ProtoReflect

func (x *Versions) ProtoReflect() protoreflect.Message

func (*Versions) Reset

func (x *Versions) Reset()

func (*Versions) SizeVT

func (m *Versions) SizeVT() (n int)

func (*Versions) String

func (x *Versions) String() string

func (*Versions) UnmarshalVT

func (m *Versions) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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