convertapi

package
v0.0.0-...-b586aa6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPath

func ConvertPath(fromPath string, toPath string) (file *os.File, errs []error)

Types

type ResFile

type ResFile struct {
	FileName string
	FileSize int
	Url      string
	// contains filtered or unexported fields
}

func (*ResFile) Delete

func (this *ResFile) Delete() error

func (*ResFile) Read

func (this *ResFile) Read(p []byte) (n int, err error)

func (*ResFile) ToFile

func (this *ResFile) ToFile(file *os.File) (err error)

func (*ResFile) ToPath

func (this *ResFile) ToPath(path string) (file *os.File, err error)

type Result

type Result struct {
	// contains filtered or unexported fields
}

func ConvDef

func ConvDef(fromFormat string, toFormat string, params ...param.IParam) (result *Result)

func Convert

func Convert(fromFormat string, toFormat string, params []param.IParam, conf *config.Config) (result *Result)

func NewResult

func NewResult() *Result

func (*Result) Cost

func (this *Result) Cost() (cost int, err error)

func (*Result) Delete

func (this *Result) Delete() (errs []error)

func (*Result) Files

func (this *Result) Files() (files []*ResFile, err error)

func (*Result) Read

func (this *Result) Read(p []byte) (n int, err error)

func (*Result) ToFile

func (this *Result) ToFile(file *os.File) (err error)

func (*Result) ToPath

func (this *Result) ToPath(path string) (files []*os.File, errs []error)

func (*Result) Urls

func (this *Result) Urls() (urls []string, err error)

type User

type User struct {
	Active              bool
	ApiKey              int
	Email               string
	FullName            string
	ConversionsTotal    int
	ConversionsConsumed int
	Secret              string
	Status              string
}

func UserInfo

func UserInfo(conf *config.Config) (user *User, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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