registry

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package registry provides access to existing presets. Every preset is required to call `Register` in order to become discoverable in the registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(name string) gnomock.Preset

Find returns a preset registered under the provided name, or nil if such name is not registered.

func Register

func Register(name string, p presetFactory)

Register makes the provided preset discoverable by the provided name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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