{"id":18650913,"url":"https://github.com/aimuz/codec","last_synced_at":"2025-11-05T11:30:41.071Z","repository":{"id":105791871,"uuid":"281870415","full_name":"aimuz/codec","owner":"aimuz","description":"Codec defines the interface universal uses to encode and decode messages.","archived":false,"fork":false,"pushed_at":"2024-03-13T21:31:03.000Z","size":34,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T13:12:32.685Z","etag":null,"topics":["codec","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-23T06:32:02.000Z","updated_at":"2022-02-19T15:32:12.000Z","dependencies_parsed_at":"2024-06-21T16:26:25.865Z","dependency_job_id":"272782f2-174e-418f-9a95-15c6dae7f215","html_url":"https://github.com/aimuz/codec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fcodec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fcodec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fcodec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fcodec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimuz","download_url":"https://codeload.github.com/aimuz/codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239458834,"owners_count":19642099,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codec","go","golang"],"created_at":"2024-11-07T06:47:26.906Z","updated_at":"2025-11-05T11:30:41.007Z","avatar_url":"https://github.com/aimuz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codec\n\nCodec defines the interface universal uses to encode and decode messages. \n\n## Example\n\n### Storm \n \n[github.com/asdine/storm](https://github.com/asdine/storm)\n \n```golang\nstorm.Open(\"\", storm.Codec(json.Codec))\nstorm.Open(\"\", storm.Codec(gob.Codec))\nstorm.Open(\"\", storm.Codec(bson.Codec))\nstorm.Open(\"\", storm.Codec(xml.Codec))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecWith(json.Codec)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecWith(gob.Codec)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecWith(bson.Codec)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecWith(xml.Codec)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecLevelWith(json.Codec, 9)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecLevelWith(gob.Codec, 9)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecLevelWith(bson.Codec, 9)))\nstorm.Open(\"\", storm.Codec(gzip.NewGzipCodecLevelWith(xml.Codec, 9)))\nstorm.Open(\"\", storm.Codec(snappy.NewSnappyCodecWith(json.Codec)))\nstorm.Open(\"\", storm.Codec(snappy.NewSnappyCodecWith(gob.Codec)))\nstorm.Open(\"\", storm.Codec(snappy.NewSnappyCodecWith(bson.Codec)))\nstorm.Open(\"\", storm.Codec(snappy.NewSnappyCodecWith(xml.Codec)))\n```\n\n### GRPC\n\ncodec using in grpc\n\n```golang\nencoding.RegisterCodec(json.Codec)\nencoding.RegisterCodec(gob.Codec)\nencoding.RegisterCodec(bson.Codec)\nencoding.RegisterCodec(xml.Codec)\nencoding.RegisterCodec(gzip.NewGzipCodecWith(json.Codec))\nencoding.RegisterCodec(gzip.NewGzipCodecWith(gob.Codec))\nencoding.RegisterCodec(gzip.NewGzipCodecWith(bson.Codec))\nencoding.RegisterCodec(gzip.NewGzipCodecWith(xml.Codec))\nencoding.RegisterCodec(gzip.NewGzipCodecLevelWith(json.Codec, 9))\nencoding.RegisterCodec(gzip.NewGzipCodecLevelWith(gob.Codec, 9))\nencoding.RegisterCodec(gzip.NewGzipCodecLevelWith(bson.Codec, 9))\nencoding.RegisterCodec(gzip.NewGzipCodecLevelWith(xml.Codec, 9))\nencoding.RegisterCodec(snappy.NewSnappyCodecWith(json.Codec))\nencoding.RegisterCodec(snappy.NewSnappyCodecWith(gob.Codec))\nencoding.RegisterCodec(snappy.NewSnappyCodecWith(bson.Codec))\nencoding.RegisterCodec(snappy.NewSnappyCodecWith(xml.Codec))\n```\n\n## Support\n\n- [x] gzip\n- [x] json\n- [x] gob\n- [x] snappy\n- [x] bson\n- [x] xml\n- [x] protobuf\n- [ ] ....\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimuz%2Fcodec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimuz%2Fcodec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimuz%2Fcodec/lists"}