storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Instance string
	Logger   *hllogger.Logger
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(conf Config) (c *Controller, err error)

func (*Controller) Backup added in v0.2.0

func (c *Controller) Backup()

func (*Controller) NewScoppedAccess

func (c *Controller) NewScoppedAccess(realm string) *RealmController

func (*Controller) Stop

func (c *Controller) Stop()

type RealmController

type RealmController struct {
	// contains filtered or unexported fields
}

func (*RealmController) Clear

func (sb *RealmController) Clear() (err error)

func (*RealmController) Delete

func (sb *RealmController) Delete(key string) (err error)

func (*RealmController) Get

func (sb *RealmController) Get(key string, unmarshallAsJSON interface{}) (found bool, err error)

func (*RealmController) Has

func (sb *RealmController) Has(key string) (exists bool)

func (*RealmController) Keys

func (sb *RealmController) Keys() (keys []string)

func (*RealmController) NbKeys

func (sb *RealmController) NbKeys() (nbKeys int)

func (*RealmController) Set

func (sb *RealmController) Set(key string, marshall2JSON interface{}) (err error)

func (*RealmController) Sync

func (sb *RealmController) Sync() (err error)

Jump to

Keyboard shortcuts

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