Documentation
¶
Overview ¶
Package sessions is used during indexation to start/stop a session an speed-up the process
Index ¶
- type BenchBatcher
- type DAO
- type MemoryBatcher
- type SessionBatcher
- type SessionMemoryStore
- func (s *SessionMemoryStore) CleanSessions() error
- func (s *SessionMemoryStore) DeleteSession(session *tree.IndexationSession) error
- func (s *SessionMemoryStore) PutSession(session *tree.IndexationSession) error
- func (s *SessionMemoryStore) ReadSession(sessionUuid string) (*tree.IndexationSession, SessionBatcher, error)
- type StoredEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BenchBatcher ¶
type BenchBatcher struct {
// contains filtered or unexported fields
}
func (*BenchBatcher) Notify ¶
func (bb *BenchBatcher) Notify(topic string, msg interface{})
type DAO ¶
type DAO interface {
PutSession(session *tree.IndexationSession) error
ReadSession(sessionUuid string) (*tree.IndexationSession, SessionBatcher, error)
DeleteSession(session *tree.IndexationSession) error
CleanSessions() error
}
type MemoryBatcher ¶
type MemoryBatcher struct {
// contains filtered or unexported fields
}
func (*MemoryBatcher) Notify ¶
func (b *MemoryBatcher) Notify(topic string, msg interface{})
type SessionBatcher ¶
type SessionBatcher interface {
Notify(topic string, msg interface{})
Flush(ctx context.Context, dao index.DAO)
}
func GetBenchSessionBatcher ¶
func GetBenchSessionBatcher(b SessionBatcher) SessionBatcher
type SessionMemoryStore ¶
func NewSessionMemoryStore ¶
func NewSessionMemoryStore() *SessionMemoryStore
func (*SessionMemoryStore) CleanSessions ¶
func (s *SessionMemoryStore) CleanSessions() error
func (*SessionMemoryStore) DeleteSession ¶
func (s *SessionMemoryStore) DeleteSession(session *tree.IndexationSession) error
func (*SessionMemoryStore) PutSession ¶
func (s *SessionMemoryStore) PutSession(session *tree.IndexationSession) error
func (*SessionMemoryStore) ReadSession ¶
func (s *SessionMemoryStore) ReadSession(sessionUuid string) (*tree.IndexationSession, SessionBatcher, error)
Source Files
¶
- benchmark.go
- dao.go
- memory.go
Click to show internal directories.
Click to hide internal directories.