status-go/vendor/github.com/andybalholm/brotli
Mikhail Rogachev 511d6bfc54
feat: add parsing for new links format (#3665)
* feat(share-links): Add protobuf and encode/decode url data methods

* feat(new-links-format): Adds generators for new links format

* feat: add parsing for new links format

* feat: add messenger-level pubkey serialization and tests

* feat: fix and test CreateCommunityURLWithChatKey

* feat: impl and test parseCommunityURLWithChatKey

* feat: fix and test CreateCommunityURLWithData

* feat:  impl and test parseCommunityURLWithData (not working)

* feat: UrlDataResponse as response share urls api

* feat: impl& tested ShareCommunityChannelURLWithChatKey

* feat: impl & tested ParseCommunityChannelURLWithChatKey

* fix: bring urls to new format

* feat: add regexp for community channel urls

* feat: impl & test contact urls with chatKey, Ens and data

* fix: encodeDataURL/encodeDataURL patch from Samyoul

* fix: fix unmarshalling protobufs

* fix: fix minor issues, temporary comment TestParseUserURLWithENS

* fix: allow url to contain extra `#` in the signature

* fix: check signatures with SigToPub

* chore: lint fixes

* fix: encode the signature

* feat: Check provided channelID is Uuid

* fix(share-community-url): Remove if community encrypted scope

* fix: review fixes

* fix: use proto.Unmarshal instead of json.Marshal

* feat(share-urls): Adds TagsIndices to community data

* feat: support tag indices to community url data

---------

Co-authored-by: Boris Melnik <borismelnik@status.im>
2023-07-04 17:48:52 +04:00
..
LICENSE feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
README.md feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
backward_references.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
backward_references_hq.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
bit_cost.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
bit_reader.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
brotli_bit_stream.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
compress_fragment.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
compress_fragment_two_pass.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
constants.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
context.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
decode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
dictionary.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
dictionary_hash.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
encode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
encoder_dict.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
entropy_encode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
entropy_encode_static.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
fast_log.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
find_match_length.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h5.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h6.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h10.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_composite.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_forgetful_chain.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_longest_match_quickly.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_rolling.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
histogram.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
http.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
huffman.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
literal_cost.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
memory.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
params.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
platform.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
prefix.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
prefix_dec.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
quality.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
reader.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
ringbuffer.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
state.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
static_dict.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
static_dict_lut.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
symbol_list.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
transform.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
utf8_util.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
util.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
write_bits.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
writer.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00

README.md

This package is a brotli compressor and decompressor implemented in Go. It was translated from the reference implementation (https://github.com/google/brotli) with the c2go tool at https://github.com/andybalholm/c2go.

I am using it in production with https://github.com/andybalholm/redwood.

API documentation is found at https://pkg.go.dev/github.com/andybalholm/brotli?tab=doc.