mothership_rpc

package
v0.0.0-...-483e9f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	base.GRPCServer

	mothershippb.UnimplementedSrpmArchiverServer
	longrunning.UnimplementedOperationsServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db *base.DB, temporalClient client.Client, opts ...base.GRPCServerOption) (*Server, error)

func (*Server) CreateBatch

func (*Server) GetBatch

func (*Server) GetEntry

func (*Server) GetOperation

func (*Server) SealBatch

func (*Server) Start

func (s *Server) Start() error

func (*Server) SubmitEntry

SubmitEntry handles the RPC request for submitting an entry. This is usually called by the worker. The worker must be authenticated. The checksum will "lease" the entry for the worker, so that other workers will not submit the same entry. This "lease" is enforced using Temporal

func (*Server) WorkerPing

func (s *Server) WorkerPing(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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