about summary refs log tree commit diff
path: root/gopkgs/kv
AgeCommit message (Collapse)AuthorFilesLines
2020-03-01 Remove default values for Nix expression parametersWilliam Carroll1-4/+1
I'm not sure if this commit breaks everything in my monorepo. I think it will. Why am I doing this? Perhaps it's a bad idea. I don't fully understand how readTree works. My ignorance is costing me hours of time spent debugging. In an effort to better understand readTree, I'm removing the default values for my Nix expression parameters, which I believe have preventing errors from surfacing.
2020-02-23 Prefer explicit path for kv.jsonWilliam Carroll1-9/+8
Paying off some tech debt. Instead of relying ./kv.json existing, which is relative to the directory from which I start a program, I'm preferring that a consumer explicitly provides this path.
2020-02-10 Support simple key-value storeWilliam Carroll2-0/+51
In order to persist my access and refresh tokens, I needed a store. I think using a database like SQLite may have been fine for this but was heavier weight than what I wanted. I decided to write a simple key-value store when the state is encoded and JSON in a file called kv.json. TODO: - Support field nesting - Support better error handling - Support parameterizing the store path (i.e. ./kv.json)