client

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetOffChainData(ctx context.Context, hash common.Hash) ([]byte, error)
	ListOffChainData(ctx context.Context, hashes []common.Hash) (map[common.Hash][]byte, error)
	SignSequence(signedSequence types.SignedSequence) ([]byte, error)
}

Client is the interface that defines the implementation of all the endpoints

func New

func New(url string) Client

New returns a client ready to be used

type Factory added in v0.0.4

type Factory interface {
	New(url string) Client
}

Factory interface for the client factory

func NewFactory added in v0.0.4

func NewFactory() Factory

NewFactory is the constructor of factory

Jump to

Keyboard shortcuts

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