handlers

package
v0.0.0-...-7df3c15 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CMD *exec.Cmd
View Source
var ConversationStarTime time.Time

Functions

func ContinueConversation

func ContinueConversation()

func DeleteRecordedAudioFiles

func DeleteRecordedAudioFiles(path string)

func EndConversation

func EndConversation(w http.ResponseWriter, r *http.Request)

func Foo

func Foo(newtimer *time.Timer)

func GetSpeakerFromDiartOutput

func GetSpeakerFromDiartOutput(filePath string, audioStart float64) (string, error)

func GetText

func GetText(filePath string) (string, error)

func PlayAudio

func PlayAudio(filePath string) (time.Time, error)

func RecordedAudio

func RecordedAudio(w http.ResponseWriter, r *http.Request)

func Start

func Start()

func StartConversation

func StartConversation(w http.ResponseWriter, r *http.Request)

func SubtractTime

func SubtractTime(time1 time.Time, time2 time.Time) (int, error)

func Wav

func Wav(w http.ResponseWriter, r *http.Request)

Types

type AudioHandlers

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

func (AudioHandlers) SoundDetection

func (audio AudioHandlers) SoundDetection(w http.ResponseWriter, r *http.Request)

type AudioText

type AudioText struct {
	Text string `json:"text"`
}

type AuthenHandlers

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

func (AuthenHandlers) Delete

func (authenHandler AuthenHandlers) Delete(w http.ResponseWriter, r *http.Request)

Delete endpoint to delete user

func (AuthenHandlers) Login

func (authenHandler AuthenHandlers) Login(w http.ResponseWriter, r *http.Request)

func (AuthenHandlers) ReadUser

func (authenHandler AuthenHandlers) ReadUser(w http.ResponseWriter, r *http.Request)

func (AuthenHandlers) Signup

func (authenHandler AuthenHandlers) Signup(w http.ResponseWriter, r *http.Request)

func (AuthenHandlers) Update

func (authenHandler AuthenHandlers) Update(w http.ResponseWriter, r *http.Request)

func (AuthenHandlers) VerifyEmail

func (authenHandler AuthenHandlers) VerifyEmail(w http.ResponseWriter, r *http.Request)

type Detection

type Detection struct {
	Sound string `json:"sound"`
}

type EndConv

type EndConv struct {
	End_conversation bool `json:"end_conversation"`
}

type EndDetection

type EndDetection struct {
	EndDetection bool `json:"end_detection"`
}

type NotificationHandlers

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

func (NotificationHandlers) Create

func (notificationHandler NotificationHandlers) Create(w http.ResponseWriter, r *http.Request)

func (NotificationHandlers) CreateNotificationInternally

func (notificationHandler NotificationHandlers) CreateNotificationInternally(notiObj *notification.Notification) error

func (NotificationHandlers) ReadByNotificationID

func (notificationHandler NotificationHandlers) ReadByNotificationID(w http.ResponseWriter, r *http.Request)

func (NotificationHandlers) ReadByUserID

func (notificationHandler NotificationHandlers) ReadByUserID(w http.ResponseWriter, r *http.Request)

type StartConv

type StartConv struct {
	Start_conversation bool   `json:"start_conversation"`
	Language           string `json:"language"`
}

Jump to

Keyboard shortcuts

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