Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data interface { // AddCustomers adds pet entries into storage. AddCustomers(ctx context.Context, customers []*pb.Customer) error // UpdateCustomers updates customers entries in storage. UpdateCustomers(ctx context.Context, customers []*pb.Customer) error // DeleteCustomers deletes customers in storage by their ID. Will not error // on IDs not found. DeleteCustomers(ctx context.Context, ids []string) error // SearchCustomers searches storage for customers entries that match the // filter. SearchCustomers(ctx context.Context, filter *pb.SearchCustomersReq) chan SearchItem }
Data represents our data storage.
type SearchItem ¶
type SearchItem struct { // Customer is the customer that matched the search filters. Customer *pb.Customer // Error indicates that there was an error. If set the channel // will close after this entry. Error error }
SearchItem is an item returned by a search.
Click to show internal directories.
Click to hide internal directories.