artfs

package
v0.0.0-...-b0621e5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package artfs provides protocol buffer message for artfs.

Index

Constants

View Source
const (
	Artfs_AddCasFiles_FullMethodName = "/artfs.Artfs/AddCasFiles"
)

Variables

View Source
var Artfs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "artfs.Artfs",
	HandlerType: (*ArtfsServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "AddCasFiles",
			Handler:       _Artfs_AddCasFiles_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "artfs.proto",
}

Artfs_ServiceDesc is the grpc.ServiceDesc for Artfs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_artfs_proto protoreflect.FileDescriptor

Functions

func RegisterArtfsServer

func RegisterArtfsServer(s grpc.ServiceRegistrar, srv ArtfsServer)

Types

type AddCasFilesReply

type AddCasFilesReply struct {

	// Total number of files added.  Should be equal to the number of files
	// sent via the stream of FileManifests.
	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*AddCasFilesReply) Descriptor deprecated

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

Deprecated: Use AddCasFilesReply.ProtoReflect.Descriptor instead.

func (*AddCasFilesReply) GetTotal

func (x *AddCasFilesReply) GetTotal() int64

func (*AddCasFilesReply) ProtoMessage

func (*AddCasFilesReply) ProtoMessage()

func (*AddCasFilesReply) ProtoReflect

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

func (*AddCasFilesReply) Reset

func (x *AddCasFilesReply) Reset()

func (*AddCasFilesReply) String

func (x *AddCasFilesReply) String() string

type ArtfsClient

type ArtfsClient interface {
	// Stream a bunch of files that are backed by CAS to Artfs.
	AddCasFiles(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[manifest.FileManifest, AddCasFilesReply], error)
}

ArtfsClient is the client API for Artfs service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewArtfsClient

func NewArtfsClient(cc grpc.ClientConnInterface) ArtfsClient

type ArtfsServer

type ArtfsServer interface {
	// Stream a bunch of files that are backed by CAS to Artfs.
	AddCasFiles(grpc.ClientStreamingServer[manifest.FileManifest, AddCasFilesReply]) error
	// contains filtered or unexported methods
}

ArtfsServer is the server API for Artfs service. All implementations must embed UnimplementedArtfsServer for forward compatibility.

type Artfs_AddCasFilesClient

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Artfs_AddCasFilesServer

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedArtfsServer

type UnimplementedArtfsServer struct{}

UnimplementedArtfsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeArtfsServer

type UnsafeArtfsServer interface {
	// contains filtered or unexported methods
}

UnsafeArtfsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArtfsServer will result in compilation errors.

Jump to

Keyboard shortcuts

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