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

Method Get

sessions/session.go:62–64  ·  view source on GitHub ↗

Get returns a value based on its "key".

(key string)

Source from the content-addressed store, hash-verified

60
61// Get returns a value based on its "key".
62func (s *Session) Get(key string) interface{} {
63 return s.provider.db.Get(s.sid, key)
64}
65
66// Decode binds the given "outPtr" to the value associated to the provided "key".
67func (s *Session) Decode(key string, outPtr interface{}) error {

Callers 8

GetStringMethod · 0.95
GetIntMethod · 0.95
GetInt64Method · 0.95
GetUint64Method · 0.95
GetFloat32Method · 0.95
GetFloat64Method · 0.95
GetBooleanMethod · 0.95
GetBooleanDefaultMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected