share_p2p_shrex_nd

package
v0.13.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 6 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"`
	Namespace []byte `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
}

func (*GetSharesByNamespaceRequest) Descriptor

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

func (*GetSharesByNamespaceRequest) GetNamespace added in v0.11.0

func (m *GetSharesByNamespaceRequest) GetNamespace() []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 GetSharesByNamespaceStatusResponse added in v0.11.0

type GetSharesByNamespaceStatusResponse struct {
	Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=share.p2p.shrex.nd.StatusCode" json:"status,omitempty"`
}

func (*GetSharesByNamespaceStatusResponse) Descriptor added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) GetStatus added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) Marshal added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) MarshalTo added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) ProtoMessage added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) ProtoMessage()

func (*GetSharesByNamespaceStatusResponse) Reset added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) Size added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) String added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) Unmarshal added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) XXX_DiscardUnknown added in v0.11.0

func (m *GetSharesByNamespaceStatusResponse) XXX_DiscardUnknown()

func (*GetSharesByNamespaceStatusResponse) XXX_Marshal added in v0.11.0

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

func (*GetSharesByNamespaceStatusResponse) XXX_Merge added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) XXX_Size added in v0.11.0

func (*GetSharesByNamespaceStatusResponse) XXX_Unmarshal added in v0.11.0

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

type NamespaceRowResponse added in v0.11.0

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

func (*NamespaceRowResponse) Descriptor added in v0.11.0

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

func (*NamespaceRowResponse) GetProof added in v0.11.0

func (m *NamespaceRowResponse) GetProof() *pb.Proof

func (*NamespaceRowResponse) GetShares added in v0.11.0

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

func (*NamespaceRowResponse) Marshal added in v0.11.0

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

func (*NamespaceRowResponse) MarshalTo added in v0.11.0

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

func (*NamespaceRowResponse) MarshalToSizedBuffer added in v0.11.0

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

func (*NamespaceRowResponse) ProtoMessage added in v0.11.0

func (*NamespaceRowResponse) ProtoMessage()

func (*NamespaceRowResponse) Reset added in v0.11.0

func (m *NamespaceRowResponse) Reset()

func (*NamespaceRowResponse) Size added in v0.11.0

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

func (*NamespaceRowResponse) String added in v0.11.0

func (m *NamespaceRowResponse) String() string

func (*NamespaceRowResponse) Unmarshal added in v0.11.0

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

func (*NamespaceRowResponse) XXX_DiscardUnknown added in v0.11.0

func (m *NamespaceRowResponse) XXX_DiscardUnknown()

func (*NamespaceRowResponse) XXX_Marshal added in v0.11.0

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

func (*NamespaceRowResponse) XXX_Merge added in v0.11.0

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

func (*NamespaceRowResponse) XXX_Size added in v0.11.0

func (m *NamespaceRowResponse) XXX_Size() int

func (*NamespaceRowResponse) XXX_Unmarshal added in v0.11.0

func (m *NamespaceRowResponse) 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