RichardKnop / machinery

Machinery is an asynchronous task queue/job queue based on distributed message passing.
Mozilla Public License 2.0
7.52k stars 914 forks source link

why not support custom arg type? #779

Open gdlxSong opened 2 years ago

gdlxSong commented 2 years ago

current supported task argument type

// construct custom type codec
type Codec interface{
    Encode() ([]byte, error)
    Decode([]byte) error
}

// register custom type.
Reggister("costum type name", codecInstance)