Documentation ¶
Overview ¶
テスト用。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// 実行可能な redis-server。
RedisPath = "redis-server"
)
Functions ¶
Types ¶
type HttpServer ¶
テスト用の HTTP サーバー。
func NewHttpServer ¶
func NewHttpServer(timeout time.Duration) (*HttpServer, error)
func (*HttpServer) AddResponse ¶
func (this *HttpServer) AddResponse(status int, header http.Header, body []byte) <-chan *http.Request
次に返させるレスポンスを与える。
type RedisServer ¶
type RedisServer struct {
// contains filtered or unexported fields
}
func NewRedisServer ¶
func NewRedisServer() (*RedisServer, error)
func (*RedisServer) Address ¶
func (this *RedisServer) Address() string
func (*RedisServer) Close ¶
func (this *RedisServer) Close()
func (*RedisServer) Pool ¶
func (this *RedisServer) Pool() *redis.Pool
Click to show internal directories.
Click to hide internal directories.