gifs/api

Paddy 2014-10-17 Parent:08ec88016e2f

4:1bbbe113f599 Go to Latest

gifs/api/LICENSE

Upload is no longer async, memstorage is parallel-safe. Upload no longer needs to be run async (it can be run inside a goroutine), so it now returns stuff instead of taking a channel as an argument. This will make it easier to implement, as all the async stuff is an abstraction above, and therefore doesn't need to be worried about for each reimplementation. The memstorage type is no longer exported and can now be safely used by multiple goroutines, thanks to the sync package.

History
paddy@0 1 The MIT License (MIT)
paddy@0 2
paddy@0 3 Copyright (c) 2014 Second Bit, LLC
paddy@0 4
paddy@0 5 Permission is hereby granted, free of charge, to any person obtaining a copy of
paddy@0 6 this software and associated documentation files (the "Software"), to deal in
paddy@0 7 the Software without restriction, including without limitation the rights to
paddy@0 8 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
paddy@0 9 the Software, and to permit persons to whom the Software is furnished to do so,
paddy@0 10 subject to the following conditions:
paddy@0 11
paddy@0 12 The above copyright notice and this permission notice shall be included in all
paddy@0 13 copies or substantial portions of the Software.
paddy@0 14
paddy@0 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
paddy@0 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
paddy@0 17 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
paddy@0 18 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
paddy@0 19 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
paddy@0 20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.