Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
Account contains account information. Not all fields will always be populated; it depends on the type of account.
type Data ¶
Data is the top-level struct containing the various domains of templated data. The Generate function can take in any data but this provides a shared structure for general use.
type Parsed ¶
type Parsed struct {
// contains filtered or unexported fields
}
Parsed contains information about a template parsed via New. Technically `raw` and `funcMap` are not required to be cached here as they are part of the `template.Template` object but it is useful for tests.
type User ¶
User contains user information. FullName and Email are not always populated or may be different than the values in the Account struct; these are set on the user by an account from the primary auth method in a scope. It is possible for a user to not have an account from that auth method (in which case it will not be populated), or for the token they have used for the request to be from a different auth method, in which case it may not match what's in the Account struct.