Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWidth = 1080 DefaultHeight = 1920 )
Variables ¶
View Source
var ( ErrFailToCreateFile = apperrors.System(nil, "fail to create file", "STAGES:FAIL_TO_CREATE_FILE") ErrFailToWriteFile = apperrors.System(nil, "fail to write file", "STAGES:FAIL_TO_WRITE_FILE") ErrFailToBuildStage = apperrors.System(nil, "fail to build stage", "STAGES:FAIL_TO_BUILD_STAGE") )
View Source
var ( ErrEmptyTarget = apperrors.Business("target cannot be empty", "STAGES:EMPTY_TARGET") ErrFailtoCreateDir = apperrors.System(nil, "fail to create dir", "STAGES:FAIL_TO_CREATE_DIR") ErrFailToParseTemplate = apperrors.System(nil, "fail to parse template", "STAGES:FAIL_TO_PARSE_TEMPLATE") ErrFailtoBuildFilename = apperrors.System(nil, "fail to build filename", "STAGES:FAIL_TO_BUILD_FILENAME") )
Functions ¶
func BuildVideo ¶
func BuildVideo(ctx context.Context, opt BuildVideoOptions) (string, error)
Types ¶
type BuildStageOptions ¶
type BuildStageOptions struct { Source fetcher.Result Template filetemplate.Template }
type BuildVideoOptions ¶
type Stage ¶
func BuildStage ¶
func BuildStage(ctx context.Context, opt BuildStageOptions) (Stage, error)
Click to show internal directories.
Click to hide internal directories.