gpuresc

package
v0.0.0-...-e62a7ec Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gpuresc_proto protoreflect.FileDescriptor

Functions

func RegisterGPURescServer

func RegisterGPURescServer(s *grpc.Server, srv GPURescServer)

Types

type GPURescClient

type GPURescClient interface {
	GetGPUResource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ResourceReply, error)
}

GPURescClient is the client API for GPUResc service.

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

func NewGPURescClient

func NewGPURescClient(cc grpc.ClientConnInterface) GPURescClient

type GPURescServer

type GPURescServer interface {
	GetGPUResource(context.Context, *emptypb.Empty) (*ResourceReply, error)
}

GPURescServer is the server API for GPUResc service.

type ResourceReply

type ResourceReply struct {
	Memory map[string]uint32 `` // memory in MB
	/* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResourceReply) Descriptor deprecated

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

Deprecated: Use ResourceReply.ProtoReflect.Descriptor instead.

func (*ResourceReply) GetMemory

func (x *ResourceReply) GetMemory() map[string]uint32

func (*ResourceReply) ProtoMessage

func (*ResourceReply) ProtoMessage()

func (*ResourceReply) ProtoReflect

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

func (*ResourceReply) Reset

func (x *ResourceReply) Reset()

func (*ResourceReply) String

func (x *ResourceReply) String() string

type UnimplementedGPURescServer

type UnimplementedGPURescServer struct {
}

UnimplementedGPURescServer can be embedded to have forward compatible implementations.

func (*UnimplementedGPURescServer) GetGPUResource

Jump to

Keyboard shortcuts

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