types.go 479 B

123456789101112
  1. package relay
  2. import "github.com/mk6i/open-oscar-server/state"
  3. // SessionRetriever defines a method for retrieving an active session
  4. // associated with a given screen name.
  5. type SessionRetriever interface {
  6. // RetrieveSession returns the session associated with the given screen name,
  7. // or nil if no active session exists. Returns the Session object if there
  8. // are active instances with complete signon.
  9. RetrieveSession(screenName state.IdentScreenName) *state.Session
  10. }