Commit graph

35 commits

Author SHA1 Message Date
grumbulon
a62f0b0759 upstream 2022-06-29 21:05:49 -04:00
5035898c13
Add a LICENSE
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-29 23:12:30 +02:00
98a14b1bf8 Merge logawl package into master (#10)
This PR is to bring in the new logging package for awl, I wanted to do some refinements before I opened this to upstream

logawl works in the following ways

1. It prints logs directly to std.err
1. The default log level is Info (this can be changed multiple ways)
1. It supports four log levels Error, Fatal, Info, Debug
1. It differs from the syslog package in the stdlib wherin it default to std.err you do not _need_ to define an out file (syslog for example)
1. I added a "debug" flag so now we can go through and define verbose logging through the app
5.5 I made it so we can call `Logger.debug("message")` anywhere in the query file but unless the debug flag is set to true it will not print a message (it is working as intended finally).

Co-authored-by: grumbulon <grumbulon@dismail.de>
Reviewed-on: sam/awl#10
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-06-29 22:57:03 +00:00
grumbulon
4353aa9559 Accidentally left something I was testing in..oops 2022-06-29 09:25:06 -04:00
grumbulon
f7e5a7adee Added fatal logging, made doc for package better, and some minor changes 2022-06-29 09:22:28 -04:00
be3b81029e Merge branch 'master' into master 2022-06-29 13:20:45 +00:00
5fab5a08a7 Update module github.com/stretchr/testify to v1.8.0 2022-06-29 06:00:21 -05:00
dfea8060dd Merge branch 'master' into master 2022-06-28 18:20:24 +00:00
grumbulon
6d30a5ad9b Logging works bretty good now 2022-06-28 14:11:49 -04:00
grumbulon
a36f1b8685 Added debuge flag, and added init for logawl 2022-06-28 12:12:52 -04:00
d4b8d1469f Update module github.com/urfave/cli/v2 to v2.10.3 2022-06-28 11:48:23 -04:00
f50b793931 Update module github.com/stretchr/testify to v1.7.5 2022-06-28 11:48:23 -04:00
4754097a40 Update module github.com/urfave/cli/v2 to v2.10.3 2022-06-27 21:00:34 -05:00
68c3345e9b Update module github.com/stretchr/testify to v1.7.5 2022-06-27 20:00:21 -05:00
grumbulon
68e6e54741 Accidentally reverted to old commit with dns.go 2022-06-26 14:16:38 -04:00
grumbulon
8b1a5f9147 Merge remote-tracking branch 'upstream/master'
Merging upstream into fork
2022-06-26 14:10:35 -04:00
grumbulon
6da6a55f6e Logging refinements 2022-06-26 14:01:13 -04:00
8c61f9f409 logging (#1)
Promoting branch to master

Co-authored-by: grumbulon <grumbulon@dismail.de>
Reviewed-on: #1
2022-06-26 04:07:58 +00:00
grumbulon
182ec20469 Revert "hehe off-by-one"
This reverts commit db78235ecd.

Reverting to old commit because I fucked up
2022-06-25 13:46:38 -04:00
c0c5eb4a06 Update golang.org/x/net digest to 1bab6f3 2022-06-24 18:00:22 -05:00
db78235ecd
hehe off-by-one
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-23 23:18:54 +02:00
bf06f7a3aa
I am still somehow getting paid to do this 2022-06-23 23:12:48 +02:00
027514b4cc Update golang.org/x/net digest to 263ec57 2022-06-23 07:29:27 +00:00
589b13320a Cannot defined things twice in same package (#5)
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-06-23 07:29:06 +00:00
160c89ca1e
I got paid to write this 2022-06-22 22:59:17 +02:00
ff78fa1e50 Add renovate.json 2022-06-22 11:55:52 +00:00
9b979667d6 Make everything more readable (#2)
1. I made JSON print indented instead of inline
2. I created a util package and moved `ReverseDNS` and `ResolveHTTPS` there
3. I created a new struct called Answers where all variables for the output live now, and adjusted the response struct to have the Answers struct in it. This lets us reuse the struct more instead of having variables floating around, lets us make the response more custom, offers more understandable code reuse, and makes things (I think) more readable.

Aside: you will notice the struct has little json defs. This is because struct values encode as JSON objects and can preserve the output name this way

Most of this just makes expanding on awl easier in the future.

Co-authored-by: grumbulon <grumbulon@dismail.de>
Reviewed-on: sam/awl#2
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-06-22 11:55:38 +00:00
50d7b9dc2a
Rewrite in Go :^)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-21 22:54:50 +02:00
8c11828529
lint, again
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 16:04:42 +02:00
19aac80ce7
Allow query to not be case sensitive
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 16:03:54 +02:00
a29f69fce7
fix lint
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 15:52:35 +02:00
2b7cd9ea73
Untested: add wild domain parsing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-19 15:51:14 +02:00
9415622fb9
Fix naming
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:17:15 +02:00
7a7d4ad325
Change container distro
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:14:42 +02:00
6f4ae7de65
Initial commit
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-06-18 20:11:46 +02:00