Documentation ¶
Index ¶
- Constants
- func ParseDuration(s string) (time.Duration, error)
- type DataSource
- type Journal
- type JournalEntry
- type JournalIndex
- type Request
- type TemplateDataSource
- type TemplatingData
- type Templator
- func (templator *Templator) GetSupportedMethodMap() map[string]interface{}
- func (t *Templator) NewTemplatingData(requestDetails *models.RequestDetails, literals *models.Literals, ...) *TemplatingData
- func (*Templator) ParseTemplate(responseBody string) (*raymond.Template, error)
- func (t *Templator) RenderTemplate(tpl *raymond.Template, requestDetails *models.RequestDetails, ...) (string, error)
Constants ¶
View Source
const REQUEST_BODY_HELPER = "requestBody"
Variables ¶
This section is empty.
Functions ¶
func ParseDuration ¶ added in v0.17.2
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Types ¶
type DataSource ¶ added in v1.7.0
func NewCsvDataSource ¶ added in v1.7.0
func NewCsvDataSource(fileName, fileContent string) (*DataSource, error)
func (DataSource) GetDataSourceView ¶ added in v1.7.0
func (dataSource DataSource) GetDataSourceView() (v2.CSVDataSourceView, error)
type JournalEntry ¶ added in v1.8.0
type JournalEntry struct {
// contains filtered or unexported fields
}
type JournalIndex ¶ added in v1.8.0
type JournalIndex struct {
// contains filtered or unexported fields
}
type TemplateDataSource ¶ added in v1.7.0
type TemplateDataSource struct { DataSources map[string]*DataSource RWMutex sync.RWMutex }
func NewTemplateDataSource ¶ added in v1.7.0
func NewTemplateDataSource() *TemplateDataSource
func (*TemplateDataSource) DeleteDataSource ¶ added in v1.7.0
func (templateDataSource *TemplateDataSource) DeleteDataSource(dataSourceName string)
func (*TemplateDataSource) GetAllDataSources ¶ added in v1.7.0
func (templateDataSource *TemplateDataSource) GetAllDataSources() map[string]*DataSource
func (*TemplateDataSource) SetDataSource ¶ added in v1.7.0
func (templateDataSource *TemplateDataSource) SetDataSource(dataSourceName string, dataSource *DataSource)
type TemplatingData ¶
type Templator ¶ added in v0.14.2
type Templator struct { SupportedMethodMap map[string]interface{} TemplateHelper templateHelpers }
func NewTemplator ¶ added in v0.14.2
func NewTemplator() *Templator
func (*Templator) GetSupportedMethodMap ¶ added in v1.5.0
func (*Templator) NewTemplatingData ¶ added in v1.5.0
func (*Templator) ParseTemplate ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.