9 Commits

Author SHA1 Message Date
Benny
a7b5992662
Metadata (#251)
* recover middleware

* simplify Atoi

* metadata data prototype

* InterestingAttention

* resize itself

* Bump version to 0.9.4
Added some comments
Removed String() for Extraparams

* Add metadata test

* Fix CI

* Remove unnecessary tests

* Update file count

* use t.Run to get test case

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-07-11 19:08:32 +02:00
Benny
23bbed8ce6
Refactor review (#220)
* runnable

* convert is working

* some refactoring

* update go.mod

* fix some TODOs

* add TODO

* update go mod

* rebase onto master

* fix #234

2: 5.9s - 7.6MB
4: 26s - 6.9MB

* fix malloc tests

* fix malloc tests

* remote TODO

* add X-Real-IP #236

* Better localRawImagePath

* remove some wrong comments

* Bump version to 0.9.0

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-06-27 15:43:43 +02:00
Nova Kwok
dc4da7bae4
Add golangci/golangci-lint (#181)
* Add golangci/golangci-lint

* Fix golanglint
2023-03-18 22:24:06 +08:00
Benny
a53f0ac44a
check image size (#170)
* check image size

could be useful for #169

* Remove more deprecated ioutil lib, and fix CI problem

* Fix deps

* Write a bigger file for testing

---------

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2023-02-07 13:39:48 +08:00
Nova Kwok
7fcc0b0e5e
Fix tests. (#112)
Update .gitignore to ignore builds/ directory
2022-03-24 21:25:44 +08:00
Benny
ba11f29fe0
go 1.16 requires go.sum, thus update .gitignore, add go.sum and update travis. (#73)
https://golang.org/doc/go1.16

Module-aware mode is enabled by default, regardless of whether a go.mod file is present in the current working directory or a parent directory. More precisely, the GO111MODULE environment variable now defaults to on. To switch to the previous behavior, set GO111MODULE to auto.

Build commands like go build and go test no longer modify go.mod and go.sum by default. Instead, they report an error if a module requirement or checksum needs to be added or updated (as if the -mod=readonly flag were used). Module requirements and sums may be adjusted with go mod tidy or go get.
2021-02-18 17:10:11 +08:00
Nova Kwok
9eda9ee799
Feature: Add Compression rate on header (#59)
* Add X-Compression-Rate on response header

* add test case for compression rate, change logging and other improvements

* move config to config.go, add header for safari and proxyMode, logging improvement

* update gitignore for remote-raw and coverage.txt

* Refine log level
2020-11-27 15:41:03 +08:00
Benny~
c0eabe3bc1
add gitignore 2020-02-09 14:32:29 +08:00
n0vad3v
6b5f1e6e92
Init 2020-02-09 12:21:51 +08:00