View Source Smokestack.Template protocol (smokestack v0.9.2)

A protocol for generating values from templates.

Summary

Types

t()

All the types that implement this protocol.

Functions

Generate a value from the template.

Initialise the template, if required.

Types

mapper()

@type mapper() :: nil | (any() -> any())

t()

@type t() :: term()

All the types that implement this protocol.

Functions

generate(template, record, options)

@spec generate(t(), map(), keyword()) :: any()

Generate a value from the template.

init(template)

@spec init(t()) :: t()

Initialise the template, if required.