services

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallService

type CallService struct {
	pbx3cxv1connect.UnimplementedCallServiceHandler

	*config.Providers
	// contains filtered or unexported fields
}

func New

func New(p *config.Providers) (*CallService, error)

func (*CallService) CreateInboundNumber added in v1.2.0

func (svc *CallService) CreateInboundNumber(ctx context.Context, req *connect.Request[pbx3cxv1.CreateInboundNumberRequest]) (*connect.Response[pbx3cxv1.CreateInboundNumberResponse], error)

func (*CallService) CreateOverwrite

func (svc *CallService) CreateOverwrite(ctx context.Context, req *connect.Request[pbx3cxv1.CreateOverwriteRequest]) (*connect.Response[pbx3cxv1.CreateOverwriteResponse], error)

func (*CallService) DeleteInboundNumber added in v1.2.0

func (svc *CallService) DeleteInboundNumber(ctx context.Context, req *connect.Request[pbx3cxv1.DeleteInboundNumberRequest]) (*connect.Response[pbx3cxv1.DeleteInboundNumberResponse], error)

func (*CallService) DeleteOverwrite

func (svc *CallService) DeleteOverwrite(ctx context.Context, req *connect.Request[pbx3cxv1.DeleteOverwriteRequest]) (*connect.Response[pbx3cxv1.DeleteOverwriteResponse], error)

func (*CallService) GetLogsForCustomer

func (svc *CallService) GetLogsForCustomer(ctx context.Context, req *connect.Request[pbx3cxv1.GetLogsForCustomerRequest]) (*connect.Response[pbx3cxv1.GetLogsForCustomerResponse], error)

func (*CallService) GetLogsForDate

func (svc *CallService) GetLogsForDate(ctx context.Context, req *connect.Request[pbx3cxv1.GetLogsForDateRequest]) (*connect.Response[pbx3cxv1.GetLogsForDateResponse], error)

func (*CallService) GetOnCall

func (svc *CallService) GetOnCall(ctx context.Context, req *connect.Request[pbx3cxv1.GetOnCallRequest]) (*connect.Response[pbx3cxv1.GetOnCallResponse], error)

func (*CallService) GetOverwrite

func (svc *CallService) GetOverwrite(ctx context.Context, req *connect.Request[pbx3cxv1.GetOverwriteRequest]) (*connect.Response[pbx3cxv1.GetOverwriteResponse], error)

func (*CallService) GetUserIdForAgent added in v1.6.1

func (svc *CallService) GetUserIdForAgent(ctx context.Context, agent string) string

func (*CallService) ListInboundNumber added in v1.2.2

func (svc *CallService) ListInboundNumber(ctx context.Context, req *connect.Request[pbx3cxv1.ListInboundNumberRequest]) (*connect.Response[pbx3cxv1.ListInboundNumberResponse], error)

func (*CallService) RecordCall

func (svc *CallService) RecordCall(ctx context.Context, req *connect.Request[pbx3cxv1.RecordCallRequest]) (*connect.Response[emptypb.Empty], error)

func (*CallService) RecordCallHandler

func (svc *CallService) RecordCallHandler(w http.ResponseWriter, req *http.Request)

func (*CallService) SearchCallLogs

func (svc *CallService) SearchCallLogs(ctx context.Context, req *connect.Request[pbx3cxv1.SearchCallLogsRequest]) (*connect.Response[pbx3cxv1.SearchCallLogsResponse], error)

func (*CallService) UpdateInboundNumber added in v1.2.0

func (svc *CallService) UpdateInboundNumber(ctx context.Context, req *connect.Request[pbx3cxv1.UpdateInboundNumberRequest]) (*connect.Response[pbx3cxv1.UpdateInboundNumberResponse], error)

type OnCallCache added in v1.6.1

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

func NewOnCallCache added in v1.6.1

func NewOnCallCache(ctx context.Context, inboundNumber string, providers *config.Providers) (*OnCallCache, error)

func (*OnCallCache) Current added in v1.6.1

func (cache *OnCallCache) Current() *pbx3cxv1.GetOnCallResponse

func (*OnCallCache) Trigger added in v1.6.1

func (cache *OnCallCache) Trigger()

type VoiceMailService added in v1.4.1

type VoiceMailService struct {
	pbx3cxv1connect.UnimplementedVoiceMailServiceHandler
	// contains filtered or unexported fields
}

func NewVoiceMailService added in v1.4.1

func NewVoiceMailService(ctx context.Context, providers *config.Providers, manager *voicemail.Manager) (*VoiceMailService, error)

func (*VoiceMailService) CreateMailbox added in v1.4.1

func (svc *VoiceMailService) CreateMailbox(ctx context.Context, req *connect.Request[pbx3cxv1.CreateMailboxRequest]) (*connect.Response[pbx3cxv1.CreateMailboxResponse], error)

func (*VoiceMailService) DeleteMailbox added in v1.5.1

func (svc *VoiceMailService) DeleteMailbox(ctx context.Context, req *connect.Request[pbx3cxv1.DeleteMailboxRequest]) (*connect.Response[emptypb.Empty], error)

func (*VoiceMailService) GetVoiceMail added in v1.5.0

func (svc *VoiceMailService) GetVoiceMail(ctx context.Context, req *connect.Request[pbx3cxv1.GetVoiceMailRequest]) (*connect.Response[pbx3cxv1.GetVoiceMailResponse], error)

func (*VoiceMailService) ListMailboxes added in v1.4.1

func (svc *VoiceMailService) ListMailboxes(ctx context.Context, req *connect.Request[pbx3cxv1.ListMailboxesRequest]) (*connect.Response[pbx3cxv1.ListMailboxesResponse], error)

func (*VoiceMailService) ListVoiceMails added in v1.4.1

func (svc *VoiceMailService) ListVoiceMails(ctx context.Context, req *connect.Request[pbx3cxv1.ListVoiceMailsRequest]) (*connect.Response[pbx3cxv1.ListVoiceMailsResponse], error)

func (*VoiceMailService) MarkVoiceMails added in v1.4.1

func (svc *VoiceMailService) MarkVoiceMails(ctx context.Context, req *connect.Request[pbx3cxv1.MarkVoiceMailsRequest]) (*connect.Response[pbx3cxv1.MarkVoiceMailsResponse], error)

func (*VoiceMailService) ServeRecording added in v1.5.0

func (svc *VoiceMailService) ServeRecording(w http.ResponseWriter, r *http.Request)

func (*VoiceMailService) UpdateMailbox added in v1.5.1

func (svc *VoiceMailService) UpdateMailbox(ctx context.Context, req *connect.Request[pbx3cxv1.UpdateMailboxRequest]) (*connect.Response[pbx3cxv1.UpdateMailboxResponse], error)

Jump to

Keyboard shortcuts

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