nullx

package
v0.0.0-...-eb79982 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	SampleRate    uint32 `json:"sample_rate"`
	Channels      uint32 `json:"channels"`
	BitsPerSample uint8  `json:"bits_per_sample"`
}

type Info

type Info struct {
	ID       string `json:"id"`
	Checksum string `json:"csum"`
	Filename string `json:"filename"`
	Group    uint32 `json:"group"`
	Backend  int    `json:"backend"`
	Size     uint64 `json:"size"`
	Offset   uint64 `json:"offset-within-data-file"`
	Mtime    time.Time
	Server   string `json:"server"`
}

func (*Info) UnmarshalJSON

func (info *Info) UnmarshalJSON(data []byte) (err error)

type Media

type Media struct {
	Tracks []Track `json:"tracks"`
}

type Reply

type Reply struct {
	Bucket string `json:"bucket"`
	Key    string `json:"key"`
	ID     string `json:"id"`
	Size   uint64 `json:"size"`

	MetaSize   uint64 `json:"meta_size"`
	MetaBucket string `json:"meta_bucket"`
	MetaKey    string `json:"meta_key"`
	MetaID     string `json:"meta_id"`

	Timestamp time.Time

	Media Media `json:"media"`
}

func (*Reply) UnmarshalJSON

func (r *Reply) UnmarshalJSON(data []byte) (err error)

type Track

type Track struct {
	Codec          string `json:"codec"`
	MimeType       string `json:"mime_type"`
	Number         uint32 `json:"number"`
	Timescale      uint32 `json:"timescale"`
	Duration       uint64 `json:"duration"`
	Bandwidth      uint32 `json:"bandwidth"`
	MediaTimescale uint32 `json:"media_timescale"`
	MediaDuration  uint64 `json:"media_duration"`
	Audio          Audio  `json:"audio"`
	Video          Video  `json:"video"`
}

type Video

type Video struct {
	Width  uint32 `json:"width"`
	Height uint32 `json:"height"`
}

Jump to

Keyboard shortcuts

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