G-Node / G-Node/gin-cli

Make all ginclient functions methods of a client struct

Open
#278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

The ginclient package should have a struct that holds a configuration and implements methods for all the functionality it supports.

As is conventional with Go packages, it could also have top-level equivalent functions that use a default client.

Subtasks:
- [ ] Client instance should handle config read/write
- [ ] Client instance should handle logging
- [ ] Configuration values for web and git (address, port) are passed as arguments to the `New...` function.
- [ ] Imports git for git and annex commands.
- [ ] Imports web for web calls/requests.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.