Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { CreateSushi(ctx context.Context, s *Sushi) error GetSushis(ctx context.Context) ([]Sushi, error) DeleteSushi(ctx context.Context, ID string) error UpdateSushi(ctx context.Context, ID string, s *Sushi) error GetSushiByID(ctx context.Context, ID string) (*Sushi, error) }
Repository provides access to the sushi storage
type Sushi ¶
type Sushi struct { ID string `json:"id"` ImageNumber string `json:"imageNumber,omitempty"` Name string `json:"name,omitempty"` Ingredients []string `json:"ingredients,omitempty"` CreatedAt *time.Time `json:"-"` UpdatedAt *time.Time `json:"-"` }
Sushi defines the properties of a sushi to be listed
Click to show internal directories.
Click to hide internal directories.