halaws

package
v0.0.0-...-fb315dc Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: MIT Imports: 22 Imported by: 0

README

AWS

the module allows you to make a call into AWS Connect Service in order to make a telephone call to a party as stipulated by your configs.

Standard AWS environment variables are used: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_REGION

Additionally, the following AWS Connect Environment Variables are used AWS_CONNECT_INSTANCE cb23092d-681f-49a4-b8f7-ff5c739b6c7c AWS_CONNECT_FLOW_ID 2c79a426-8194-4acc-95e8-3e67a0616308 AWS_CONNECT_SOURCE_PHONE +12165391077

Documentation

Overview

Package halaws is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(service Service, logger kitlog.Logger, ml machineLearning.Service) http.Handler

MakeHandler returns a rest http handler to send alerts.

The machine learning service can be set to nil if you do not wish to save the requests.

func MakeSendAlertEndpoint

func MakeSendAlertEndpoint(s Service) endpoint.Endpoint

Types

type MockService

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

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) ResetLastCall

func (m *MockService) ResetLastCall(chat uint32)

ResetLastCall mocks base method

func (*MockService) SendAlert

func (m *MockService) SendAlert(ctx context.Context, chatId uint32, destination, name string, variables map[string]string) error

SendAlert mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) ResetLastCall

func (mr *MockServiceMockRecorder) ResetLastCall(chat interface{}) *gomock.Call

ResetLastCall indicates an expected call of ResetLastCall

func (*MockServiceMockRecorder) SendAlert

func (mr *MockServiceMockRecorder) SendAlert(ctx, chatId, destination, name, variables interface{}) *gomock.Call

SendAlert indicates an expected call of SendAlert

type Service

type Service interface {
	SendAlert(ctx context.Context, chatId uint32, destination string, name string, variables map[string]string) error
	ResetLastCall(chat uint32)
}

func NewInstrumentService

func NewInstrumentService(counter metrics.Counter, errorCounter metrics.Counter, latency metrics.Histogram, s Service) Service

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(alert alert.Service) Service

Jump to

Keyboard shortcuts

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