Documentation ¶
Overview ¶
Package fieldbuilder converts astorg types into digium busy lamp fields.
This package is experimental and is subject to breaking changes.
Index ¶
- type Builder
- func (builder *Builder) Add(fields ...digium.Field) (next int)
- func (builder *Builder) AddPerson(location string, index int, people ...astorg.Person) (next int)
- func (builder *Builder) AddPhoneRole(location string, index int, roles ...astorg.PhoneRole) (next int)
- func (builder *Builder) Fields() digium.FieldList
- func (builder *Builder) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder constructs a slice of digium busy lamp field entries.
An empty field builder is ready for use.
func (*Builder) AddPerson ¶
AddPerson adds a busy lamp field entry for each person to the builder, starting at index. It returns the next index.
func (*Builder) AddPhoneRole ¶
func (builder *Builder) AddPhoneRole(location string, index int, roles ...astorg.PhoneRole) (next int)
AddPhoneRole adds a busy lamp field entry for each phone role to the builder, starting at index. It returns the next index.
Click to show internal directories.
Click to hide internal directories.