lifecyclepb

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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_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 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: "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 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 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)
	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)
	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) 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