Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
Session keeps track of the states successfully submitted to Zammad
func NewSession ¶
NewSession initializes a new Session to keep track of call information sent to zammad. The result should be used as a singleton.
func (*Session) ShutdownIfEmpty ¶ added in v0.1.4
func (zs *Session) ShutdownIfEmpty()
ShutdownIfEmpty is used to short-circuit the call handling loop
func (*Session) Submit ¶
func (zs *Session) Submit(ctx context.Context, call *innovaphone.CallInSession) error
Submit sends a call to Zammad, if we are aware of it and can correctly map its state to some known Zammad state
type State ¶
type State int
State represents the call state from Zammad's perspective
Possible states for a Zammad call
func (State) MarshalJSON ¶
MarshalJSON is used by expvar
Click to show internal directories.
Click to hide internal directories.