Documentation
¶
Index ¶
- func NewSchemaError(message string) failure.Failure
- type DIDOption
- type LinkOption
- type MultihashOption
- type Reader
- func DID(opts ...DIDOption) Reader[string, did.DID]
- func DIDString(opts ...DIDOption) Reader[string, string]
- func Link(opts ...LinkOption) Reader[any, ipld.Link]
- func Literal(expected string) Reader[string, string]
- func Mapped[I, O, O2 any](reader Reader[I, O], converter func(O) (O2, failure.Failure)) Reader[I, O2]
- func Or[I, O any](readers ...Reader[I, O]) Reader[I, O]
- func Struct[T any](typ schema.Type, policy policy.Policy, opts ...bindnode.Option) Reader[any, T]
- func URI(opts ...URIOption) Reader[any, url.URL]
- type URIOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchemaError ¶
Types ¶
type LinkOption ¶
type LinkOption func(*linkCfg)
func WithCodec ¶
func WithCodec(codec uint64) LinkOption
func WithMultihashConfig ¶
func WithMultihashConfig(opts ...MultihashOption) LinkOption
func WithVersion ¶
func WithVersion(version uint64) LinkOption
type MultihashOption ¶
type MultihashOption func(*multihashConfig)
func WithAlg ¶
func WithAlg(code uint64) MultihashOption
func WithDigest ¶
func WithDigest(digest []byte) MultihashOption
Click to show internal directories.
Click to hide internal directories.