datasource

package
v0.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

W3bstream Supported Data Availability (DA) Infra

This folder contains the necessary components and interfaces to support DA infrastructure in W3bstream.

Contents

Contributing

We welcome contributions to expand the range of Data Availability implementations supported by W3bstream. If you have developed a new implementation, please follow these steps to contribute:

  1. Fork the Repository: Create a personal copy of the repository by forking it.
  2. Create a Branch: Create a new branch for your implementation.
  3. Implement and Test: Develop your implementation and ensure it passes all tests.
  4. Submit a Pull Request (PR): Once your implementation is complete, submit a PR to the main repository.

We will review your PR and merge it upon approval. Thank you for contributing to W3bstream!

Getting Started

To get started with the existing implementations, you can explore the datasource.go and postgres.go files for interface definitions and examples.

## Contact

For any questions or support, please reach out to our team on Discord or open an issue in this repository.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource interface {
	Retrieve(projectID uint64, taskID common.Hash) (*task.Task, error)
}

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(dsn string) (*Postgres, error)

func (*Postgres) Retrieve added in v0.16.0

func (p *Postgres) Retrieve(projectID uint64, taskID common.Hash) (*task.Task, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL