share_p2p_shrex_nd

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthShare        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShare          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupShare = fmt.Errorf("proto: unexpected end of group")
)
View Source
var StatusCode_name = map[int32]string{
	0: "INVALID",
	1: "OK",
	2: "NOT_FOUND",
	3: "INTERNAL",
}
View Source
var StatusCode_value = map[string]int32{
	"INVALID":   0,
	"OK":        1,
	"NOT_FOUND": 2,
	"INTERNAL":  3,
}

Functions

This section is empty.

Types

type GetSharesByNamespaceRequest

type GetSharesByNamespaceRequest struct {
	RootHash    []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	NamespaceId []byte `protobuf:"bytes,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
}

func (*GetSharesByNamespaceRequest) Descriptor

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

func (*GetSharesByNamespaceRequest) GetNamespaceId

func (m *GetSharesByNamespaceRequest) GetNamespaceId() []byte

func (*GetSharesByNamespaceRequest) GetRootHash

func (m *GetSharesByNamespaceRequest) GetRootHash() []byte

func (*GetSharesByNamespaceRequest) Marshal

func (m *GetSharesByNamespaceRequest) Marshal() (dAtA []byte, err error)

func (*GetSharesByNamespaceRequest) MarshalTo

func (m *GetSharesByNamespaceRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetSharesByNamespaceRequest) MarshalToSizedBuffer

func (m *GetSharesByNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetSharesByNamespaceRequest) ProtoMessage

func (*GetSharesByNamespaceRequest) ProtoMessage()

func (*GetSharesByNamespaceRequest) Reset

func (m *GetSharesByNamespaceRequest) Reset()

func (*GetSharesByNamespaceRequest) Size

func (m *GetSharesByNamespaceRequest) Size() (n int)

func (*GetSharesByNamespaceRequest) String

func (m *GetSharesByNamespaceRequest) String() string

func (*GetSharesByNamespaceRequest) Unmarshal

func (m *GetSharesByNamespaceRequest) Unmarshal(dAtA []byte) error

func (*GetSharesByNamespaceRequest) XXX_DiscardUnknown

func (m *GetSharesByNamespaceRequest) XXX_DiscardUnknown()

func (*GetSharesByNamespaceRequest) XXX_Marshal

func (m *GetSharesByNamespaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSharesByNamespaceRequest) XXX_Merge

func (m *GetSharesByNamespaceRequest) XXX_Merge(src proto.Message)

func (*GetSharesByNamespaceRequest) XXX_Size

func (m *GetSharesByNamespaceRequest) XXX_Size() int

func (*GetSharesByNamespaceRequest) XXX_Unmarshal

func (m *GetSharesByNamespaceRequest) XXX_Unmarshal(b []byte) error

type GetSharesByNamespaceResponse

type GetSharesByNamespaceResponse struct {
	Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=share.p2p.shrex.nd.StatusCode" json:"status,omitempty"`
	Rows   []*Row     `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
}

func (*GetSharesByNamespaceResponse) Descriptor

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

func (*GetSharesByNamespaceResponse) GetRows

func (m *GetSharesByNamespaceResponse) GetRows() []*Row

func (*GetSharesByNamespaceResponse) GetStatus

func (*GetSharesByNamespaceResponse) Marshal

func (m *GetSharesByNamespaceResponse) Marshal() (dAtA []byte, err error)

func (*GetSharesByNamespaceResponse) MarshalTo

func (m *GetSharesByNamespaceResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetSharesByNamespaceResponse) MarshalToSizedBuffer

func (m *GetSharesByNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetSharesByNamespaceResponse) ProtoMessage

func (*GetSharesByNamespaceResponse) ProtoMessage()

func (*GetSharesByNamespaceResponse) Reset

func (m *GetSharesByNamespaceResponse) Reset()

func (*GetSharesByNamespaceResponse) Size

func (m *GetSharesByNamespaceResponse) Size() (n int)

func (*GetSharesByNamespaceResponse) String

func (*GetSharesByNamespaceResponse) Unmarshal

func (m *GetSharesByNamespaceResponse) Unmarshal(dAtA []byte) error

func (*GetSharesByNamespaceResponse) XXX_DiscardUnknown

func (m *GetSharesByNamespaceResponse) XXX_DiscardUnknown()

func (*GetSharesByNamespaceResponse) XXX_Marshal

func (m *GetSharesByNamespaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetSharesByNamespaceResponse) XXX_Merge

func (m *GetSharesByNamespaceResponse) XXX_Merge(src proto.Message)

func (*GetSharesByNamespaceResponse) XXX_Size

func (m *GetSharesByNamespaceResponse) XXX_Size() int

func (*GetSharesByNamespaceResponse) XXX_Unmarshal

func (m *GetSharesByNamespaceResponse) XXX_Unmarshal(b []byte) error

type Proof

type Proof struct {
	Start int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End   int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Nodes [][]byte `protobuf:"bytes,3,rep,name=Nodes,proto3" json:"Nodes,omitempty"`
}

func (*Proof) Descriptor

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

func (*Proof) GetEnd

func (m *Proof) GetEnd() int64

func (*Proof) GetNodes

func (m *Proof) GetNodes() [][]byte

func (*Proof) GetStart

func (m *Proof) GetStart() int64

func (*Proof) Marshal

func (m *Proof) Marshal() (dAtA []byte, err error)

func (*Proof) MarshalTo

func (m *Proof) MarshalTo(dAtA []byte) (int, error)

func (*Proof) MarshalToSizedBuffer

func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) Reset

func (m *Proof) Reset()

func (*Proof) Size

func (m *Proof) Size() (n int)

func (*Proof) String

func (m *Proof) String() string

func (*Proof) Unmarshal

func (m *Proof) Unmarshal(dAtA []byte) error

func (*Proof) XXX_DiscardUnknown

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal

func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proof) XXX_Merge

func (m *Proof) XXX_Merge(src proto.Message)

func (*Proof) XXX_Size

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal

func (m *Proof) XXX_Unmarshal(b []byte) error

type Row

type Row struct {
	Shares [][]byte `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"`
	Proof  *Proof   `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
}

func (*Row) Descriptor

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

func (*Row) GetProof

func (m *Row) GetProof() *Proof

func (*Row) GetShares

func (m *Row) GetShares() [][]byte

func (*Row) Marshal

func (m *Row) Marshal() (dAtA []byte, err error)

func (*Row) MarshalTo

func (m *Row) MarshalTo(dAtA []byte) (int, error)

func (*Row) MarshalToSizedBuffer

func (m *Row) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) Reset

func (m *Row) Reset()

func (*Row) Size

func (m *Row) Size() (n int)

func (*Row) String

func (m *Row) String() string

func (*Row) Unmarshal

func (m *Row) Unmarshal(dAtA []byte) error

func (*Row) XXX_DiscardUnknown

func (m *Row) XXX_DiscardUnknown()

func (*Row) XXX_Marshal

func (m *Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Row) XXX_Merge

func (m *Row) XXX_Merge(src proto.Message)

func (*Row) XXX_Size

func (m *Row) XXX_Size() int

func (*Row) XXX_Unmarshal

func (m *Row) XXX_Unmarshal(b []byte) error

type StatusCode

type StatusCode int32
const (
	StatusCode_INVALID   StatusCode = 0
	StatusCode_OK        StatusCode = 1
	StatusCode_NOT_FOUND StatusCode = 2
	StatusCode_INTERNAL  StatusCode = 3
)

func (StatusCode) EnumDescriptor

func (StatusCode) EnumDescriptor() ([]byte, []int)

func (StatusCode) String

func (x StatusCode) String() string

Jump to

Keyboard shortcuts

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