Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
GetSession is a common func for all Cache implementations and retrieves a Session in the cache.
Types ¶
type Cache ¶
type Cache interface { SetStak(key string, value kion.STAK) error GetStak(key string) (kion.STAK, bool, error) SetSession(value kion.Session) error GetSession() (kion.Session, bool, error) }
Cache is an interface for storing and receiving data.
type NullCache ¶
type NullCache struct {
// contains filtered or unexported fields
}
NullCache implements the Cache interface and does nothing.
func NewNullCache ¶
NewNullCache creates a new NullCache.
func (*NullCache) GetSession ¶
GetSession implements the Cache interface for NullCache and wraps a common function for retrieving session data.
func (*NullCache) SetSession ¶
SetSession implements the Cache interface for NullCache and wraps a common function for storing session data.
type RealCache ¶
type RealCache struct {
// contains filtered or unexported fields
}
RealCache is our cache object for passing the keychain to receiver methods.
func (*RealCache) GetSession ¶
GetSession implements the Cache interface for RealCache and wraps a common function for retrieving session data.
func (*RealCache) SetSession ¶
SetSession implements the Cache interface for RealCache and wraps a common function for storing session data.