amostra

package module
v0.0.0-...-361a5bf Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 19 Imported by: 0

README

amostra

For distributing GPU workloads

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator interface {
	AuthUnary(context.Context, interface{}, *grpc.UnaryServerInfo, grpc.UnaryHandler) (interface{}, error)
	AuthStreaming(interface{}, grpc.ServerStream, *grpc.StreamServerInfo, grpc.StreamHandler) error
}

type NoAuthenticator

type NoAuthenticator struct{}

func (NoAuthenticator) AuthStreaming

func (na NoAuthenticator) AuthStreaming(
	srv interface{},
	ss grpc.ServerStream,
	info *grpc.StreamServerInfo,
	handler grpc.StreamHandler,
) error

func (NoAuthenticator) AuthUnary

func (na NoAuthenticator) AuthUnary(
	ctx context.Context,
	req interface{},
	info *grpc.UnaryServerInfo,
	handler grpc.UnaryHandler,
) (interface{}, error)

type Server

func NewServer

func NewServer() *Server

func (*Server) PushFinishedSamples

func (s *Server) PushFinishedSamples(streamingSvc __.StreamingService_PushFinishedSamplesServer) error

func (*Server) PushNodeInfo

func (s *Server) PushNodeInfo(ctx context.Context, nodeInfo *__.NodeInfo) (*__.PushInfoResponse, error)

func (*Server) RequestAlloc

func (s *Server) RequestAlloc(ctx context.Context, alloc *__.Alloc) (*__.AllocStatus, error)

func (*Server) ScheduleClientAllocs

func (s *Server) ScheduleClientAllocs(
	streamingSvc __.StreamingService_ScheduleClientAllocsServer,
) error

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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