Versions in this module Expand all Collapse all v0 v0.5.0 Mar 28, 2026 v0.4.0 Mar 23, 2026 Changes in this version + type Config struct + Logger *slog.Logger + Port int + TelnyxPublicKey string + TwilioAuthToken string + type SMSHandler func(ctx context.Context, msg SMSMessage) error + type SMSMessage struct + Body string + From string + ID string + Provider string + RawPayload map[string]string + Timestamp time.Time + To string + type Server struct + func New(cfg Config) *Server + func (s *Server) Handler() http.Handler + func (s *Server) OnSMS(handler SMSHandler) + func (s *Server) OnVoice(handler VoiceHandler) + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + type VoiceEvent struct + CallID string + Direction string + Duration int + From string + Provider string + RawPayload map[string]string + RecordingURL string + Status string + Timestamp time.Time + To string + type VoiceHandler func(ctx context.Context, event VoiceEvent) error