lifecyclepb

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0 Imports: 10 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PluginLifecycle_GetInfo_FullMethodName            = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetInfo"
	PluginLifecycle_GetCapabilities_FullMethodName    = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetCapabilities"
	PluginLifecycle_HealthCheck_FullMethodName        = "/omniview.sdk.lifecycle.v1.PluginLifecycle/HealthCheck"
	PluginLifecycle_GetProfilingStatus_FullMethodName = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetProfilingStatus"
	PluginLifecycle_GetDiagnostics_FullMethodName     = "/omniview.sdk.lifecycle.v1.PluginLifecycle/GetDiagnostics"
	PluginLifecycle_BindHostServices_FullMethodName   = "/omniview.sdk.lifecycle.v1.PluginLifecycle/BindHostServices"
)

Variables

View Source
var (
	ServingStatus_name = map[int32]string{
		0: "SERVING_STATUS_UNKNOWN",
		1: "SERVING_STATUS_SERVING",
		2: "SERVING_STATUS_NOT_SERVING",
	}
	ServingStatus_value = map[string]int32{
		"SERVING_STATUS_UNKNOWN":     0,
		"SERVING_STATUS_SERVING":     1,
		"SERVING_STATUS_NOT_SERVING": 2,
	}
)

Enum value maps for ServingStatus.

View Source
var (
	DiagKind_name = map[int32]string{
		0: "DIAG_KIND_UNSPECIFIED",
		1: "DIAG_KIND_COUNTER",
		2: "DIAG_KIND_GAUGE",
		3: "DIAG_KIND_HISTOGRAM",
	}
	DiagKind_value = map[string]int32{
		"DIAG_KIND_UNSPECIFIED": 0,
		"DIAG_KIND_COUNTER":     1,
		"DIAG_KIND_GAUGE":       2,
		"DIAG_KIND_HISTOGRAM":   3,
	}
)

Enum value maps for DiagKind.

View Source
var (
	DiagKey_name = map[int32]string{
		0: "DIAG_KEY_UNSPECIFIED",
		1: "DIAG_KEY_OPERATION",
		2: "DIAG_KEY_OUTCOME",
		3: "DIAG_KEY_PHASE",
		4: "DIAG_KEY_STATE",
		5: "DIAG_KEY_REASON",
		6: "DIAG_KEY_CACHE",
		7: "DIAG_KEY_QUEUE",
		8: "DIAG_KEY_DIRECTION",
		9: "DIAG_KEY_EVENT",
	}
	DiagKey_value = map[string]int32{
		"DIAG_KEY_UNSPECIFIED": 0,
		"DIAG_KEY_OPERATION":   1,
		"DIAG_KEY_OUTCOME":     2,
		"DIAG_KEY_PHASE":       3,
		"DIAG_KEY_STATE":       4,
		"DIAG_KEY_REASON":      5,
		"DIAG_KEY_CACHE":       6,
		"DIAG_KEY_QUEUE":       7,
		"DIAG_KEY_DIRECTION":   8,
		"DIAG_KEY_EVENT":       9,
	}
)

Enum value maps for DiagKey.

View Source
var File_proto_v1_lifecycle_lifecycle_proto protoreflect.FileDescriptor
View Source
var PluginLifecycle_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "omniview.sdk.lifecycle.v1.PluginLifecycle",
	HandlerType: (*PluginLifecycleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _PluginLifecycle_GetInfo_Handler,
		},
		{
			MethodName: "GetCapabilities",
			Handler:    _PluginLifecycle_GetCapabilities_Handler,
		},
		{
			MethodName: "HealthCheck",
			Handler:    _PluginLifecycle_HealthCheck_Handler,
		},
		{
			MethodName: "GetProfilingStatus",
			Handler:    _PluginLifecycle_GetProfilingStatus_Handler,
		},
		{
			MethodName: "GetDiagnostics",
			Handler:    _PluginLifecycle_GetDiagnostics_Handler,
		},
		{
			MethodName: "BindHostServices",
			Handler:    _PluginLifecycle_BindHostServices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/v1/lifecycle/lifecycle.proto",
}

PluginLifecycle_ServiceDesc is the grpc.ServiceDesc for PluginLifecycle service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPluginLifecycleServer

func RegisterPluginLifecycleServer(s grpc.ServiceRegistrar, srv PluginLifecycleServer)

Types

type BindHostServicesRequest added in v0.13.0

type BindHostServicesRequest struct {
	HostConnectionsBrokerId uint32 `` /* 135-byte string literal not displayed */
	Version                 uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*BindHostServicesRequest) Descriptor deprecated added in v0.13.0

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

Deprecated: Use BindHostServicesRequest.ProtoReflect.Descriptor instead.

func (*BindHostServicesRequest) GetHostConnectionsBrokerId added in v0.13.0

func (x *BindHostServicesRequest) GetHostConnectionsBrokerId() uint32

func (*BindHostServicesRequest) GetVersion added in v0.13.0

func (x *BindHostServicesRequest) GetVersion() uint32

func (*BindHostServicesRequest) ProtoMessage added in v0.13.0

func (*BindHostServicesRequest) ProtoMessage()

func (*BindHostServicesRequest) ProtoReflect added in v0.13.0

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

func (*BindHostServicesRequest) Reset added in v0.13.0

func (x *BindHostServicesRequest) Reset()

func (*BindHostServicesRequest) String added in v0.13.0

func (x *BindHostServicesRequest) String() string

type BindHostServicesResponse added in v0.13.0

type BindHostServicesResponse struct {
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*BindHostServicesResponse) Descriptor deprecated added in v0.13.0

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

Deprecated: Use BindHostServicesResponse.ProtoReflect.Descriptor instead.

func (*BindHostServicesResponse) GetVersion added in v0.13.0

func (x *BindHostServicesResponse) GetVersion() uint32

func (*BindHostServicesResponse) ProtoMessage added in v0.13.0

func (*BindHostServicesResponse) ProtoMessage()

func (*BindHostServicesResponse) ProtoReflect added in v0.13.0

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

func (*BindHostServicesResponse) Reset added in v0.13.0

func (x *BindHostServicesResponse) Reset()

func (*BindHostServicesResponse) String added in v0.13.0

func (x *BindHostServicesResponse) String() string

type DiagAttr added in v0.17.0

type DiagAttr struct {
	Key   DiagKey `protobuf:"varint,1,opt,name=key,proto3,enum=omniview.sdk.lifecycle.v1.DiagKey" json:"key,omitempty"`
	Value string  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*DiagAttr) Descriptor deprecated added in v0.17.0

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

Deprecated: Use DiagAttr.ProtoReflect.Descriptor instead.

func (*DiagAttr) GetKey added in v0.17.0

func (x *DiagAttr) GetKey() DiagKey

func (*DiagAttr) GetValue added in v0.17.0

func (x *DiagAttr) GetValue() string

func (*DiagAttr) ProtoMessage added in v0.17.0

func (*DiagAttr) ProtoMessage()

func (*DiagAttr) ProtoReflect added in v0.17.0

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

func (*DiagAttr) Reset added in v0.17.0

func (x *DiagAttr) Reset()

func (*DiagAttr) String added in v0.17.0

func (x *DiagAttr) String() string

type DiagKey added in v0.17.0

type DiagKey int32

DiagKey is a closed set: attributes can never carry resource names, queries or credentials as keys, and values are restricted to ^[a-z][a-z0-9_]{0,31}$.

const (
	DiagKey_DIAG_KEY_UNSPECIFIED DiagKey = 0
	DiagKey_DIAG_KEY_OPERATION   DiagKey = 1
	DiagKey_DIAG_KEY_OUTCOME     DiagKey = 2
	DiagKey_DIAG_KEY_PHASE       DiagKey = 3
	DiagKey_DIAG_KEY_STATE       DiagKey = 4
	DiagKey_DIAG_KEY_REASON      DiagKey = 5
	DiagKey_DIAG_KEY_CACHE       DiagKey = 6
	DiagKey_DIAG_KEY_QUEUE       DiagKey = 7
	DiagKey_DIAG_KEY_DIRECTION   DiagKey = 8
	DiagKey_DIAG_KEY_EVENT       DiagKey = 9
)

func (DiagKey) Descriptor added in v0.17.0

func (DiagKey) Descriptor() protoreflect.EnumDescriptor

func (DiagKey) Enum added in v0.17.0

func (x DiagKey) Enum() *DiagKey

func (DiagKey) EnumDescriptor deprecated added in v0.17.0

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

Deprecated: Use DiagKey.Descriptor instead.

func (DiagKey) Number added in v0.17.0

func (x DiagKey) Number() protoreflect.EnumNumber

func (DiagKey) String added in v0.17.0

func (x DiagKey) String() string

func (DiagKey) Type added in v0.17.0

func (DiagKey) Type() protoreflect.EnumType

type DiagKind added in v0.17.0

type DiagKind int32
const (
	DiagKind_DIAG_KIND_UNSPECIFIED DiagKind = 0
	DiagKind_DIAG_KIND_COUNTER     DiagKind = 1
	DiagKind_DIAG_KIND_GAUGE       DiagKind = 2
	DiagKind_DIAG_KIND_HISTOGRAM   DiagKind = 3
)

func (DiagKind) Descriptor added in v0.17.0

func (DiagKind) Descriptor() protoreflect.EnumDescriptor

func (DiagKind) Enum added in v0.17.0

func (x DiagKind) Enum() *DiagKind

func (DiagKind) EnumDescriptor deprecated added in v0.17.0

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

Deprecated: Use DiagKind.Descriptor instead.

func (DiagKind) Number added in v0.17.0

func (x DiagKind) Number() protoreflect.EnumNumber

func (DiagKind) String added in v0.17.0

func (x DiagKind) String() string

func (DiagKind) Type added in v0.17.0

type DiagMetric added in v0.17.0

type DiagMetric struct {

	// Matches ^omniview\.plugin\.self\.[a-z0-9_.]{1,72}$ (host-owned names live elsewhere).
	Name string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Unit string   `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"`
	Kind DiagKind `protobuf:"varint,3,opt,name=kind,proto3,enum=omniview.sdk.lifecycle.v1.DiagKind" json:"kind,omitempty"`
	// At most 16 points.
	Points []*DiagPoint `protobuf:"bytes,4,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

func (*DiagMetric) Descriptor deprecated added in v0.17.0

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

Deprecated: Use DiagMetric.ProtoReflect.Descriptor instead.

func (*DiagMetric) GetKind added in v0.17.0

func (x *DiagMetric) GetKind() DiagKind

func (*DiagMetric) GetName added in v0.17.0

func (x *DiagMetric) GetName() string

func (*DiagMetric) GetPoints added in v0.17.0

func (x *DiagMetric) GetPoints() []*DiagPoint

func (*DiagMetric) GetUnit added in v0.17.0

func (x *DiagMetric) GetUnit() string

func (*DiagMetric) ProtoMessage added in v0.17.0

func (*DiagMetric) ProtoMessage()

func (*DiagMetric) ProtoReflect added in v0.17.0

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

func (*DiagMetric) Reset added in v0.17.0

func (x *DiagMetric) Reset()

func (*DiagMetric) String added in v0.17.0

func (x *DiagMetric) String() string

type DiagPoint added in v0.17.0

type DiagPoint struct {

	// At most 4 attributes.
	Attrs []*DiagAttr `protobuf:"bytes,1,rep,name=attrs,proto3" json:"attrs,omitempty"`
	// Counter and gauge value.
	Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
	// Histogram fields: count, sum, bounds and len(bounds)+1 bucket counts.
	Count        uint64    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Sum          float64   `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"`
	Bounds       []float64 `protobuf:"fixed64,5,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
	BucketCounts []uint64  `protobuf:"varint,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
	// contains filtered or unexported fields
}

func (*DiagPoint) Descriptor deprecated added in v0.17.0

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

Deprecated: Use DiagPoint.ProtoReflect.Descriptor instead.

func (*DiagPoint) GetAttrs added in v0.17.0

func (x *DiagPoint) GetAttrs() []*DiagAttr

func (*DiagPoint) GetBounds added in v0.17.0

func (x *DiagPoint) GetBounds() []float64

func (*DiagPoint) GetBucketCounts added in v0.17.0

func (x *DiagPoint) GetBucketCounts() []uint64

func (*DiagPoint) GetCount added in v0.17.0

func (x *DiagPoint) GetCount() uint64

func (*DiagPoint) GetSum added in v0.17.0

func (x *DiagPoint) GetSum() float64

func (*DiagPoint) GetValue added in v0.17.0

func (x *DiagPoint) GetValue() float64

func (*DiagPoint) ProtoMessage added in v0.17.0

func (*DiagPoint) ProtoMessage()

func (*DiagPoint) ProtoReflect added in v0.17.0

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

func (*DiagPoint) Reset added in v0.17.0

func (x *DiagPoint) Reset()

func (*DiagPoint) String added in v0.17.0

func (x *DiagPoint) String() string

type GetCapabilitiesResponse

type GetCapabilitiesResponse struct {
	Capabilities []string `protobuf:"bytes,1,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCapabilitiesResponse) Descriptor deprecated

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

Deprecated: Use GetCapabilitiesResponse.ProtoReflect.Descriptor instead.

func (*GetCapabilitiesResponse) GetCapabilities

func (x *GetCapabilitiesResponse) GetCapabilities() []string

func (*GetCapabilitiesResponse) ProtoMessage

func (*GetCapabilitiesResponse) ProtoMessage()

func (*GetCapabilitiesResponse) ProtoReflect

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

func (*GetCapabilitiesResponse) Reset

func (x *GetCapabilitiesResponse) Reset()

func (*GetCapabilitiesResponse) String

func (x *GetCapabilitiesResponse) String() string

type GetDiagnosticsRequest added in v0.17.0

type GetDiagnosticsRequest struct {

	// Highest payload schema the host understands. Zero means 1.
	MaxSchemaVersion uint32 `protobuf:"varint,1,opt,name=max_schema_version,json=maxSchemaVersion,proto3" json:"max_schema_version,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiagnosticsRequest) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetDiagnosticsRequest.ProtoReflect.Descriptor instead.

func (*GetDiagnosticsRequest) GetMaxSchemaVersion added in v0.17.0

func (x *GetDiagnosticsRequest) GetMaxSchemaVersion() uint32

func (*GetDiagnosticsRequest) ProtoMessage added in v0.17.0

func (*GetDiagnosticsRequest) ProtoMessage()

func (*GetDiagnosticsRequest) ProtoReflect added in v0.17.0

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

func (*GetDiagnosticsRequest) Reset added in v0.17.0

func (x *GetDiagnosticsRequest) Reset()

func (*GetDiagnosticsRequest) String added in v0.17.0

func (x *GetDiagnosticsRequest) String() string

type GetDiagnosticsResponse added in v0.17.0

type GetDiagnosticsResponse struct {
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	PluginId      string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	// Process start; changes on restart so hosts can detect counter resets.
	ProcessStartUnixNs int64 `protobuf:"varint,3,opt,name=process_start_unix_ns,json=processStartUnixNs,proto3" json:"process_start_unix_ns,omitempty"`
	// True when the plugin dropped metrics, points or invalid observations.
	Truncated bool `protobuf:"varint,4,opt,name=truncated,proto3" json:"truncated,omitempty"`
	// At most 24 metrics.
	Metrics []*DiagMetric `protobuf:"bytes,5,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiagnosticsResponse) Descriptor deprecated added in v0.17.0

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

Deprecated: Use GetDiagnosticsResponse.ProtoReflect.Descriptor instead.

func (*GetDiagnosticsResponse) GetMetrics added in v0.17.0

func (x *GetDiagnosticsResponse) GetMetrics() []*DiagMetric

func (*GetDiagnosticsResponse) GetPluginId added in v0.17.0

func (x *GetDiagnosticsResponse) GetPluginId() string

func (*GetDiagnosticsResponse) GetProcessStartUnixNs added in v0.17.0

func (x *GetDiagnosticsResponse) GetProcessStartUnixNs() int64

func (*GetDiagnosticsResponse) GetSchemaVersion added in v0.17.0

func (x *GetDiagnosticsResponse) GetSchemaVersion() uint32

func (*GetDiagnosticsResponse) GetTruncated added in v0.17.0

func (x *GetDiagnosticsResponse) GetTruncated() bool

func (*GetDiagnosticsResponse) ProtoMessage added in v0.17.0

func (*GetDiagnosticsResponse) ProtoMessage()

func (*GetDiagnosticsResponse) ProtoReflect added in v0.17.0

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

func (*GetDiagnosticsResponse) Reset added in v0.17.0

func (x *GetDiagnosticsResponse) Reset()

func (*GetDiagnosticsResponse) String added in v0.17.0

func (x *GetDiagnosticsResponse) String() string

type GetInfoResponse

type GetInfoResponse struct {
	PluginId               string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	Version                string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	SdkProtocolVersion     int32  `protobuf:"varint,3,opt,name=sdk_protocol_version,json=sdkProtocolVersion,proto3" json:"sdk_protocol_version,omitempty"`
	HostConnectionsVersion uint32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetHostConnectionsVersion added in v0.13.0

func (x *GetInfoResponse) GetHostConnectionsVersion() uint32

func (*GetInfoResponse) GetPluginId

func (x *GetInfoResponse) GetPluginId() string

func (*GetInfoResponse) GetSdkProtocolVersion

func (x *GetInfoResponse) GetSdkProtocolVersion() int32

func (*GetInfoResponse) GetVersion

func (x *GetInfoResponse) GetVersion() string

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

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

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

type HealthCheckResponse

type HealthCheckResponse struct {
	Status ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=omniview.sdk.lifecycle.v1.ServingStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckResponse) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse) GetStatus

func (x *HealthCheckResponse) GetStatus() ServingStatus

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) ProtoReflect

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

func (*HealthCheckResponse) Reset

func (x *HealthCheckResponse) Reset()

func (*HealthCheckResponse) String

func (x *HealthCheckResponse) String() string

type PluginLifecycleClient

type PluginLifecycleClient interface {
	// GetInfo returns plugin identification and version information.
	GetInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetInfoResponse, error)
	// GetCapabilities returns the list of capabilities this plugin serves.
	// Replaces exception-based gRPC probing on the host side.
	GetCapabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCapabilitiesResponse, error)
	// HealthCheck returns the current health status of the plugin process.
	HealthCheck(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	// GetProfilingStatus reports the optional profiler owned by this process.
	GetProfilingStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfilingStatusResponse, error)
	// GetDiagnostics returns a bounded snapshot of in-plugin measurements. The
	// host pulls it; plugins never push. Hosts treat plugin_id as a check only
	// and stamp identity from their own record.
	GetDiagnostics(ctx context.Context, in *GetDiagnosticsRequest, opts ...grpc.CallOption) (*GetDiagnosticsResponse, error)
	BindHostServices(ctx context.Context, in *BindHostServicesRequest, opts ...grpc.CallOption) (*BindHostServicesResponse, error)
}

PluginLifecycleClient is the client API for PluginLifecycle 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.

type PluginLifecycleServer

type PluginLifecycleServer interface {
	// GetInfo returns plugin identification and version information.
	GetInfo(context.Context, *emptypb.Empty) (*GetInfoResponse, error)
	// GetCapabilities returns the list of capabilities this plugin serves.
	// Replaces exception-based gRPC probing on the host side.
	GetCapabilities(context.Context, *emptypb.Empty) (*GetCapabilitiesResponse, error)
	// HealthCheck returns the current health status of the plugin process.
	HealthCheck(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
	// GetProfilingStatus reports the optional profiler owned by this process.
	GetProfilingStatus(context.Context, *emptypb.Empty) (*ProfilingStatusResponse, error)
	// GetDiagnostics returns a bounded snapshot of in-plugin measurements. The
	// host pulls it; plugins never push. Hosts treat plugin_id as a check only
	// and stamp identity from their own record.
	GetDiagnostics(context.Context, *GetDiagnosticsRequest) (*GetDiagnosticsResponse, error)
	BindHostServices(context.Context, *BindHostServicesRequest) (*BindHostServicesResponse, error)
}

PluginLifecycleServer is the server API for PluginLifecycle service. All implementations should embed UnimplementedPluginLifecycleServer for forward compatibility

type ProfilingStatusResponse added in v0.11.0

type ProfilingStatusResponse struct {
	Running bool   `protobuf:"varint,1,opt,name=running,proto3" json:"running,omitempty"`
	Url     string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Error   string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Pid     int64  `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfilingStatusResponse) Descriptor deprecated added in v0.11.0

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

Deprecated: Use ProfilingStatusResponse.ProtoReflect.Descriptor instead.

func (*ProfilingStatusResponse) GetError added in v0.11.0

func (x *ProfilingStatusResponse) GetError() string

func (*ProfilingStatusResponse) GetPid added in v0.11.0

func (x *ProfilingStatusResponse) GetPid() int64

func (*ProfilingStatusResponse) GetRunning added in v0.11.0

func (x *ProfilingStatusResponse) GetRunning() bool

func (*ProfilingStatusResponse) GetUrl added in v0.11.0

func (x *ProfilingStatusResponse) GetUrl() string

func (*ProfilingStatusResponse) ProtoMessage added in v0.11.0

func (*ProfilingStatusResponse) ProtoMessage()

func (*ProfilingStatusResponse) ProtoReflect added in v0.11.0

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

func (*ProfilingStatusResponse) Reset added in v0.11.0

func (x *ProfilingStatusResponse) Reset()

func (*ProfilingStatusResponse) String added in v0.11.0

func (x *ProfilingStatusResponse) String() string

type ServingStatus

type ServingStatus int32
const (
	ServingStatus_SERVING_STATUS_UNKNOWN     ServingStatus = 0
	ServingStatus_SERVING_STATUS_SERVING     ServingStatus = 1
	ServingStatus_SERVING_STATUS_NOT_SERVING ServingStatus = 2
)

func (ServingStatus) Descriptor

func (ServingStatus) Enum

func (x ServingStatus) Enum() *ServingStatus

func (ServingStatus) EnumDescriptor deprecated

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

Deprecated: Use ServingStatus.Descriptor instead.

func (ServingStatus) Number

func (ServingStatus) String

func (x ServingStatus) String() string

func (ServingStatus) Type

type UnimplementedPluginLifecycleServer

type UnimplementedPluginLifecycleServer struct {
}

UnimplementedPluginLifecycleServer should be embedded to have forward compatible implementations.

func (UnimplementedPluginLifecycleServer) BindHostServices added in v0.13.0

func (UnimplementedPluginLifecycleServer) GetCapabilities

func (UnimplementedPluginLifecycleServer) GetDiagnostics added in v0.17.0

func (UnimplementedPluginLifecycleServer) GetInfo

func (UnimplementedPluginLifecycleServer) GetProfilingStatus added in v0.11.0

func (UnimplementedPluginLifecycleServer) HealthCheck

type UnsafePluginLifecycleServer

type UnsafePluginLifecycleServer interface {
	// contains filtered or unexported methods
}

UnsafePluginLifecycleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginLifecycleServer will result in compilation errors.

Jump to

Keyboard shortcuts

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