surveys

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImplSurveys

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

ImplSurveys is the Surveys service implementation

func NewSurveys

func NewSurveys(infrastructure infrastructure.Interactor) *ImplSurveys

NewSurveys initializes a Surveys service instance

func (*ImplSurveys) RecordNPSResponse

func (f *ImplSurveys) RecordNPSResponse(
	ctx context.Context,
	input dto.NPSInput,
) (bool, error)

RecordNPSResponse records the NPS response

type UsecaseSurveys

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

UsecaseSurveys defines surveys service usecases interface

Jump to

Keyboard shortcuts

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