media

package
v0.0.0-...-048e3dd Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var Image_Title_DEFAULT string
View Source
var Media_Copyright_DEFAULT string
View Source
var Media_Title_DEFAULT string

Functions

This section is empty.

Types

type Image

type Image struct {
	URI    string  `thrift:"uri,1" db:"uri" json:"uri"`
	Title  *string `thrift:"title,2" db:"title" json:"title,omitempty"`
	Width  Int     `thrift:"width,3,required" db:"width" json:"width"`
	Height Int     `thrift:"height,4,required" db:"height" json:"height"`
	Size   Size    `thrift:"size,5,required" db:"size" json:"size"`
}

Some comment...

Attributes:

  • URI
  • Title
  • Width
  • Height
  • Size

func NewImage

func NewImage() *Image

func (*Image) GetHeight

func (p *Image) GetHeight() Int

func (*Image) GetSize

func (p *Image) GetSize() Size

func (*Image) GetTitle

func (p *Image) GetTitle() string

func (*Image) GetURI

func (p *Image) GetURI() string

func (*Image) GetWidth

func (p *Image) GetWidth() Int

func (*Image) IsSetTitle

func (p *Image) IsSetTitle() bool

func (*Image) Read

func (p *Image) Read(iprot thrift.TProtocol) error

func (*Image) ReadField1

func (p *Image) ReadField1(iprot thrift.TProtocol) error

func (*Image) ReadField2

func (p *Image) ReadField2(iprot thrift.TProtocol) error

func (*Image) ReadField3

func (p *Image) ReadField3(iprot thrift.TProtocol) error

func (*Image) ReadField4

func (p *Image) ReadField4(iprot thrift.TProtocol) error

func (*Image) ReadField5

func (p *Image) ReadField5(iprot thrift.TProtocol) error

func (*Image) String

func (p *Image) String() string

func (*Image) Write

func (p *Image) Write(oprot thrift.TProtocol) error

type Int

type Int int32
var Media_Bitrate_DEFAULT Int

func IntPtr

func IntPtr(v Int) *Int

type Long

type Long int64

func LongPtr

func LongPtr(v Long) *Long

type Media

type Media struct {
	URI       string   `thrift:"uri,1" db:"uri" json:"uri"`
	Title     *string  `thrift:"title,2" db:"title" json:"title,omitempty"`
	Width     Int      `thrift:"width,3,required" db:"width" json:"width"`
	Height    Int      `thrift:"height,4,required" db:"height" json:"height"`
	Format    string   `thrift:"format,5,required" db:"format" json:"format"`
	Duration  Long     `thrift:"duration,6,required" db:"duration" json:"duration"`
	Size      Long     `thrift:"size,7,required" db:"size" json:"size"`
	Bitrate   *Int     `thrift:"bitrate,8" db:"bitrate" json:"bitrate,omitempty"`
	Person    []string `thrift:"person,9,required" db:"person" json:"person"`
	Player    Player   `thrift:"player,10,required" db:"player" json:"player"`
	Copyright *string  `thrift:"copyright,11" db:"copyright" json:"copyright,omitempty"`
}

Attributes:

  • URI
  • Title
  • Width
  • Height
  • Format
  • Duration
  • Size
  • Bitrate
  • Person
  • Player
  • Copyright
var MediaContent_Media_DEFAULT *Media

func NewMedia

func NewMedia() *Media

func (*Media) GetBitrate

func (p *Media) GetBitrate() Int

func (*Media) GetCopyright

func (p *Media) GetCopyright() string

func (*Media) GetDuration

func (p *Media) GetDuration() Long

func (*Media) GetFormat

func (p *Media) GetFormat() string

func (*Media) GetHeight

func (p *Media) GetHeight() Int

func (*Media) GetPerson

func (p *Media) GetPerson() []string

func (*Media) GetPlayer

func (p *Media) GetPlayer() Player

func (*Media) GetSize

func (p *Media) GetSize() Long

func (*Media) GetTitle

func (p *Media) GetTitle() string

func (*Media) GetURI

func (p *Media) GetURI() string

func (*Media) GetWidth

func (p *Media) GetWidth() Int

func (*Media) IsSetBitrate

func (p *Media) IsSetBitrate() bool

func (*Media) IsSetCopyright

func (p *Media) IsSetCopyright() bool

func (*Media) IsSetTitle

func (p *Media) IsSetTitle() bool

func (*Media) Read

func (p *Media) Read(iprot thrift.TProtocol) error

func (*Media) ReadField1

func (p *Media) ReadField1(iprot thrift.TProtocol) error

func (*Media) ReadField10

func (p *Media) ReadField10(iprot thrift.TProtocol) error

func (*Media) ReadField11

func (p *Media) ReadField11(iprot thrift.TProtocol) error

func (*Media) ReadField2

func (p *Media) ReadField2(iprot thrift.TProtocol) error

func (*Media) ReadField3

func (p *Media) ReadField3(iprot thrift.TProtocol) error

func (*Media) ReadField4

func (p *Media) ReadField4(iprot thrift.TProtocol) error

func (*Media) ReadField5

func (p *Media) ReadField5(iprot thrift.TProtocol) error

func (*Media) ReadField6

func (p *Media) ReadField6(iprot thrift.TProtocol) error

func (*Media) ReadField7

func (p *Media) ReadField7(iprot thrift.TProtocol) error

func (*Media) ReadField8

func (p *Media) ReadField8(iprot thrift.TProtocol) error

func (*Media) ReadField9

func (p *Media) ReadField9(iprot thrift.TProtocol) error

func (*Media) String

func (p *Media) String() string

func (*Media) Write

func (p *Media) Write(oprot thrift.TProtocol) error

type MediaContent

type MediaContent struct {
	Image []*Image `thrift:"image,1,required" db:"image" json:"image"`
	Media *Media   `thrift:"media,2,required" db:"media" json:"media"`
}

Attributes:

  • Image
  • Media

func NewMediaContent

func NewMediaContent() *MediaContent

func (*MediaContent) GetImage

func (p *MediaContent) GetImage() []*Image

func (*MediaContent) GetMedia

func (p *MediaContent) GetMedia() *Media

func (*MediaContent) IsSetMedia

func (p *MediaContent) IsSetMedia() bool

func (*MediaContent) Read

func (p *MediaContent) Read(iprot thrift.TProtocol) error

func (*MediaContent) ReadField1

func (p *MediaContent) ReadField1(iprot thrift.TProtocol) error

func (*MediaContent) ReadField2

func (p *MediaContent) ReadField2(iprot thrift.TProtocol) error

func (*MediaContent) String

func (p *MediaContent) String() string

func (*MediaContent) Write

func (p *MediaContent) Write(oprot thrift.TProtocol) error

type Player

type Player int64
const (
	Player_JAVA  Player = 0
	Player_FLASH Player = 1
)

func PlayerFromString

func PlayerFromString(s string) (Player, error)

func PlayerPtr

func PlayerPtr(v Player) *Player

func (Player) MarshalText

func (p Player) MarshalText() ([]byte, error)

func (*Player) Scan

func (p *Player) Scan(value interface{}) error

func (Player) String

func (p Player) String() string

func (*Player) UnmarshalText

func (p *Player) UnmarshalText(text []byte) error

func (*Player) Value

func (p *Player) Value() (driver.Value, error)

type Size

type Size int64
const (
	Size_SMALL Size = 0
	Size_LARGE Size = 1
)

func SizeFromString

func SizeFromString(s string) (Size, error)

func SizePtr

func SizePtr(v Size) *Size

func (Size) MarshalText

func (p Size) MarshalText() ([]byte, error)

func (*Size) Scan

func (p *Size) Scan(value interface{}) error

func (Size) String

func (p Size) String() string

func (*Size) UnmarshalText

func (p *Size) UnmarshalText(text []byte) error

func (*Size) Value

func (p *Size) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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