queries

package
v0.0.0-...-a869338 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryContext

type QueryContext interface {
	SearchPerson() SearchPerson
	ViewPerson() ViewPerson
	ViewPersonByEmail() ViewPersonByEmail
	ViewHouseholdByPerson() ViewHouseholdByPerson
}

type SearchPerson

type SearchPerson interface {
	Execute(query SearchPersonQuery) (SearchPersonResult, queries.QueryErrorDetail)
}

type SearchPersonQuery

type SearchPersonQuery struct {
	LastID     string `json:"last_id"`
	NamePrefix string `json:"name_prefix"`
	Limit      int    `json:"limit"`
}

type SearchPersonResult

type SearchPersonResult struct {
	Data []dto.Person `json:"data"`
}

type ViewHouseholdByPerson

type ViewHouseholdByPerson interface {
	Execute(query ViewHouseholdByPersonQuery) (ViewHouseholdByPersonResult, queries.QueryErrorDetail)
}

type ViewHouseholdByPersonQuery

type ViewHouseholdByPersonQuery struct {
	PersonID string
}

type ViewHouseholdByPersonResult

type ViewHouseholdByPersonResult queries.QueryResult[dto.Household]

type ViewPerson

type ViewPerson interface {
	Execute(query ViewPersonQuery) (ViewPersonResult, queries.QueryErrorDetail)
}

type ViewPersonByEmail

type ViewPersonByEmail interface {
	Execute(query ViewPersonByEmailQuery) (ViewPersonResult, queries.QueryErrorDetail)
}

type ViewPersonByEmailQuery

type ViewPersonByEmailQuery struct {
	Email string
}

type ViewPersonQuery

type ViewPersonQuery struct {
	ID string
}

type ViewPersonResult

type ViewPersonResult queries.QueryResult[dto.Person]

Jump to

Keyboard shortcuts

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