File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"net/http"
20
20
21
21
"github.com/boltdb/bolt"
22
+ "github.com/google/martian/marbl"
22
23
)
23
24
24
25
// Recorder is a response modifier that writes responses to a boltdb.
You can’t perform that action at this time.
0 commit comments