server

package
v0.1.104 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package server implement a file upload server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedFileUploadServiceServer
	// contains filtered or unexported fields
}

Server implements a simple file upload service.

func (*Server) SetFail

func (srv *Server) SetFail(fail bool)

SetFail instructs the server to fail at certain points in its execution.

func (*Server) UploadFile

func (srv *Server) UploadFile(server pb.FileUploadService_UploadFileServer) error

UploadFile receives a file over a series of chunks.

Directories

Path Synopsis
Package main runs a gRPC server running the proto/rpc/examples/fileupload/v1 service.
Package main runs a gRPC server running the proto/rpc/examples/fileupload/v1 service.

Jump to

Keyboard shortcuts

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