config

package
v0.0.0-...-98f9077 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigName = "config"

DefaultConfigName ...

View Source
var DefaultConfigPath = "."

DefaultConfigPath ...

View Source
var DefaultConfigType = "json"

DefaultConfigType ...

Functions

func Ext

func Ext() string

Ext ...

func Load

func Load() (err error)

Load ...

func Save

func Save() (err error)

Save ...

func SaveJSON

func SaveJSON() (err error)

SaveJSON ...

func Set

func Set(config *Config)

Set ...

Types

type Config

type Config struct {
	Name          string
	CommandPath   string
	FFProbeName   string
	FFMpegName    string
	AutoRemove    bool
	ProcessCore   ProcessCore
	Task          int
	Broker        string
	QueueName     string
	ResultBackend string
	AMQP          *config.AMQPConfig
}

Config ...

func Default

func Default() *Config

Default ...

func Get

func Get() *Config

Get ...

type Crypto

type Crypto = fftool.Crypto

Crypto ...

type ProcessCore

type ProcessCore = fftool.ProcessCore

ProcessCore ...

type Scale

type Scale = fftool.Scale

Scale ...

type SliceConfig

type SliceConfig struct {
	Filepath        string
	Crypto          *Crypto
	Scale           Scale
	BitRate         int64
	FrameRate       float64
	OutputPath      string //output path
	OutputName      string
	M3U8Name        string
	SegmentFileName string
	HLSTime         int
	KeyOutput       bool
	LogOutput       bool
}

SliceConfig ...

func DefaultSliceConfig

func DefaultSliceConfig() *SliceConfig

DefaultSliceConfig ...

func ParseSliceConfig

func ParseSliceConfig(s []byte) (*SliceConfig, error)

ParseSliceConfig ...

func (*SliceConfig) Parse

func (c *SliceConfig) Parse(s []byte) error

Parse ...

func (SliceConfig) String

func (c SliceConfig) String() string

String ...

Jump to

Keyboard shortcuts

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