Skip to content

Commit 637f3c7

Browse files
committed
changes
1 parent a4e6137 commit 637f3c7

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

archive/archive.go

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Licensed under the Apache License, Version 2.0 (the "License");
2+
// you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at
4+
//
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
//
7+
// Unless required by applicable law or agreed to in writing, software
8+
// distributed under the License is distributed on an "AS IS" BASIS,
9+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
// See the License for the specific language governing permissions and
11+
// limitations under the License.
12+
13+
// Package archive provides functionality around the creation and management
14+
// of archives of HTTP responses.
15+
package archive
16+
17+
import (
18+
"net/http"
19+
)
20+
21+
type Archive struct {
22+
23+
}
24+
25+
func New(path string) *Archive {
26+
// stat the path to see if the archive exists
27+
28+
}
29+
30+
func (a *Archive) initialize() error {
31+
32+
}
33+
34+
func (a *Archive) Open() {
35+
// unzip to tmp
36+
// archive/
37+
// /bolt.db
38+
// / buckets - {chunked, unchunked}
39+
// /files/
40+
41+
}
42+
43+
func (a *Archive) Close() string
44+
// zip it up
45+
46+
}
47+
48+
func (a *Archive) Append(key string, res *http.Response) {
49+
50+
}
51+
52+
func (a *Archive) Query(key string) *http.Response{
53+
54+
}

record/record.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"net/http"
2020

2121
"github.com/boltdb/bolt"
22+
"github.com/google/martian/marbl"
2223
)
2324

2425
// Recorder is a response modifier that writes responses to a boltdb.

0 commit comments

Comments
 (0)