didtransformer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Transformer)

Option is a registry instance option.

func WithBase

func WithBase(enabled bool) Option

WithBase sets optional @base context.

func WithIncludePublishedOperations added in v1.0.0

func WithIncludePublishedOperations(enabled bool) Option

WithIncludePublishedOperations sets optional include published operations flag.

func WithIncludeUnpublishedOperations added in v1.0.0

func WithIncludeUnpublishedOperations(enabled bool) Option

WithIncludeUnpublishedOperations sets optional include unpublished operations flag.

func WithKeyContext added in v0.7.0

func WithKeyContext(ctx map[string]string) Option

WithKeyContext sets optional key context.

func WithMethodContext

func WithMethodContext(ctx []string) Option

WithMethodContext sets optional method context(s).

type Transformer

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

Transformer is responsible for transforming internal to external document.

func New

func New(opts ...Option) *Transformer

New creates a new DID Transformer.

func (*Transformer) TransformDocument

TransformDocument takes internal resolution model and transformation info and creates external representation of document (resolution result).

Jump to

Keyboard shortcuts

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