Ejemplo n.º 1
0
//would want this to be a []byte or even a some sort of binary stream
func (c Connection) Put(data string) (string, error) {

	var uuid, _ = utils.GenerateV4String()
	err := storage.Store(uuid, data, c.filename)

	return uuid, err
}
Ejemplo n.º 2
0
func (c Connection) Post(uuid string, data string) error {

	storage.Store(uuid, data, c.filename)
	return nil
}