surveys

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const NPSResponseCollectionName = "nps_response"

NPSResponseCollectionName firestore collection name where nps responses are stored

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceSurveyImpl

type ServiceSurveyImpl struct {
	Repository database.Repository
	// contains filtered or unexported fields
}

ServiceSurveyImpl is an surveys service

func NewService

func NewService(repository database.Repository) *ServiceSurveyImpl

NewService initializes a surveys service

func (ServiceSurveyImpl) RecordNPSResponse

func (s ServiceSurveyImpl) RecordNPSResponse(ctx context.Context, input dto.NPSInput) (bool, error)

RecordNPSResponse ...

type ServiceSurveys

type ServiceSurveys interface {
	RecordNPSResponse(ctx context.Context, input dto.NPSInput) (bool, error)
}

ServiceSurveys defines the interactions with the surveys service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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