persistenceBbolt

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

BoltDB

BoltDB based persistence plugin for VolantMQ

pipeline status

Config

Docker image of VolantMQ service comes with persistense_bbolt plugin To enable plugin add persistense_bbolt value to list of enabled plugins. In config section listening port and path can be specified

plugins:
  enabled:
    - persistense_bbolt
  config:
    persistence:
      - backend: bbolt
        config:
          file: "/var/lib/volantmq/data/bbolt.db"

Storage structure

╔════════════════════════════════════╗                     
║ 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) (vlpersistence.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