immu

package
v0.30.72 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockCfg = &Cfg{
	URL:      "mock",
	Port:     3322,
	UserName: "immudb",
	Password: "immudb",
}

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	URL      string `json:"url"`
	Port     int    `json:"port"`
	UserName string `json:"user_name"`
	Password string `json:"password"`

	*im.Options
}

func NewImmuCfg

func NewImmuCfg(_ string) (cfg *Cfg)

func (*Cfg) Connect

func (cfg *Cfg) Connect() (c im.ImmuClient, token string, err error)

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(_ ...string) bool

func (*Mem) Read

func (m *Mem) Read(_ plugin.TxInfo, ID string) (name string, value string, err error)

func (*Mem) Write

func (m *Mem) Write(_ plugin.TxInfo, ID, data string) error

Jump to

Keyboard shortcuts

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