properties

package
v0.0.0-...-f212135 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPropertiesParams

type GetPropertiesParams struct {
	Offset int32
	Limit  int32
}

func ParseQueryParams

func ParseQueryParams(r *http.Request) (GetPropertiesParams, error)

type GetPropertiesResponse

type GetPropertiesResponse struct {
	Properties []database2.ListPropertyListingsRow
	Total      int64
}

type Handler

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

func NewPropertiesHandler

func NewPropertiesHandler(store database2.Store, aiClient *api.Client) *Handler

func (*Handler) GetProperties

func (h *Handler) GetProperties(w http.ResponseWriter, r *http.Request)

func (*Handler) HandlePropertySearch

func (h *Handler) HandlePropertySearch(w http.ResponseWriter, r *http.Request)

type SearchRequest

type SearchRequest struct {
	Query string `json:"query"`
}

Jump to

Keyboard shortcuts

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