samplegenerator

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ID specifies the ID of the generator.
	ID = "https://w3id.org/test#v1"

	// Namespace specifies the namespace of the generator.
	Namespace = "did:test"

	// Version specifies the version of the generator.
	Version = uint64(1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	*didorbgenerator.Generator
}

Generator implements a generator used by tests. It also demonstrates how to extend an existing generator implementation in order to support future versions.

func New

func New() *Generator

New returns a new test generator.

Jump to

Keyboard shortcuts

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