Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableDebugLogging = false
If true, debug messages will be written to the log
View Source
var TestCluster *riak.Cluster
Functions ¶
func InitIndexBucket ¶
Types ¶
type LogIndexRiakDAO ¶
type LogIndexRiakDAO struct { Cluster *riak.Cluster Resolver *TimelineConfilctResolver IndexBucket string }
func NewLogIndexRiakDAO ¶
func NewLogIndexRiakDAO(cluster *riak.Cluster, indexBucket string) *LogIndexRiakDAO
func (*LogIndexRiakDAO) AppendToLogIndex ¶
func (dao *LogIndexRiakDAO) AppendToLogIndex(userId string, entry ent.IndexEntry) error
func (*LogIndexRiakDAO) GetLogIndex ¶
func (dao *LogIndexRiakDAO) GetLogIndex(userId string) (ent.TimelineIndex, error)
func (*LogIndexRiakDAO) Ping ¶
func (dao *LogIndexRiakDAO) Ping() (bool, error)
type LogRecordRiakDao ¶
func NewLogRecordRiakDao ¶
func NewLogRecordRiakDao(cluster *riak.Cluster, logBucket string) *LogRecordRiakDao
func (*LogRecordRiakDao) DeleteLogRecord ¶
func (dao *LogRecordRiakDao) DeleteLogRecord(logId string) error
func (*LogRecordRiakDao) GetLogRecord ¶
func (dao *LogRecordRiakDao) GetLogRecord(logId string) (string, error)
func (*LogRecordRiakDao) Ping ¶
func (dao *LogRecordRiakDao) Ping() (bool, error)
func (*LogRecordRiakDao) SaveLogRecord ¶
func (dao *LogRecordRiakDao) SaveLogRecord(logId string, logRecord string) error
type TimelineConfilctResolver ¶
type TimelineConfilctResolver struct { }
type TimelineRiakDaoImpl ¶
type TimelineRiakDaoImpl struct { Cluster *riak.Cluster IndexDao *LogIndexRiakDAO LogRecordDao *LogRecordRiakDao SnowFlake *gosnow.SnowFlake DaysToKeep int }
Implements TimelineDAO
func NewTimelineRiakDaoImpl ¶
func (*TimelineRiakDaoImpl) GetTimeline ¶
func (dao *TimelineRiakDaoImpl) GetTimeline(id string) (ent.TimelineIndex, error)
func (*TimelineRiakDaoImpl) ReportState ¶
func (dao *TimelineRiakDaoImpl) ReportState() (stateCode, stateDescription string)
Click to show internal directories.
Click to hide internal directories.