Preparing search index...
The search index is not available
API
API
<internal>
Corestore
Class Corestore
Hierarchy
TypedEmitter
<
CorestoreEvents
>
Corestore
Index
Constructors
constructor
Properties
cores
Methods
close
get
namespace
ready
replicate
Constructors
constructor
new
Corestore
(
storage
,
options
?
)
:
Corestore
Parameters
storage
:
HypercoreStorage
Optional
options
:
{
poolSize
?:
number
;
primaryKey
?:
Uint8Array
|
Buffer
;
}
Optional
pool
Size
?:
number
Optional
primary
Key
?:
Uint8Array
|
Buffer
Returns
Corestore
Properties
cores
cores
:
Map
<
string
,
Hypercore
<
ValueEncoding
,
Buffer
>
>
Methods
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
get
get
(
key
)
:
Hypercore
<
ValueEncoding
,
Buffer
>
Parameters
key
:
Uint8Array
|
Buffer
Returns
Hypercore
<
ValueEncoding
,
Buffer
>
get
(
options
)
:
Hypercore
<
ValueEncoding
,
Buffer
>
Parameters
options
:
Omit
<
HypercoreOptions
<
"binary"
,
undefined
>
,
"keyPair"
>
&
{
name
:
string
;
}
Returns
Hypercore
<
ValueEncoding
,
Buffer
>
get
(
options
)
:
Hypercore
<
ValueEncoding
,
Buffer
>
Parameters
options
:
never
Returns
Hypercore
<
ValueEncoding
,
Buffer
>
get
(
options
)
:
Hypercore
<
ValueEncoding
,
Buffer
>
Parameters
options
:
Omit
<
HypercoreOptions
<
"binary"
,
undefined
>
,
"key"
|
"keyPair"
>
&
{
key
?:
string
|
Buffer
;
keyPair
:
{
publicKey
:
Buffer
;
secretKey
?:
null
|
Buffer
;
}
;
sparse
?:
boolean
;
}
Returns
Hypercore
<
ValueEncoding
,
Buffer
>
namespace
namespace
(
name
)
:
Corestore
Parameters
name
:
string
Returns
Corestore
ready
ready
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
replicate
replicate
(
stream
,
opts
?
)
:
ReplicationStream
Parameters
stream
:
any
Optional
opts
:
any
Returns
ReplicationStream
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cores
Methods
close
get
namespace
ready
replicate
API
Loading...