@@ -7,9 +7,11 @@ import (
7
7
)
8
8
9
9
const (
10
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.DefaultNameValidTime
10
11
DefaultNameValidTime = 24 * time .Hour
11
12
)
12
13
14
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NamePublishSettings
13
15
type NamePublishSettings struct {
14
16
ValidTime time.Duration
15
17
Key string
@@ -19,15 +21,20 @@ type NamePublishSettings struct {
19
21
AllowOffline bool
20
22
}
21
23
24
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NameResolveSettings
22
25
type NameResolveSettings struct {
23
26
Cache bool
24
27
25
28
ResolveOpts []ropts.ResolveOpt
26
29
}
27
30
31
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NamePublishOption
28
32
type NamePublishOption func (* NamePublishSettings ) error
33
+
34
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NameResolveOption
29
35
type NameResolveOption func (* NameResolveSettings ) error
30
36
37
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NamePublishOptions
31
38
func NamePublishOptions (opts ... NamePublishOption ) (* NamePublishSettings , error ) {
32
39
options := & NamePublishSettings {
33
40
ValidTime : DefaultNameValidTime ,
@@ -46,6 +53,7 @@ func NamePublishOptions(opts ...NamePublishOption) (*NamePublishSettings, error)
46
53
return options , nil
47
54
}
48
55
56
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.NameResolveOptions
49
57
func NameResolveOptions (opts ... NameResolveOption ) (* NameResolveSettings , error ) {
50
58
options := & NameResolveSettings {
51
59
Cache : true ,
@@ -63,6 +71,7 @@ func NameResolveOptions(opts ...NameResolveOption) (*NameResolveSettings, error)
63
71
64
72
type nameOpts struct {}
65
73
74
+ // Deprecated: use github.com/ipfs/boxo/coreiface/options.Name
66
75
var Name nameOpts
67
76
68
77
// ValidTime is an option for Name.Publish which specifies for how long the
0 commit comments