code: func NewSession(guard *secure.Guard) Session {
  	return &session{
  		mutex:       &sync.Mutex{},
  		sessionType: apitypes.NotLoggedIn,
  		guard:       guard,
  	}
  }
docs: // NewSession returns the default implementation of the Session interface
  // for a user or machine depending on the passed type.