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

Function GetFollowerHandler

_examples/bootstrapper/routes/follower.go:8–11  ·  view source on GitHub ↗

GetFollowerHandler handles the GET: /follower/{id}

(ctx iris.Context)

Source from the content-addressed store, hash-verified

6
7// GetFollowerHandler handles the GET: /follower/{id}
8func GetFollowerHandler(ctx iris.Context) {
9 id, _ := ctx.Params().GetInt64("id")
10 ctx.Writef("from "+ctx.GetCurrentRoute().Path()+" with ID: %d", id)
11}

Callers

nothing calls this directly

Calls 5

ParamsMethod · 0.80
WritefMethod · 0.80
GetCurrentRouteMethod · 0.80
PathMethod · 0.65
GetInt64Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…