Documentation
¶
Overview ¶
Package regproto is a generated protocol buffer package.
It is generated from these files:
registry.proto
It has these top-level messages:
Chunk Received
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRegistryServer ¶
func RegisterRegistryServer(s *grpc.Server, srv RegistryServer)
Types ¶
type Chunk ¶
type Chunk struct {
// TODO AuthToken auth = 1;
FileType string `protobuf:"bytes,1,opt,name=file_type,json=fileType" json:"file_type,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
Chunk of a file
func (*Chunk) Descriptor ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
type Received ¶
type Received struct {
Received bool `protobuf:"varint,1,opt,name=received" json:"received,omitempty"`
}
Acknowledgement - maybe stream this for partial upload recovery Do we need this or can we just use gRPC errors?
func (*Received) Descriptor ¶
func (*Received) ProtoMessage ¶
func (*Received) ProtoMessage()
type RegistryClient ¶
type RegistryClient interface {
Push(ctx context.Context, opts ...grpc.CallOption) (Registry_PushClient, error)
}
func NewRegistryClient ¶
func NewRegistryClient(cc *grpc.ClientConn) RegistryClient
type RegistryServer ¶
type RegistryServer interface {
Push(Registry_PushServer) error
}
type Registry_PushClient ¶
type Registry_PushServer ¶
Click to show internal directories.
Click to hide internal directories.