persistence

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBoltStorage

func CreateBoltStorage(logger log.Logger) *boltStorage

func CreateInMemorySqliteStorage

func CreateInMemorySqliteStorage(logger log.Logger) *sqliteStorage

func CreateIntrospectSqliteStorage

func CreateIntrospectSqliteStorage() *introspectSqliteStorage

func CreateMemoryStorage

func CreateMemoryStorage(logger log.Logger) *memoryStorage

func CreateSqliteStorage

func CreateSqliteStorage(dataPath string, logger log.Logger) *sqliteStorage

Types

type EventVariant

type EventVariant struct {
	Position int    `json:"position"`
	Uuid     string `json:"uuid"`
	Created  string `json:"created"`
	Body     string `json:"body"`
}

type StreamInfo

type StreamInfo struct {
	Name          string                    `json:"name"`
	EventVariants map[string][]EventVariant `json:"event_variants"`
}

type StreamStats

type StreamStats struct {
	Name           string                   `json:"name"`
	Total          int64                    `json:"total"`
	EventTypeStats []map[string]interface{} `json:"event_types"`
}

Jump to

Keyboard shortcuts

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