store

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer interface {
	List(ctx *gofr.Context, collection string, filter Filter) ([]Model, error)
	Create(ctx *gofr.Context, collection string, customer Model) error
	Update(ctx *gofr.Context, collection string, customer Model) error
	Delete(ctx *gofr.Context, collection string, customer Model) error
}

type Filter

type Filter struct {
	ID   string
	Name string
}

Filter specifies the fields by which you can search a customer

func (Filter) GenSolrQuery

func (f Filter) GenSolrQuery() string

GenSolrQuery makes a solr query based on the filters passed

type Model

type Model struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	DateOfBirth string `json:"dateOfBirth"`
}

Model represents the entity 'Customer'

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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