exporter

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFileTemplate = `` /* 210-byte string literal not displayed */

DefaultFileTemplate is the default file exporter template, suitable for use by the kamailio dispatchers module as a flat file.

Functions

This section is empty.

Types

type FileExporter

type FileExporter struct {
	// contains filtered or unexported fields
}

FileExporter is a dispatchers.Exporter which exports formatted dispatcher set data to a file.

func NewFileExporter

func NewFileExporter(filename string, tmpl string) (*FileExporter, error)

NewFileExporter creates a new dispatchers.Exporter which writes the dispatcher sets to a file. tmpl is optional and if it is set to the empty string, the DefaultFileTemplate will be used, which is compatible with kamailio's dispatchers module as a flat file source.

func (*FileExporter) Export

func (e *FileExporter) Export(sets []*sets.State) error

Export implements dispatchers.Exporter

Jump to

Keyboard shortcuts

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