Skip to content

slavakrampetz/tinyfilter

Repository files navigation

Building

#####Windows cmd:

cd <PROJECT-ROOT>
go build -v -o bin\tinyfilter.exe dev\tinyfilter.go

git bash:

cd <PROJECT-ROOT>
go build -v -o bin/tinyfilter.exe dev/tinyfilter.go

#####FreeBSD

cd <PROJECT-ROOT>
go build -v -o bin/tinyfilter dev/tinyfilter.go

Automate using Task (TBF)

Task, links:
  1. Task
  2. Styleguide
  3. Example web app

Testing

Remote
  1. Install go, dlv

  2. Setup remote debug in IDEA, see JetBrains blog for instructions.

    • Host: ip of remote computer
    • port: 2345
  3. Remote, build in terminal

    cd <PROJECT-ROOT>
    go build -v -o bin/tinyfilter dev/tinyfilter.go
  4. Remote, start debugger in terminal

    dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./bin/tinyfilter r
  5. Run debug config. You can run it multiple time without re-compilation.

  6. Kill Delve, other shell window

     killall -HUP dlv

Other option is running tests at remote computer. For do that, skip step 3 and use other command at step 4:

dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient test ./dev/util/exec/

Please note need set folder containing test code.

Links

  1. Echo, https://echo.labstack.com/
  2. GoByExample, https://gobyexample.com/
  3. WEB, slava: http:https://192.168.1.21:8085/

Commands

  1. Ping: test service online
  2. Reload tinyproxy: restart service
  3. Get a current status of tinyproxy
  4. Turn Youtube on/off:

Commands, how to run

About

Manage TinyProxy for filter kid web access

Resources

License

Stars

Watchers

Forks