1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Start again from scratch

Former-commit-id: 02983a8b61d9fd5ff30de4967c9741ad2478a023 [formerly d55b11ab31697ca40d2d0d80f7261df3c76fc812] [formerly 5d236ead7feece2b73db56d195bdcbcc7623b081 [formerly 4433a9a3b172c82a283df36a601e6c5e581c8ff6 [formerly 52abf02847]]]
Former-commit-id: 1176ee8d4cbb8d093ba3b08046c7e93f6c0d835b [formerly f7a072e5000efd8e1b58cfb04336ae8687519d3a]
Former-commit-id: 8441f7eff180268e16a037abd2de7e07c1104926
Former-commit-id: 2640e02b72
This commit is contained in:
Zack Scholl
2017-03-22 20:49:55 -06:00
parent accc3b5f62
commit dbeea86d6a
767 changed files with 0 additions and 237638 deletions

View File

@@ -1,41 +0,0 @@
// Copyright 2012 Gary Burd
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations
// under the License.
package redis
// Error represents an error returned in a command reply.
type Error string
func (err Error) Error() string { return string(err) }
// Conn represents a connection to a Redis server.
type Conn interface {
// Close closes the connection.
Close() error
// Err returns a non-nil value when the connection is not usable.
Err() error
// Do sends a command to the server and returns the received reply.
Do(commandName string, args ...interface{}) (reply interface{}, err error)
// Send writes the command to the client's output buffer.
Send(commandName string, args ...interface{}) error
// Flush flushes the output buffer to the Redis server.
Flush() error
// Receive receives a single reply from the Redis server
Receive() (reply interface{}, err error)
}