Documentation ¶
Index ¶
Constants ¶
View Source
const (
PendingQueueCapacity = 256
)
Variables ¶
This section is empty.
Functions ¶
func GetErrNotFound ¶
func GetErrNotFound() error
func InitMongoConnect ¶
func InitMongoConnect()
func SaveToMongo ¶
func SaveToMongo(oplog *oplog.PartialLog)
Types ¶
type ExampleReplayer ¶
type ExampleReplayer struct { Retransmit bool // need re-transmit Ack int64 // ack number // contains filtered or unexported fields }
func NewExampleReplayer ¶
func NewExampleReplayer(id int) *ExampleReplayer
func (*ExampleReplayer) GetAcked ¶
func (er *ExampleReplayer) GetAcked() int64
func (*ExampleReplayer) Sync ¶
func (er *ExampleReplayer) Sync(message *tunnel.TMessage, completion func()) int64
* Receiver message and do the following steps: * 1. if we need re-transmit, this log will be discard * 2. validate the checksum * 3. decompress * 4. put message into channel * Generally speaking, do not modify this function.
type MessageWithCallback ¶
type MessageWithCallback struct {
// contains filtered or unexported fields
}
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func NewSessionStore ¶
func NewSessionStore() *SessionStore
func (*SessionStore) Close ¶
func (ss *SessionStore) Close()
type StreetPicInfo ¶
Click to show internal directories.
Click to hide internal directories.