Categorygithub.com/glvd/conversion
modulepackage
0.1.27
Repository: https://github.com/glvd/conversion.git
Documentation: pkg.go.dev

# README

conversion

        eng, err := conversion.InitMySQL(
            conversion.LoginOption(cfg.Addr, cfg.Username, cfg.Password))
    	if err != nil {
            return nil, fmt.Errorf("init conversion:%w", err)
    	}
        conversion.RegisterDatabase(eng)

        t := conversion.NewTask()
        t.Limit = cfg.Limit
        //don't stop when all task is done	
        t.SetAutoStop(false)        
        //then start
        t.Start()

# Functions

AllHash ...
ByteIndex ...
CheckDatabase ...
CheckNode ...
Checksum ...
CidHash ...
ClearTempOption ...
CreateDatabaseOption ...
DBType ...
ExistVerifyFunc ...
ExistVerifyString ...
FileAbsName ...
FileName ...
FindAll ...
FindHash ...
GetFileIndex ...
GetFiles ...
GetNameIndex ...
IDOption ...
IndexByte ...
No description provided by the author
InitMySQL ...
InitSQLite3 ...
InsertOrUpdate ...
IsExist ...
IsMedia ...
IsPicture ...
IsVideo ...
LastSplit ...
LoadWork ...
LoginOption ...
MakeDatabaseInstance ...
MustDatabase ...
MustSession ...
MustString must string.
NewClusterNode ...
NewInfoWork ...
NewQueue ...
NewSingleNode ...
NewSourceWork ...
NewTask ...
OutputPathOption ...
PosterPathOption ...
RegisterCache ...
RegisterDatabase ...
RegisterNode ...
ResolvedHash ...
SamplePathOption ...
ScaleOption ...
SchemaOption ...
SetCachePath ...
ShowSQLOptions ...
SkipOption ...
SyncTable ...
ThumbPathOption ...
UseCacheOptions ...
UUID ...
VideoFromInfo ...
VideoFromSource ...
VideoPathOption ...
Wrap ...

# Constants

TypeOther ...
TypeOther ...
TypeOther ...
TypeOther ...
TypeOther ...
TypeOther ...
NodeTypeCluster ...
NodeTypeCluster ...
NodeTypeCluster ...
WorkWaiting ...
WorkWaiting ...
WorkWaiting ...
WorkWaiting ...
WorkWaiting ...

# Variables

CachePath ...
DefaultLimit ...
ErrWorkFinish ...
ErrWorkID ...
ErrWrongCastType ...
WorkRunProcessFunction ...

# Structs

Actor ...
Extend ...
Fragment ...
Genre ...
Hash ...
Model ...
PeerID ...
Queue ...
Sample ...
Task ...
Video ...
VideoPornInfo ...
VideoPornSource ...
Work ...
WorkImpl ...

# Interfaces

BeforeInsert ...
IModel ...
ISync ...
IVideo ...
IWork ...
Node ...

# Type aliases

No description provided by the author
ConfigOptions ...
FindResult ...
FragmentOption ...
HashType ...
No description provided by the author
VideoProcessFunc ...
WorkOptions ...
WorkStatus ...