sdkdto

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRegisterInfo added in v0.4.6

type AppRegisterInfo struct {
	AppCode string                     `json:"appCode"`
	AppName string                     `json:"appName"`
	AppDSN  string                     `json:"appDSN"`
	AppAddr string                     `json:"appAddr"`
	UGNList []utils.UserGroupNamespace `json:"ugnList"`
}

type FFProbeInfo added in v0.2.3

type FFProbeInfo struct {
	Streams []*Stream `json:"streams"`
	Format  *Format   `json:"format"`
}

type FFmpegBasicInfo added in v0.2.3

type FFmpegBasicInfo struct {
	Duration string `json:"duration"`
	Size     string `json:"size"`
	BitRate  string `json:"bit_rate"`
}

type FileEvent added in v0.9.11

type FileEvent struct {
	UGN        *utils.UserGroupNamespace `json:"ugn"`
	SrcUFI     string                    `json:"srcUfi"` // rename ufi
	UFI        string                    `json:"ufi"`
	Inode      uint64                    `json:"inode"`
	Action     int                       `json:"action"`
	WithAvatar bool                      `json:"withAvatar"`
}

FileEvent file event structure

type Format added in v0.2.3

type Format struct {
	//Filename       string `json:"filename"`
	NbStreams      int    `json:"nb_streams"`
	NbPrograms     int    `json:"nb_programs"`
	FormatName     string `json:"format_name"`
	FormatLongName string `json:"format_long_name"`
	StartTime      string `json:"start_time"`
	Duration       string `json:"duration"`
	Size           string `json:"size"`
	BitRate        string `json:"bit_rate"`
	ProbeScore     int    `json:"probe_score"`
	Tags           struct {
		MajorBrand       string `json:"major_brand"`
		MinorVersion     string `json:"minor_version"`
		CompatibleBrands string `json:"compatible_brands"`
		Encoder          string `json:"encoder"`
		Description      string `json:"description"`
	} `json:"tags"`
}

type KV added in v0.2.3

type KV struct {
	Id         int64  `json:"id"`
	AppCode    string `json:"appCode"`
	Type       string `json:"type"`
	Key        string `json:"key"`
	Value      string `json:"value"`
	CreateTime int64  `json:"createTime"`
	UpdateTime int64  `json:"updateTime"`
}

type PreferOptions added in v0.9.11

type PreferOptions struct {
	MediaType     sdkconst.MediaType                                   `json:"mediaType"`     // media type
	FileEventType int                                                  `json:"fileEventType"` // file event type
	FollowDirs    []string                                             `json:"followDirs"`    // follow dirs (default all dirs)
	ExcludeExts   []string                                             `json:"excludeExts"`   // excluded file exts
	Description   string                                               `json:"description"`   // description
	Priority      sdkconst.TaskLevel                                   `json:"priority"`      // priority (resource occupancy level)
	Handler       func(fe *FileEvent) (sdkconst.ConsumeStatus, string) `json:"-"`             // handler
}

PreferOptions file event prefer options

func (*PreferOptions) ParseToEventCode added in v0.9.11

func (p *PreferOptions) ParseToEventCode(appCode string) string

type SiyouFileInfo added in v0.9.1

type SiyouFileInfo struct {
	Id        uint64 `json:"id"`              // file id
	Name      string `json:"name"`            // file name
	IsDir     bool   `json:"isDir"`           // if it's dir
	UFI       string `json:"ufi"`             // file ufi
	PUFI      string `json:"pufi"`            // file parent ufi
	Mime      string `json:"mime"`            // file mime type
	Atime     int64  `json:"atime"`           // access time
	Mtime     int64  `json:"mtime"`           // modify time
	Ctime     int64  `json:"ctime"`           // change time
	Size      int64  `json:"size"`            // file size
	HasAvatar bool   `json:"hasAvatar"`       // if has avatar
	Hash1     string `json:"hash1,omitempty"` // hash level1
	Hash2     string `json:"hash2,omitempty"` // hash level2
	Hash3     string `json:"hash3,omitempty"` // hash level3
	Owner     string `json:"owner,omitempty"` // owner
}

SiyouFileInfo siyouyun file info

type Stream added in v0.2.3

type Stream struct {
	Index            int    `json:"index"`
	CodecName        string `json:"codec_name"`
	CodecLongName    string `json:"codec_long_name"`
	Profile          string `json:"profile"`
	CodecType        string `json:"codec_type"`
	CodecTagString   string `json:"codec_tag_string"`
	CodecTag         string `json:"codec_tag"`
	Width            int    `json:"width,omitempty"`
	Height           int    `json:"height,omitempty"`
	CodedWidth       int    `json:"coded_width,omitempty"`
	CodedHeight      int    `json:"coded_height,omitempty"`
	ClosedCaptions   int    `json:"closed_captions,omitempty"`
	FilmGrain        int    `json:"film_grain,omitempty"`
	HasBFrames       int    `json:"has_b_frames,omitempty"`
	PixFmt           string `json:"pix_fmt,omitempty"`
	Level            int    `json:"level,omitempty"`
	ChromaLocation   string `json:"chroma_location,omitempty"`
	FieldOrder       string `json:"field_order,omitempty"`
	Refs             int    `json:"refs,omitempty"`
	IsAvc            string `json:"is_avc,omitempty"`
	NalLengthSize    string `json:"nal_length_size,omitempty"`
	Id               string `json:"id"`
	RFrameRate       string `json:"r_frame_rate"`
	AvgFrameRate     string `json:"avg_frame_rate"`
	TimeBase         string `json:"time_base"`
	StartPts         int    `json:"start_pts"`
	StartTime        string `json:"start_time"`
	DurationTs       int    `json:"duration_ts"`
	Duration         string `json:"duration"`
	BitRate          string `json:"bit_rate"`
	BitsPerRawSample string `json:"bits_per_raw_sample,omitempty"`
	NbFrames         string `json:"nb_frames"`
	ExtradataSize    int    `json:"extradata_size"`
	Disposition      struct {
		Default         int `json:"default"`
		Dub             int `json:"dub"`
		Original        int `json:"original"`
		Comment         int `json:"comment"`
		Lyrics          int `json:"lyrics"`
		Karaoke         int `json:"karaoke"`
		Forced          int `json:"forced"`
		HearingImpaired int `json:"hearing_impaired"`
		VisualImpaired  int `json:"visual_impaired"`
		CleanEffects    int `json:"clean_effects"`
		AttachedPic     int `json:"attached_pic"`
		TimedThumbnails int `json:"timed_thumbnails"`
		Captions        int `json:"captions"`
		Descriptions    int `json:"descriptions"`
		Metadata        int `json:"metadata"`
		Dependent       int `json:"dependent"`
		StillImage      int `json:"still_image"`
	} `json:"disposition"`
	Tags struct {
		Language    string `json:"language"`
		HandlerName string `json:"handler_name"`
		VendorId    string `json:"vendor_id"`
	} `json:"tags"`
	SampleFmt     string `json:"sample_fmt,omitempty"`
	SampleRate    string `json:"sample_rate,omitempty"`
	Channels      int    `json:"channels,omitempty"`
	ChannelLayout string `json:"channel_layout,omitempty"`
	BitsPerSample int    `json:"bits_per_sample,omitempty"`
}

Jump to

Keyboard shortcuts

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