MCPcopy Create free account
hub / github.com/kataras/iris / list

Function list

_examples/database/sqlx/main.go:162–172  ·  view source on GitHub ↗
(db *sql.DB)

Source from the content-addressed store, hash-verified

160}
161
162func list(db *sql.DB) iris.Handler {
163 return func(ctx iris.Context) {
164 events, err := listEvents(ctx, db)
165 if err != nil {
166 errors.Internal.LogErr(ctx, err)
167 return
168 }
169
170 ctx.JSON(events)
171 }
172}
173
174func getByID(db *sql.DB) iris.Handler {
175 return func(ctx iris.Context) {

Callers 1

mainFunction · 0.70

Calls 3

listEventsFunction · 0.85
LogErrMethod · 0.80
JSONMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…