persistenceBbolt

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

Persistence BoltDB

Build Status

BoltDB based persistence plugin for VolantMQ

╔════════════════════════════════════╗                     
║ V: count - total amount of sessions║                     
║ B: sessions - actuall sessions     ║                     
╚═▲══════════════════════════════════╝                     
  │                                                        
  │.n                                                      
╔═╩═══════════════╗      .1 ┌─────────────────────┐        
║ V: subscriptions◀─────────┤Encoded subscriptions│        
║ B: state        ◀────┐    └─────────────────────┘        
║ B: packets      ◀───┐│ .1 ╔═════════════╗                
╚═════════════════╝   │└────╣ V: version  ║                
                      │     ║ V: since    ║                
                      │     ║ V: expireIn ║                
                      │     ║ V: willIn   ║                
                      │     ║ V: willData ║                
┌───────────────┐     │     ╚═════════════╝                
│ Legend        │     │  .1 ╔═════╗.1  .n ╔═══════════════╗
│ V - value     │     └─────╣ Seq ◀───────╣ V: data       ║
│ B - bucket    │           ╚═════╝       ║ V: unAck      ║
└───────────────┘                         ║ V: expireAt   ║
                                          ╚═══════════════╝

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(c interface{}, params *vlplugin.SysParams) (persistence.IFace, error)

nolint: golint

Types

type Config

type Config struct {
	File string `json:"file"`
}

Config configuration of the BoltDB backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL