registry

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(name string) da.DataAvailabilityLayerClient

GetClient returns client identified by name.

func Register added in v0.7.0

func Register(name string, constructor func() da.DataAvailabilityLayerClient) error

Register adds a Data Availability Layer Client to registry.

If name was previously used in the registry, error is returned.

func RegisteredClients

func RegisteredClients() []string

RegisteredClients returns names of all DA clients in registry.

Types

type ErrAlreadyRegistered added in v0.7.0

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

ErrAlreadyRegistered is used when user tries to register DA using a name already used in registry.

func (*ErrAlreadyRegistered) Error added in v0.7.0

func (e *ErrAlreadyRegistered) Error() string

Jump to

Keyboard shortcuts

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