unixfs_pb

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package unixfs_pb is a generated protocol buffer package.

It is generated from these files:

unixfs.proto

It has these top-level messages:

Data
Metadata

Index

Constants

This section is empty.

Variables

View Source
var Data_DataType_name = map[int32]string{
	0: "Raw",
	1: "Directory",
	2: "File",
	3: "Metadata",
}
View Source
var Data_DataType_value = map[string]int32{
	"Raw":       0,
	"Directory": 1,
	"File":      2,
	"Metadata":  3,
}

Functions

This section is empty.

Types

type Data

type Data struct {
	Type             *Data_DataType `protobuf:"varint,1,req,enum=unixfs.pb.Data_DataType" json:"Type,omitempty"`
	Data             []byte         `protobuf:"bytes,2,opt" json:"Data,omitempty"`
	Filesize         *uint64        `protobuf:"varint,3,opt,name=filesize" json:"filesize,omitempty"`
	Blocksizes       []uint64       `protobuf:"varint,4,rep,name=blocksizes" json:"blocksizes,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*Data) GetBlocksizes

func (m *Data) GetBlocksizes() []uint64

func (*Data) GetData

func (m *Data) GetData() []byte

func (*Data) GetFilesize

func (m *Data) GetFilesize() uint64

func (*Data) GetType

func (m *Data) GetType() Data_DataType

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

type Data_DataType

type Data_DataType int32
const (
	Data_Raw       Data_DataType = 0
	Data_Directory Data_DataType = 1
	Data_File      Data_DataType = 2
	Data_Metadata  Data_DataType = 3
)

func (Data_DataType) Enum

func (x Data_DataType) Enum() *Data_DataType

func (Data_DataType) String

func (x Data_DataType) String() string

func (*Data_DataType) UnmarshalJSON

func (x *Data_DataType) UnmarshalJSON(data []byte) error

type Metadata

type Metadata struct {
	MimeType         *string `protobuf:"bytes,1,req" json:"MimeType,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Metadata) GetMimeType

func (m *Metadata) GetMimeType() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

Jump to

Keyboard shortcuts

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