INNER CODE UNIT · Go

onMeowCreated

caohoangnam/go-clean-architecture · config/database.go:159

func onMeowCreated(m events.MeowCreatedMessage) {
	meow := domain.Meow{
		Id:        m.Id,
		Body:      m.Body,
		CreatedAt: m.CreatedAt,
	}
	if err := search.Create(context.Background(), meow); err != nil {
		log.Println(err)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…