refactor(mlablocate): use interface, remove unused fields, add docs (#383)

This is a very light refactoring of the mlablocate package where we do
the following things:

1. use interfaces rather depending on other pkgs where possible

2. only keep the fields we really need in the result struct

3. write more comprehensive docs (including todo-next comments)

While there, use `neubot/dash` rather than `ndt7` for the tests.
This commit is contained in:
Simone Basso 2021-06-15 18:57:52 +02:00 committed by GitHub
commit 2613579768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 16 deletions

View file

@ -17,7 +17,7 @@ func TestWithoutProxy(t *testing.T) {
log.Log,
"miniooni/0.1.0-dev",
)
result, err := client.Query(context.Background(), "ndt7")
result, err := client.Query(context.Background(), "neubot/dash")
if err != nil {
t.Fatal(err)
}