archivePb

package
v0.0.0-...-8b1ae4f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArchiveService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "satellite.archive.v1.ArchiveService",
	HandlerType: (*ArchiveServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CreateArchive",
			Handler:       _ArchiveService_CreateArchive_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "GetArchive",
			Handler:       _ArchiveService_GetArchive_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "archive/v1/archive.proto",
}

ArchiveService_ServiceDesc is the grpc.ServiceDesc for ArchiveService 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_archive_v1_archive_proto protoreflect.FileDescriptor

Functions

func RegisterArchiveServiceServer

func RegisterArchiveServiceServer(s grpc.ServiceRegistrar, srv ArchiveServiceServer)

Types

type ArchiveServiceClient

type ArchiveServiceClient interface {
	CreateArchive(ctx context.Context, opts ...grpc.CallOption) (ArchiveService_CreateArchiveClient, error)
	GetArchive(ctx context.Context, in *GetArchiveRequest, opts ...grpc.CallOption) (ArchiveService_GetArchiveClient, error)
}

ArchiveServiceClient is the client API for ArchiveService 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.

type ArchiveServiceServer

type ArchiveServiceServer interface {
	CreateArchive(ArchiveService_CreateArchiveServer) error
	GetArchive(*GetArchiveRequest, ArchiveService_GetArchiveServer) error
	// contains filtered or unexported methods
}

ArchiveServiceServer is the server API for ArchiveService service. All implementations must embed UnimplementedArchiveServiceServer for forward compatibility

type ArchiveService_CreateArchiveClient

type ArchiveService_CreateArchiveClient interface {
	Send(*CreateArchiveRequest) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type ArchiveService_CreateArchiveServer

type ArchiveService_CreateArchiveServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*CreateArchiveRequest, error)
	grpc.ServerStream
}

type ArchiveService_GetArchiveClient

type ArchiveService_GetArchiveClient interface {
	Recv() (*GetArchiveResponse, error)
	grpc.ClientStream
}

type ArchiveService_GetArchiveServer

type ArchiveService_GetArchiveServer interface {
	Send(*GetArchiveResponse) error
	grpc.ServerStream
}

type CreateArchiveMetaInfo

type CreateArchiveMetaInfo struct {
	ArchiveEventId string `protobuf:"bytes,1,opt,name=archive_event_id,json=archiveEventId,proto3" json:"archive_event_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateArchiveMetaInfo) Descriptor deprecated

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

Deprecated: Use CreateArchiveMetaInfo.ProtoReflect.Descriptor instead.

func (*CreateArchiveMetaInfo) GetArchiveEventId

func (x *CreateArchiveMetaInfo) GetArchiveEventId() string

func (*CreateArchiveMetaInfo) ProtoMessage

func (*CreateArchiveMetaInfo) ProtoMessage()

func (*CreateArchiveMetaInfo) ProtoReflect

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

func (*CreateArchiveMetaInfo) Reset

func (x *CreateArchiveMetaInfo) Reset()

func (*CreateArchiveMetaInfo) String

func (x *CreateArchiveMetaInfo) String() string

type CreateArchiveRequest

type CreateArchiveRequest struct {

	// Types that are assignable to Value:
	//
	//	*CreateArchiveRequest_Meta
	//	*CreateArchiveRequest_Chunk
	Value isCreateArchiveRequest_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*CreateArchiveRequest) Descriptor deprecated

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

Deprecated: Use CreateArchiveRequest.ProtoReflect.Descriptor instead.

func (*CreateArchiveRequest) GetChunk

func (x *CreateArchiveRequest) GetChunk() []byte

func (*CreateArchiveRequest) GetMeta

func (*CreateArchiveRequest) GetValue

func (m *CreateArchiveRequest) GetValue() isCreateArchiveRequest_Value

func (*CreateArchiveRequest) ProtoMessage

func (*CreateArchiveRequest) ProtoMessage()

func (*CreateArchiveRequest) ProtoReflect

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

func (*CreateArchiveRequest) Reset

func (x *CreateArchiveRequest) Reset()

func (*CreateArchiveRequest) String

func (x *CreateArchiveRequest) String() string

type CreateArchiveRequest_Chunk

type CreateArchiveRequest_Chunk struct {
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

type CreateArchiveRequest_Meta

type CreateArchiveRequest_Meta struct {
	Meta *CreateArchiveMetaInfo `protobuf:"bytes,1,opt,name=meta,proto3,oneof"`
}

type GetArchiveMetaInfo

type GetArchiveMetaInfo struct {
	ArchiveId   string `protobuf:"bytes,1,opt,name=archive_id,json=archiveId,proto3" json:"archive_id,omitempty"`
	ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Size        int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArchiveMetaInfo) Descriptor deprecated

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

Deprecated: Use GetArchiveMetaInfo.ProtoReflect.Descriptor instead.

func (*GetArchiveMetaInfo) GetArchiveId

func (x *GetArchiveMetaInfo) GetArchiveId() string

func (*GetArchiveMetaInfo) GetContentType

func (x *GetArchiveMetaInfo) GetContentType() string

func (*GetArchiveMetaInfo) GetSize

func (x *GetArchiveMetaInfo) GetSize() int64

func (*GetArchiveMetaInfo) ProtoMessage

func (*GetArchiveMetaInfo) ProtoMessage()

func (*GetArchiveMetaInfo) ProtoReflect

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

func (*GetArchiveMetaInfo) Reset

func (x *GetArchiveMetaInfo) Reset()

func (*GetArchiveMetaInfo) String

func (x *GetArchiveMetaInfo) String() string

type GetArchiveRequest

type GetArchiveRequest struct {
	ArchiveEventId string `protobuf:"bytes,1,opt,name=archive_event_id,json=archiveEventId,proto3" json:"archive_event_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetArchiveRequest) Descriptor deprecated

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

Deprecated: Use GetArchiveRequest.ProtoReflect.Descriptor instead.

func (*GetArchiveRequest) GetArchiveEventId

func (x *GetArchiveRequest) GetArchiveEventId() string

func (*GetArchiveRequest) ProtoMessage

func (*GetArchiveRequest) ProtoMessage()

func (*GetArchiveRequest) ProtoReflect

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

func (*GetArchiveRequest) Reset

func (x *GetArchiveRequest) Reset()

func (*GetArchiveRequest) String

func (x *GetArchiveRequest) String() string

type GetArchiveResponse

type GetArchiveResponse struct {

	// Types that are assignable to Value:
	//
	//	*GetArchiveResponse_Meta
	//	*GetArchiveResponse_Chunk
	Value isGetArchiveResponse_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*GetArchiveResponse) Descriptor deprecated

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

Deprecated: Use GetArchiveResponse.ProtoReflect.Descriptor instead.

func (*GetArchiveResponse) GetChunk

func (x *GetArchiveResponse) GetChunk() []byte

func (*GetArchiveResponse) GetMeta

func (x *GetArchiveResponse) GetMeta() *GetArchiveMetaInfo

func (*GetArchiveResponse) GetValue

func (m *GetArchiveResponse) GetValue() isGetArchiveResponse_Value

func (*GetArchiveResponse) ProtoMessage

func (*GetArchiveResponse) ProtoMessage()

func (*GetArchiveResponse) ProtoReflect

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

func (*GetArchiveResponse) Reset

func (x *GetArchiveResponse) Reset()

func (*GetArchiveResponse) String

func (x *GetArchiveResponse) String() string

type GetArchiveResponse_Chunk

type GetArchiveResponse_Chunk struct {
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

type GetArchiveResponse_Meta

type GetArchiveResponse_Meta struct {
	Meta *GetArchiveMetaInfo `protobuf:"bytes,1,opt,name=meta,proto3,oneof"`
}

type UnimplementedArchiveServiceServer

type UnimplementedArchiveServiceServer struct {
}

UnimplementedArchiveServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedArchiveServiceServer) CreateArchive

func (UnimplementedArchiveServiceServer) GetArchive

type UnsafeArchiveServiceServer

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

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

Jump to

Keyboard shortcuts

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