storeprovider

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreProvider

type StoreProvider struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

StoreProvider is a transient data store provider

func New

New returns a new transient data store provider

func (*StoreProvider) Close

func (sp *StoreProvider) Close()

Close shuts down all of the stores

func (*StoreProvider) OpenStore

func (sp *StoreProvider) OpenStore(channelID string) (api.Store, error)

OpenStore opens the transient data store for the given channel

func (*StoreProvider) StoreForChannel

func (sp *StoreProvider) StoreForChannel(channelID string) api.Store

StoreForChannel returns the transient data store for the given channel

Directories

Path Synopsis
store
api

Jump to

Keyboard shortcuts

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