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
Click to show internal directories.
Click to hide internal directories.