aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Rename ServeMux to MuxAdnan Maolood2021-03-153-3/+3
|
* Remove StatusSensitiveInputAdnan Maolood2021-03-081-2/+2
|
* examples/client: Fix certificate trust checkAdnan Maolood2021-03-081-2/+2
|
* tofu: Use base64-encoded sha256 fingerprintsAdnan Maolood2021-03-061-2/+1
|
* Move LoggingMiddleware out of examples/server.goAdnan Maolood2021-03-051-45/+1
|
* Revert "certificate: Remove Subject from CreateOptions"v0.1.19Adnan Maolood2021-03-041-0/+4
| | | | This reverts commit ce649ecc66ba390a5e9f95c027a15030f90c3b36.
* certificate: Remove Subject from CreateOptionsAdnan Maolood2021-03-041-4/+0
|
* tofu: Remove expiration timestamp from known hostsAdnan Maolood2021-03-041-4/+2
|
* examples/server: Clean up LoggingMiddlewareAdnan Maolood2021-02-271-10/+8
|
* Update examples/client.goAdnan Maolood2021-02-241-2/+2
|
* Remove ResponseWriter.Close methodAdnan Maolood2021-02-241-4/+0
|
* response: Revert to using fields instead of methodsAdnan Maolood2021-02-241-5/+5
|
* examples/client: Fix display of response statusAdnan Maolood2021-02-241-1/+1
|
* examples/server: Cancel contextAdnan Maolood2021-02-241-1/+2
|
* examples/server: Add logging middlewareAdnan Maolood2021-02-241-1/+51
|
* examples/client: Use Response methodsAdnan Maolood2021-02-241-4/+4
|
* examples/auth: Use Request.TLS methodAdnan Maolood2021-02-241-4/+6
|
* Update examples/client.goAdnan Maolood2021-02-231-2/+2
|
* examples/client: Stream response bodyAdnan Maolood2021-02-231-3/+3
|
* examples/stream: SimplifyAdnan Maolood2021-02-231-23/+6
|
* Update examplesAdnan Maolood2021-02-233-3/+3
|
* examples/stream: Remove /shutdown handlerAdnan Maolood2021-02-221-16/+3
|
* examples/server: Shutdown on interrupt signalAdnan Maolood2021-02-221-1/+21
|
* examples/stream: Remove usage of FlusherAdnan Maolood2021-02-221-10/+2
|
* examples/stream: Showcase Server.Shutdown methodAdnan Maolood2021-02-211-2/+18
|
* examples: Use contextAdnan Maolood2021-02-212-2/+3
|
* Update examplesAdnan Maolood2021-02-203-48/+29
|
* Make Status a typeAdnan Maolood2021-02-201-2/+2
| | | | Using a type is better than using an integer.
* examples/client: Remove dependency on go-xdgAdnan Maolood2021-02-201-2/+8
|
* examples/client: Use contextAdnan Maolood2021-02-201-1/+2
|
* examples/server: Use certificate.StoreAdnan Maolood2021-02-191-16/+22
|
* examples: Use Server.HandlerAdnan Maolood2021-02-173-4/+7
|
* examples: Use new ResponseWriter interfaceAdnan Maolood2021-02-172-5/+5
|
* Move ResponseWriter.Flush to Flusher interfaceAdnan Maolood2021-02-171-1/+7
|
* examples/server: Use os.DirFSAdnan Maolood2021-02-171-1/+2
|
* Replace uses of ioutil with ioAdnan Maolood2021-02-161-2/+2
|
* Update examples/auth.goAdnan Maolood2021-02-161-4/+4
|
* Update examples/client.goAdnan Maolood2021-02-141-3/+3
|
* examples/client: Fix opening of known hosts fileAdnan Maolood2021-02-091-1/+1
|
* Make ResponseWriter an interfaceAdnan Maolood2021-02-092-3/+3
|
* Use plain integers to represent status codesAdnan Maolood2021-02-091-2/+2
|
* Update examplesAdnan Maolood2021-01-253-3/+3
|
* Guarantee that (*Response).Body is not nilv0.1.13Adnan Maolood2021-01-151-1/+1
|
* server: Rename Register to HandleAdnan Maolood2021-01-143-3/+3
|
* Update examplesAdnan Maolood2021-01-144-7/+10
|
* Update examples/auth.goAdnan Maolood2021-01-141-4/+4
|
* Update examples/client.goAdnan Maolood2021-01-141-5/+13
|
* tofu: RefactorHugo Wetterberg2021-01-141-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes underlying file handling and known hosts parsing. A known hosts file opened through Load() never closed the underlying file. During known hosts parsing most errors were unchecked, or just led to the line being skipped. I removed the KnownHosts type, which didn't really have a role after the refactor. The embedding of KnownHosts in KnownHosts file has been removed as it also leaked the map unprotected by the mutex. The Fingerprint type is now KnownHost and has taken over the responsibility of marshalling and unmarshalling. SetOutput now takes a WriteCloser so that we can close the underlying writer when it's replaced, or when it's explicitly closed through the new Close() function. KnownHostsFile.Add() now also writes the known host to the output if set. I think that makes sense expectation-wise for the type. Turned WriteAll() into WriteTo() to conform with the io.WriterTo interface. Load() is now Open() to better reflect the fact that a file is opened, and kept open. It can now also return errors from the parsing process. The parser does a lot more error checking, and this might be an area where I've changed a desired behaviour as invalid entries no longer are ignored, but aborts the parsing process. That could be changed to a warning, or some kind of parsing feedback. I added KnownHostsFile.TOFU() to fill the developer experience gap that was left after the client no longer knows about KnownHostsFile. It implements a basic non-interactive TOFU flow.
* Move tofu.go to a subpackagev0.1.11Adnan Maolood2021-01-101-2/+3
|
* Update examples/stream.goAdnan Maolood2021-01-101-3/+29
|