Refactor things

- Remove separate auth/logging and merge them into transport.go
- Add helper function for http handlers
This commit is contained in:
r 2020-11-22 17:29:58 +00:00
parent 37b1c75045
commit fa27d9c6eb
11 changed files with 547 additions and 1664 deletions

View file

@ -101,7 +101,7 @@ func Parse(r io.Reader) (c *config, err error) {
case "log_file":
c.LogFile = val
default:
return nil, errors.New("invliad config key " + key)
return nil, errors.New("invalid config key " + key)
}
}