2018-11-27 20:52:19 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-07-06 20:43:53 +01:00
|
|
|
// source: pointerdb.proto
|
2018-07-27 07:02:59 +01:00
|
|
|
|
2018-09-18 05:39:06 +01:00
|
|
|
package pb
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-11-27 20:52:19 +00:00
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
2018-07-06 20:43:53 +01:00
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
2018-11-29 18:39:27 +00:00
|
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
2018-09-07 15:20:15 +01:00
|
|
|
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-12-14 20:17:30 +00:00
|
|
|
import (
|
|
|
|
context "golang.org/x/net/context"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
)
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2018-11-27 20:52:19 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
type RedundancyScheme_SchemeType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
RedundancyScheme_RS RedundancyScheme_SchemeType = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
var RedundancyScheme_SchemeType_name = map[int32]string{
|
|
|
|
0: "RS",
|
|
|
|
}
|
|
|
|
var RedundancyScheme_SchemeType_value = map[string]int32{
|
|
|
|
"RS": 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x RedundancyScheme_SchemeType) String() string {
|
|
|
|
return proto.EnumName(RedundancyScheme_SchemeType_name, int32(x))
|
|
|
|
}
|
|
|
|
func (RedundancyScheme_SchemeType) EnumDescriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{0, 0}
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pointer_DataType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Pointer_INLINE Pointer_DataType = 0
|
|
|
|
Pointer_REMOTE Pointer_DataType = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var Pointer_DataType_name = map[int32]string{
|
|
|
|
0: "INLINE",
|
|
|
|
1: "REMOTE",
|
|
|
|
}
|
|
|
|
var Pointer_DataType_value = map[string]int32{
|
|
|
|
"INLINE": 0,
|
|
|
|
"REMOTE": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Pointer_DataType) String() string {
|
|
|
|
return proto.EnumName(Pointer_DataType_name, int32(x))
|
|
|
|
}
|
2018-09-07 15:20:15 +01:00
|
|
|
func (Pointer_DataType) EnumDescriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{3, 0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
type RedundancyScheme struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Type RedundancyScheme_SchemeType `protobuf:"varint,1,opt,name=type,proto3,enum=pointerdb.RedundancyScheme_SchemeType" json:"type,omitempty"`
|
2018-07-06 20:43:53 +01:00
|
|
|
// these values apply to RS encoding
|
2018-09-07 15:20:15 +01:00
|
|
|
MinReq int32 `protobuf:"varint,2,opt,name=min_req,json=minReq,proto3" json:"min_req,omitempty"`
|
|
|
|
Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
|
|
|
RepairThreshold int32 `protobuf:"varint,4,opt,name=repair_threshold,json=repairThreshold,proto3" json:"repair_threshold,omitempty"`
|
|
|
|
SuccessThreshold int32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"`
|
|
|
|
ErasureShareSize int32 `protobuf:"varint,6,opt,name=erasure_share_size,json=erasureShareSize,proto3" json:"erasure_share_size,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RedundancyScheme) Reset() { *m = RedundancyScheme{} }
|
|
|
|
func (m *RedundancyScheme) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RedundancyScheme) ProtoMessage() {}
|
|
|
|
func (*RedundancyScheme) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *RedundancyScheme) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RedundancyScheme.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RedundancyScheme.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RedundancyScheme) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RedundancyScheme.DiscardUnknown(m)
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_RedundancyScheme proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *RedundancyScheme) GetType() RedundancyScheme_SchemeType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return RedundancyScheme_RS
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetMinReq() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.MinReq
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetTotal() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Total
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetRepairThreshold() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.RepairThreshold
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RedundancyScheme) GetSuccessThreshold() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.SuccessThreshold
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-08-14 16:15:22 +01:00
|
|
|
func (m *RedundancyScheme) GetErasureShareSize() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ErasureShareSize
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
type RemotePiece struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
PieceNum int32 `protobuf:"varint,1,opt,name=piece_num,json=pieceNum,proto3" json:"piece_num,omitempty"`
|
2018-11-29 18:39:27 +00:00
|
|
|
NodeId NodeID `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
2018-09-07 15:20:15 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *RemotePiece) Reset() { *m = RemotePiece{} }
|
|
|
|
func (m *RemotePiece) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RemotePiece) ProtoMessage() {}
|
|
|
|
func (*RemotePiece) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{1}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RemotePiece.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RemotePiece.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *RemotePiece) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RemotePiece.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RemotePiece.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RemotePiece) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RemotePiece.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RemotePiece proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *RemotePiece) GetPieceNum() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.PieceNum
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type RemoteSegment struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
Redundancy *RedundancyScheme `protobuf:"bytes,1,opt,name=redundancy" json:"redundancy,omitempty"`
|
|
|
|
// TODO: may want to use customtype and fixed-length byte slice
|
|
|
|
PieceId string `protobuf:"bytes,2,opt,name=piece_id,json=pieceId,proto3" json:"piece_id,omitempty"`
|
|
|
|
RemotePieces []*RemotePiece `protobuf:"bytes,3,rep,name=remote_pieces,json=remotePieces" json:"remote_pieces,omitempty"`
|
|
|
|
MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *RemoteSegment) Reset() { *m = RemoteSegment{} }
|
|
|
|
func (m *RemoteSegment) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RemoteSegment) ProtoMessage() {}
|
|
|
|
func (*RemoteSegment) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{2}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *RemoteSegment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RemoteSegment.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RemoteSegment.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RemoteSegment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RemoteSegment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RemoteSegment proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *RemoteSegment) GetRedundancy() *RedundancyScheme {
|
|
|
|
if m != nil {
|
|
|
|
return m.Redundancy
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RemoteSegment) GetPieceId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PieceId
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RemoteSegment) GetRemotePieces() []*RemotePiece {
|
|
|
|
if m != nil {
|
|
|
|
return m.RemotePieces
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RemoteSegment) GetMerkleRoot() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.MerkleRoot
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Pointer struct {
|
2019-01-02 18:47:34 +00:00
|
|
|
Type Pointer_DataType `protobuf:"varint,1,opt,name=type,proto3,enum=pointerdb.Pointer_DataType" json:"type,omitempty"`
|
|
|
|
InlineSegment []byte `protobuf:"bytes,3,opt,name=inline_segment,json=inlineSegment,proto3" json:"inline_segment,omitempty"`
|
|
|
|
Remote *RemoteSegment `protobuf:"bytes,4,opt,name=remote" json:"remote,omitempty"`
|
2018-11-20 17:09:35 +00:00
|
|
|
SegmentSize int64 `protobuf:"varint,5,opt,name=segment_size,json=segmentSize,proto3" json:"segment_size,omitempty"`
|
2018-11-27 20:52:19 +00:00
|
|
|
CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate" json:"creation_date,omitempty"`
|
|
|
|
ExpirationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration_date,json=expirationDate" json:"expiration_date,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
Metadata []byte `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) Reset() { *m = Pointer{} }
|
|
|
|
func (m *Pointer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Pointer) ProtoMessage() {}
|
|
|
|
func (*Pointer) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{3}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Pointer.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Pointer.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *Pointer) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Pointer.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Pointer.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Pointer) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Pointer.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Pointer proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
func (m *Pointer) GetType() Pointer_DataType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return Pointer_INLINE
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetInlineSegment() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.InlineSegment
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetRemote() *RemoteSegment {
|
|
|
|
if m != nil {
|
|
|
|
return m.Remote
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-20 17:09:35 +00:00
|
|
|
func (m *Pointer) GetSegmentSize() int64 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-11-20 17:09:35 +00:00
|
|
|
return m.SegmentSize
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) GetCreationDate() *timestamp.Timestamp {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.CreationDate
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *Pointer) GetExpirationDate() *timestamp.Timestamp {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.ExpirationDate
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Pointer) GetMetadata() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// PutRequest is a request message for the Put rpc call
|
|
|
|
type PutRequest struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
2018-11-27 20:52:19 +00:00
|
|
|
Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer" json:"pointer,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PutRequest) Reset() { *m = PutRequest{} }
|
|
|
|
func (m *PutRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PutRequest) ProtoMessage() {}
|
|
|
|
func (*PutRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{4}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *PutRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PutRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *PutRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PutRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *PutRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PutRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PutRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PutRequest.DiscardUnknown(m)
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_PutRequest proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *PutRequest) GetPath() string {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
2018-07-27 07:02:59 +01:00
|
|
|
return ""
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PutRequest) GetPointer() *Pointer {
|
|
|
|
if m != nil {
|
|
|
|
return m.Pointer
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetRequest is a request message for the Get rpc call
|
|
|
|
type GetRequest struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-19 23:57:22 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *GetRequest) Reset() { *m = GetRequest{} }
|
|
|
|
func (m *GetRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetRequest) ProtoMessage() {}
|
|
|
|
func (*GetRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{5}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *GetRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *GetRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *GetRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetRequest proto.InternalMessageInfo
|
2018-07-27 07:02:59 +01:00
|
|
|
|
|
|
|
func (m *GetRequest) GetPath() string {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
2018-07-27 07:02:59 +01:00
|
|
|
return ""
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListRequest is a request message for the List rpc call
|
|
|
|
type ListRequest struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
|
|
|
StartAfter string `protobuf:"bytes,2,opt,name=start_after,json=startAfter,proto3" json:"start_after,omitempty"`
|
|
|
|
EndBefore string `protobuf:"bytes,3,opt,name=end_before,json=endBefore,proto3" json:"end_before,omitempty"`
|
|
|
|
Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"`
|
|
|
|
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
MetaFlags uint32 `protobuf:"fixed32,6,opt,name=meta_flags,json=metaFlags,proto3" json:"meta_flags,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|
|
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{6}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *ListRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListRequest.DiscardUnknown(m)
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListRequest) GetPrefix() string {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-07-27 07:02:59 +01:00
|
|
|
return m.Prefix
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
2018-07-27 07:02:59 +01:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) GetStartAfter() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.StartAfter
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) GetEndBefore() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.EndBefore
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) GetRecursive() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Recursive
|
|
|
|
}
|
|
|
|
return false
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListRequest) GetLimit() int32 {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-30 19:57:50 +01:00
|
|
|
func (m *ListRequest) GetMetaFlags() uint32 {
|
2018-07-27 07:02:59 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.MetaFlags
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
// PutResponse is a response message for the Put rpc call
|
|
|
|
type PutResponse struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PutResponse) Reset() { *m = PutResponse{} }
|
|
|
|
func (m *PutResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PutResponse) ProtoMessage() {}
|
|
|
|
func (*PutResponse) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{7}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *PutResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PutResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *PutResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PutResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *PutResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PutResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PutResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PutResponse.DiscardUnknown(m)
|
2018-07-19 23:57:22 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_PutResponse proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
|
|
|
// GetResponse is a response message for the Get rpc call
|
|
|
|
type GetResponse struct {
|
2018-11-27 20:52:19 +00:00
|
|
|
Pointer *Pointer `protobuf:"bytes,1,opt,name=pointer" json:"pointer,omitempty"`
|
|
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes" json:"nodes,omitempty"`
|
|
|
|
Pba *PayerBandwidthAllocation `protobuf:"bytes,3,opt,name=pba" json:"pba,omitempty"`
|
|
|
|
Authorization *SignedMessage `protobuf:"bytes,4,opt,name=authorization" json:"authorization,omitempty"`
|
2018-10-30 16:24:46 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-19 23:57:22 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *GetResponse) Reset() { *m = GetResponse{} }
|
|
|
|
func (m *GetResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetResponse) ProtoMessage() {}
|
|
|
|
func (*GetResponse) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{8}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *GetResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *GetResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *GetResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetResponse proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-10-04 22:00:19 +01:00
|
|
|
func (m *GetResponse) GetPointer() *Pointer {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Pointer
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-10-04 22:00:19 +01:00
|
|
|
func (m *GetResponse) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-10-30 16:24:46 +00:00
|
|
|
func (m *GetResponse) GetPba() *PayerBandwidthAllocation {
|
|
|
|
if m != nil {
|
|
|
|
return m.Pba
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-05 15:12:19 +00:00
|
|
|
func (m *GetResponse) GetAuthorization() *SignedMessage {
|
|
|
|
if m != nil {
|
|
|
|
return m.Authorization
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
// ListResponse is a response message for the List rpc call
|
|
|
|
type ListResponse struct {
|
2018-11-27 20:52:19 +00:00
|
|
|
Items []*ListResponse_Item `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
More bool `protobuf:"varint,2,opt,name=more,proto3" json:"more,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{9}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *ListResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse) GetItems() []*ListResponse_Item {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-07-27 07:02:59 +01:00
|
|
|
return m.Items
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse) GetMore() bool {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
2018-07-27 07:02:59 +01:00
|
|
|
return m.More
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
type ListResponse_Item struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
2018-11-27 20:52:19 +00:00
|
|
|
Pointer *Pointer `protobuf:"bytes,2,opt,name=pointer" json:"pointer,omitempty"`
|
2018-09-07 15:20:15 +01:00
|
|
|
IsPrefix bool `protobuf:"varint,3,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse_Item) Reset() { *m = ListResponse_Item{} }
|
|
|
|
func (m *ListResponse_Item) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse_Item) ProtoMessage() {}
|
|
|
|
func (*ListResponse_Item) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{9, 0}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *ListResponse_Item) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse_Item.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse_Item.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse_Item) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse_Item.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse_Item proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
func (m *ListResponse_Item) GetPath() string {
|
2018-07-06 20:43:53 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
2018-07-27 07:02:59 +01:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-07-30 19:57:50 +01:00
|
|
|
func (m *ListResponse_Item) GetPointer() *Pointer {
|
2018-07-27 07:02:59 +01:00
|
|
|
if m != nil {
|
2018-07-30 19:57:50 +01:00
|
|
|
return m.Pointer
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *ListResponse_Item) GetIsPrefix() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.IsPrefix
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-07-27 07:02:59 +01:00
|
|
|
type DeleteRequest struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|
|
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteRequest) ProtoMessage() {}
|
|
|
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{10}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *DeleteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
|
2018-07-27 07:02:59 +01:00
|
|
|
|
|
|
|
func (m *DeleteRequest) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
// DeleteResponse is a response message for the Delete rpc call
|
|
|
|
type DeleteResponse struct {
|
2018-09-07 15:20:15 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-07-27 07:02:59 +01:00
|
|
|
}
|
|
|
|
|
2018-09-07 15:20:15 +01:00
|
|
|
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|
|
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{11}
|
2018-09-07 15:20:15 +01:00
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *DeleteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
2018-07-06 20:43:53 +01:00
|
|
|
|
2018-10-09 17:09:33 +01:00
|
|
|
// IterateRequest is a request message for the Iterate rpc call
|
|
|
|
type IterateRequest struct {
|
|
|
|
Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
|
|
|
|
First string `protobuf:"bytes,2,opt,name=first,proto3" json:"first,omitempty"`
|
|
|
|
Recurse bool `protobuf:"varint,3,opt,name=recurse,proto3" json:"recurse,omitempty"`
|
|
|
|
Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IterateRequest) Reset() { *m = IterateRequest{} }
|
|
|
|
func (m *IterateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*IterateRequest) ProtoMessage() {}
|
|
|
|
func (*IterateRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{12}
|
2018-10-09 17:09:33 +01:00
|
|
|
}
|
|
|
|
func (m *IterateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_IterateRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *IterateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_IterateRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *IterateRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IterateRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *IterateRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_IterateRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *IterateRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IterateRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IterateRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IterateRequest) GetPrefix() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Prefix
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IterateRequest) GetFirst() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.First
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IterateRequest) GetRecurse() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Recurse
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IterateRequest) GetReverse() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Reverse
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
type PayerBandwidthAllocationRequest struct {
|
|
|
|
Action PayerBandwidthAllocation_Action `protobuf:"varint,1,opt,name=action,proto3,enum=piecestoreroutes.PayerBandwidthAllocation_Action" json:"action,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PayerBandwidthAllocationRequest) Reset() { *m = PayerBandwidthAllocationRequest{} }
|
|
|
|
func (m *PayerBandwidthAllocationRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PayerBandwidthAllocationRequest) ProtoMessage() {}
|
|
|
|
func (*PayerBandwidthAllocationRequest) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{13}
|
2018-11-26 18:21:44 +00:00
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *PayerBandwidthAllocationRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PayerBandwidthAllocationRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PayerBandwidthAllocationRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PayerBandwidthAllocationRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PayerBandwidthAllocationRequest) GetAction() PayerBandwidthAllocation_Action {
|
|
|
|
if m != nil {
|
|
|
|
return m.Action
|
|
|
|
}
|
|
|
|
return PayerBandwidthAllocation_PUT
|
|
|
|
}
|
|
|
|
|
|
|
|
type PayerBandwidthAllocationResponse struct {
|
2018-11-27 20:52:19 +00:00
|
|
|
Pba *PayerBandwidthAllocation `protobuf:"bytes,1,opt,name=pba" json:"pba,omitempty"`
|
2018-11-26 18:21:44 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PayerBandwidthAllocationResponse) Reset() { *m = PayerBandwidthAllocationResponse{} }
|
|
|
|
func (m *PayerBandwidthAllocationResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PayerBandwidthAllocationResponse) ProtoMessage() {}
|
|
|
|
func (*PayerBandwidthAllocationResponse) Descriptor() ([]byte, []int) {
|
2019-01-25 16:23:25 +00:00
|
|
|
return fileDescriptor_pointerdb_a17404d4c37610e8, []int{14}
|
2018-11-26 18:21:44 +00:00
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *PayerBandwidthAllocationResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PayerBandwidthAllocationResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PayerBandwidthAllocationResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PayerBandwidthAllocationResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PayerBandwidthAllocationResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PayerBandwidthAllocationResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PayerBandwidthAllocationResponse) GetPba() *PayerBandwidthAllocation {
|
|
|
|
if m != nil {
|
|
|
|
return m.Pba
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*RedundancyScheme)(nil), "pointerdb.RedundancyScheme")
|
|
|
|
proto.RegisterType((*RemotePiece)(nil), "pointerdb.RemotePiece")
|
|
|
|
proto.RegisterType((*RemoteSegment)(nil), "pointerdb.RemoteSegment")
|
|
|
|
proto.RegisterType((*Pointer)(nil), "pointerdb.Pointer")
|
|
|
|
proto.RegisterType((*PutRequest)(nil), "pointerdb.PutRequest")
|
|
|
|
proto.RegisterType((*GetRequest)(nil), "pointerdb.GetRequest")
|
|
|
|
proto.RegisterType((*ListRequest)(nil), "pointerdb.ListRequest")
|
|
|
|
proto.RegisterType((*PutResponse)(nil), "pointerdb.PutResponse")
|
|
|
|
proto.RegisterType((*GetResponse)(nil), "pointerdb.GetResponse")
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "pointerdb.ListResponse")
|
2018-07-27 07:02:59 +01:00
|
|
|
proto.RegisterType((*ListResponse_Item)(nil), "pointerdb.ListResponse.Item")
|
2018-07-06 20:43:53 +01:00
|
|
|
proto.RegisterType((*DeleteRequest)(nil), "pointerdb.DeleteRequest")
|
|
|
|
proto.RegisterType((*DeleteResponse)(nil), "pointerdb.DeleteResponse")
|
2018-10-09 17:09:33 +01:00
|
|
|
proto.RegisterType((*IterateRequest)(nil), "pointerdb.IterateRequest")
|
2018-11-26 18:21:44 +00:00
|
|
|
proto.RegisterType((*PayerBandwidthAllocationRequest)(nil), "pointerdb.PayerBandwidthAllocationRequest")
|
|
|
|
proto.RegisterType((*PayerBandwidthAllocationResponse)(nil), "pointerdb.PayerBandwidthAllocationResponse")
|
2018-07-06 20:43:53 +01:00
|
|
|
proto.RegisterEnum("pointerdb.RedundancyScheme_SchemeType", RedundancyScheme_SchemeType_name, RedundancyScheme_SchemeType_value)
|
|
|
|
proto.RegisterEnum("pointerdb.Pointer_DataType", Pointer_DataType_name, Pointer_DataType_value)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
2018-12-14 20:17:30 +00:00
|
|
|
// PointerDBClient is the client API for PointerDB service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2018-07-06 20:43:53 +01:00
|
|
|
type PointerDBClient interface {
|
|
|
|
// Put formats and hands off a file path to be saved to boltdb
|
|
|
|
Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
|
|
|
|
// Get formats and hands off a file path to get a small value from boltdb
|
|
|
|
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
|
|
|
|
// List calls the bolt client's List function and returns all file paths
|
|
|
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
|
|
|
// Delete formats and hands off a file path to delete from boltdb
|
|
|
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
2018-11-27 20:52:19 +00:00
|
|
|
// PayerBandwidthAllocation returns signed payer bandwidth allocation struct
|
2018-11-26 18:21:44 +00:00
|
|
|
PayerBandwidthAllocation(ctx context.Context, in *PayerBandwidthAllocationRequest, opts ...grpc.CallOption) (*PayerBandwidthAllocationResponse, error)
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
type pointerDBClient struct {
|
2018-07-06 20:43:53 +01:00
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewPointerDBClient(cc *grpc.ClientConn) PointerDBClient {
|
2018-07-19 23:57:22 +01:00
|
|
|
return &pointerDBClient{cc}
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
func (c *pointerDBClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
|
2018-07-06 20:43:53 +01:00
|
|
|
out := new(PutResponse)
|
2018-09-07 15:20:15 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/pointerdb.PointerDB/Put", in, out, opts...)
|
2018-07-06 20:43:53 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
func (c *pointerDBClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
|
2018-07-06 20:43:53 +01:00
|
|
|
out := new(GetResponse)
|
2018-09-07 15:20:15 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/pointerdb.PointerDB/Get", in, out, opts...)
|
2018-07-06 20:43:53 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
func (c *pointerDBClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
|
2018-07-06 20:43:53 +01:00
|
|
|
out := new(ListResponse)
|
2018-09-07 15:20:15 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/pointerdb.PointerDB/List", in, out, opts...)
|
2018-07-06 20:43:53 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-07-19 23:57:22 +01:00
|
|
|
func (c *pointerDBClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
2018-07-06 20:43:53 +01:00
|
|
|
out := new(DeleteResponse)
|
2018-09-07 15:20:15 +01:00
|
|
|
err := c.cc.Invoke(ctx, "/pointerdb.PointerDB/Delete", in, out, opts...)
|
2018-07-06 20:43:53 +01:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
func (c *pointerDBClient) PayerBandwidthAllocation(ctx context.Context, in *PayerBandwidthAllocationRequest, opts ...grpc.CallOption) (*PayerBandwidthAllocationResponse, error) {
|
|
|
|
out := new(PayerBandwidthAllocationResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/pointerdb.PointerDB/PayerBandwidthAllocation", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-12-14 20:17:30 +00:00
|
|
|
// PointerDBServer is the server API for PointerDB service.
|
2018-07-06 20:43:53 +01:00
|
|
|
type PointerDBServer interface {
|
|
|
|
// Put formats and hands off a file path to be saved to boltdb
|
|
|
|
Put(context.Context, *PutRequest) (*PutResponse, error)
|
|
|
|
// Get formats and hands off a file path to get a small value from boltdb
|
|
|
|
Get(context.Context, *GetRequest) (*GetResponse, error)
|
|
|
|
// List calls the bolt client's List function and returns all file paths
|
|
|
|
List(context.Context, *ListRequest) (*ListResponse, error)
|
|
|
|
// Delete formats and hands off a file path to delete from boltdb
|
|
|
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
2018-11-27 20:52:19 +00:00
|
|
|
// PayerBandwidthAllocation returns signed payer bandwidth allocation struct
|
2018-11-26 18:21:44 +00:00
|
|
|
PayerBandwidthAllocation(context.Context, *PayerBandwidthAllocationRequest) (*PayerBandwidthAllocationResponse, error)
|
2018-07-06 20:43:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterPointerDBServer(s *grpc.Server, srv PointerDBServer) {
|
|
|
|
s.RegisterService(&_PointerDB_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PointerDB_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PutRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PointerDBServer).Put(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pointerdb.PointerDB/Put",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PointerDBServer).Put(ctx, req.(*PutRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PointerDB_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PointerDBServer).Get(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pointerdb.PointerDB/Get",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PointerDBServer).Get(ctx, req.(*GetRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PointerDB_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ListRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PointerDBServer).List(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pointerdb.PointerDB/List",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PointerDBServer).List(ctx, req.(*ListRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PointerDB_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DeleteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PointerDBServer).Delete(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pointerdb.PointerDB/Delete",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PointerDBServer).Delete(ctx, req.(*DeleteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-11-26 18:21:44 +00:00
|
|
|
func _PointerDB_PayerBandwidthAllocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PayerBandwidthAllocationRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PointerDBServer).PayerBandwidthAllocation(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/pointerdb.PointerDB/PayerBandwidthAllocation",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PointerDBServer).PayerBandwidthAllocation(ctx, req.(*PayerBandwidthAllocationRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-07-06 20:43:53 +01:00
|
|
|
var _PointerDB_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "pointerdb.PointerDB",
|
|
|
|
HandlerType: (*PointerDBServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Put",
|
|
|
|
Handler: _PointerDB_Put_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Get",
|
|
|
|
Handler: _PointerDB_Get_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "List",
|
|
|
|
Handler: _PointerDB_List_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Delete",
|
|
|
|
Handler: _PointerDB_Delete_Handler,
|
|
|
|
},
|
2018-11-26 18:21:44 +00:00
|
|
|
{
|
|
|
|
MethodName: "PayerBandwidthAllocation",
|
|
|
|
Handler: _PointerDB_PayerBandwidthAllocation_Handler,
|
|
|
|
},
|
2018-07-06 20:43:53 +01:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "pointerdb.proto",
|
|
|
|
}
|
|
|
|
|
2019-01-25 16:23:25 +00:00
|
|
|
func init() { proto.RegisterFile("pointerdb.proto", fileDescriptor_pointerdb_a17404d4c37610e8) }
|
2018-11-29 18:39:27 +00:00
|
|
|
|
2019-01-25 16:23:25 +00:00
|
|
|
var fileDescriptor_pointerdb_a17404d4c37610e8 = []byte{
|
2018-11-29 18:39:27 +00:00
|
|
|
// 1092 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x5d, 0x6f, 0x1b, 0x45,
|
|
|
|
0x17, 0xae, 0xbf, 0xe3, 0xb3, 0x76, 0xea, 0x77, 0xd4, 0x37, 0xdd, 0xba, 0x45, 0x09, 0x8b, 0x80,
|
|
|
|
0xd2, 0x56, 0x5b, 0x30, 0x95, 0x90, 0x28, 0x08, 0x35, 0x24, 0x54, 0x96, 0xda, 0x10, 0x8d, 0x73,
|
|
|
|
0xc5, 0xcd, 0x32, 0xf1, 0x1e, 0xdb, 0x23, 0xbc, 0x1f, 0x9d, 0x99, 0x2d, 0x4d, 0xff, 0x09, 0xff,
|
|
|
|
0x84, 0x1b, 0x2e, 0x91, 0xf8, 0x0d, 0x5c, 0xf4, 0x02, 0xf1, 0x33, 0xb8, 0x40, 0xf3, 0xb1, 0xf6,
|
|
|
|
0xba, 0x21, 0x69, 0x05, 0x37, 0xc9, 0x9e, 0x73, 0x9e, 0x73, 0xe6, 0x9c, 0xf3, 0x3c, 0x33, 0x86,
|
|
|
|
0xab, 0x79, 0xc6, 0x53, 0x85, 0x22, 0x3e, 0x0d, 0x73, 0x91, 0xa9, 0x8c, 0x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