Documentation ¶
Index ¶
- Constants
- func Run(ctx context.Context, entc *ent.Client, lg *zap.Logger, natsURL string) error
- func ZapHandler(handler string) zap.Field
- func ZapRecipe(recipe Recipe) zap.Field
- func ZapRecipeID(recipeID uuid.UUID) zap.Field
- func ZapRequestID() zap.Field
- type Ack
- type Envelope
- type List
- type Recipe
- type RequestPlanned
Constants ¶
View Source
const HandlersMarkAsPlanned = "recipes.planned.*"
View Source
const HandlersRecipeDelete = "recipes.delete.*"
View Source
const HandlersRecipeDetail = "recipes.detail.*"
View Source
const HandlersRecipeList = "recipes.list"
View Source
const HandlersRecipesUpsert = "recipes.upsert"
View Source
const StatusError = "error"
View Source
const StatusNotFound = "notfound"
View Source
const StatusSuccess = "success"
Variables ¶
This section is empty.
Functions ¶
func ZapHandler ¶
func ZapRequestID ¶
Types ¶
type Recipe ¶
type Recipe struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Planned bool `json:"planned"` CreatedAt time.Time `json:"createdAt"` }
func EntToRecipe ¶
type RequestPlanned ¶
type RequestPlanned struct {
Planned bool `json:"planned"`
}
Click to show internal directories.
Click to hide internal directories.