didtransformer

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 8 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 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