Alexander Simmerl d46b9afb79 Simplify WriteFileAtomic
We can make the implementation more robust by adjusting our assumptions
and leverage explicit file modes for syncing. Additionally we going to
assume that we want to clean up and can't really recover if thos
operations (file close and removal) fail.

* utilise file mode for majority of concerns
* improve test coverage by covering more assumptions
* signature parity with ioutil.WriteFile
* always clean up

Replaces #160
2018-03-22 19:36:24 -04:00
2017-10-30 13:01:18 -05:00
2018-03-22 19:36:24 -04:00
2018-02-02 22:31:17 -05:00
2017-04-18 17:56:05 -04:00
2018-02-19 17:05:36 -05:00
2017-11-11 11:25:30 -05:00
2017-11-09 17:42:32 -05:00
2018-02-20 22:00:20 -05:00
2018-01-02 10:53:56 -05:00
2017-10-11 12:48:05 +04:00
2018-02-09 13:31:32 +04:00
2018-02-09 13:31:32 +04:00
2018-02-27 16:01:49 +04:00
2018-02-27 16:01:49 +04:00
2017-12-06 02:05:57 -05:00
2018-02-27 16:01:49 +04:00
2017-04-18 17:56:05 -04:00
2017-12-29 10:42:02 -05:00

TMLIBS

This repo is a home for various small packages.

autofile

Autofile is file access with automatic log rotation. A group of files is maintained and rotation happens when the leading file gets too big. Provides a reader for reading from the file group.

cli

CLI wraps the cobra and viper packages and handles some common elements of building a CLI like flags and env vars for the home directory and the logger.

clist

Clist provides a linekd list that is safe for concurrent access by many readers.

common

Common provides a hodgepodge of useful functions.

db

DB provides a database interface and a number of implementions, including ones using an in-memory map, the filesystem directory structure, an implemention of LevelDB in Go, and the official LevelDB in C.

events

Events is a synchronous PubSub package.

flowrate

Flowrate is a fork of https://github.com/mxk/go-flowrate that added a SetREMA method.

log

Log is a log package structured around key-value pairs that allows logging level to be set differently for different keys.

merkle

Merkle provides a simple static merkle tree and corresponding proofs.

process

Process is a simple utility for spawning OS processes.

pubsub

PubSub is an asynchronous PubSub package.

Description
No description provided
Readme Apache-2.0 63 MiB
Languages
Go 72.6%
C 17.7%
Shell 3.2%
Python 1.6%
Makefile 1%
Other 3.7%