rpcclient

package
v0.0.0-...-0713623 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCScheduler

type RPCScheduler struct {
	Client pb.SchedulerClient
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(ctx context.Context, addr string) (*RPCScheduler, error)

func (*RPCScheduler) Add

func (s *RPCScheduler) Add(ctx context.Context, order, batchID string) error

func (*RPCScheduler) Close

func (s *RPCScheduler) Close()

func (*RPCScheduler) Done

func (s *RPCScheduler) Done(ctx context.Context, id string, img, stdout, stderr []byte, meta *pb.RenderingMetadata) error

func (*RPCScheduler) Get

func (s *RPCScheduler) Get(ctx context.Context) (string, string, error)

func (*RPCScheduler) Renew

func (s *RPCScheduler) Renew(ctx context.Context, id string, dur time.Duration) (time.Time, error)

Jump to

Keyboard shortcuts

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