Documentation
¶
Index ¶
- Constants
- func GetId(info *pb.Session) uint64
- type Store
- func (s *Store) Contains(sessionId uint64) bool
- func (s *Store) FindAll() (result []*pb.Session, err error)
- func (s *Store) FindByDetails(key, value string) (result []*pb.Session, err error)
- func (s *Store) FindByPeerId(peerId string) (result []*pb.Session, err error)
- func (s *Store) FindSessionId(sessionId uint64) (*pb.Session, error)
- func (s *Store) Insert(info *pb.Session) (uint64, error)
- func (s *Store) IsEmpty() bool
- func (s *Store) IsExternalSession(sessionId uint64) bool
- func (s *Store) IsNewer(info *pb.Session) bool
- func (s *Store) Len() int
- func (s *Store) Remove(sessionId uint64) error
- func (s *Store) Save()
- func (s *Store) SessionIds() []interface{}
Constants ¶
View Source
const TABLE = "sessions"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) FindByDetails ¶
func (*Store) FindByPeerId ¶
func (*Store) IsExternalSession ¶
func (*Store) SessionIds ¶
func (s *Store) SessionIds() []interface{}
Click to show internal directories.
Click to hide internal directories.