Class Keyvalue

Implements Libp2p's Startable interface for easy reuse with async code.

Hierarchy (view full)

Implements

Constructors

Properties

_index: null | Paily
blockstore: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>

Type declaration

    Type declaration

      Type declaration

        Type declaration

          Type declaration

            Type declaration

              Type declaration

                Type declaration

                  config?: Config
                  datastore: Datastore<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}>

                  Type declaration

                    Type declaration

                      Type declaration

                        Type declaration

                          Type declaration

                            Type declaration

                              Type declaration

                                Type declaration

                                  Type declaration

                                    Type declaration

                                      manifest: Manifest
                                      replica: Replica

                                      Accessors

                                      • get creators(): {
                                            del: ((key) => Del);
                                            put: ((key, value) => Put);
                                        }
                                      • Returns {
                                            del: ((key) => Del);
                                            put: ((key, value) => Put);
                                        }

                                        • del: ((key) => Del)
                                            • (key): Del
                                            • Parameters

                                              • key: string

                                              Returns Del

                                        • put: ((key, value) => Put)
                                            • (key, value): Put
                                            • Parameters

                                              • key: string
                                              • value: any

                                              Returns Put

                                      • get selectors(): {
                                            entries: ((state) => (() => AsyncIterable<[string, any]>));
                                            get: ((state) => ((key) => Promise<undefined | {}>));
                                            keys: ((state) => (() => AsyncGenerator<string, void, unknown>));
                                            values: ((state) => (() => AsyncGenerator<undefined | {}, void, unknown>));
                                        }
                                      • Returns {
                                            entries: ((state) => (() => AsyncIterable<[string, any]>));
                                            get: ((state) => ((key) => Promise<undefined | {}>));
                                            keys: ((state) => (() => AsyncGenerator<string, void, unknown>));
                                            values: ((state) => (() => AsyncGenerator<undefined | {}, void, unknown>));
                                        }

                                        • entries: ((state) => (() => AsyncIterable<[string, any]>))
                                            • (state): (() => AsyncIterable<[string, any]>)
                                            • Parameters

                                              Returns (() => AsyncIterable<[string, any]>)

                                                • (): AsyncIterable<[string, any]>
                                                • Returns AsyncIterable<[string, any]>

                                        • get: ((state) => ((key) => Promise<undefined | {}>))
                                            • (state): ((key) => Promise<undefined | {}>)
                                            • Parameters

                                              Returns ((key) => Promise<undefined | {}>)

                                                • (key): Promise<undefined | {}>
                                                • Parameters

                                                  • key: string

                                                  Returns Promise<undefined | {}>

                                        • keys: ((state) => (() => AsyncGenerator<string, void, unknown>))
                                        • values: ((state) => (() => AsyncGenerator<undefined | {}, void, unknown>))

                                      Methods

                                      Generated using TypeDoc