addons

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package addons includes ledger addons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mem

type Mem struct {
	Mem struct {
		sync.RWMutex
		Ory map[string]string
	}
}

Mem is a ledger addon which implements transient ledger. It writes ledger data to memory and reads it from there. It's convenient for unit test and some development cases.

func (*Mem) Close

func (m *Mem) Close()

func (*Mem) Open

func (m *Mem) Open(name string) bool

func (*Mem) Read

func (m *Mem) Read(ID string) (name string, value string, err error)

func (*Mem) Write

func (m *Mem) Write(ID, data string) error

Jump to

Keyboard shortcuts

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