exporter

package
v0.0.0-...-a6db137 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatCombined = Format("combined")
	FormatDirect   = Format("direct")
	FormatPBX      = Format("pbx")
)
View Source
const (
	GrandstreamDefaultIPCallAccountIdx = 0
	GrandstreamDefaultPBXAccountIdx    = 1
)

Variables

This section is empty.

Functions

func NameForEntry

func NameForEntry(entry *data.Entry, indicateActive bool, activePfx string) string

func TelefoneForEntry

func TelefoneForEntry(entry *data.Entry, resolve bool, format Format) []string

Types

type Cisco

type Cisco struct{}

func (*Cisco) Export

func (c *Cisco) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)

type CiscoPhonebook

type CiscoPhonebook struct {
	Title  string `xml:"Title"`
	Prompt string `xml:"Prompt"`
}

type Exporter

type Exporter interface {
	Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)
}

type Format

type Format string

type Generic

type Generic struct{}

func (*Generic) Export

func (g *Generic) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)

type Grandstream

type Grandstream struct{}

func (*Grandstream) Export

func (g *Grandstream) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)

type GrandstreamEntry

type GrandstreamEntry struct {
	FirstName string              `xml:"FirstName"`
	LastName  string              `xml:"LastName"`
	Phone     []*GrandstreamPhone `xml:"Phone"`
}

type GrandstreamPhone

type GrandstreamPhone struct {
	AccountIndex int    `xml:"accountindex"` // 0 to 5
	PhoneNumber  string `xml:"phonenumber"`
}

type GrandstreamPhonebook

type GrandstreamPhonebook struct {
	Entry []*GrandstreamEntry `xml:"Contact"`
}

type Snom

type Snom struct{}

func (*Snom) Export

func (s *Snom) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)

type VCard

type VCard struct{}

func (*VCard) Export

func (v *VCard) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)
type Yealink struct{}

func (*Yealink) Export

func (y *Yealink) Export(entries []*data.Entry, format Format, activePfx string, resolve, indicateActive, filterInactive, debug bool) ([]byte, error)

Jump to

Keyboard shortcuts

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