memory

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryDatastore

type MemoryDatastore struct {
	// 本当は `proto.Message` を入れたいが、何故か中身がなかったのでとりあえずシリアライズする
	Data map[string][]byte
}

func NewMemoryDatastore

func NewMemoryDatastore() *MemoryDatastore

func (MemoryDatastore) Apply

func (m MemoryDatastore) Apply(name string, pb proto.Message) error

func (MemoryDatastore) Delete

func (m MemoryDatastore) Delete(name string) error

func (MemoryDatastore) Get

func (m MemoryDatastore) Get(name string, pb proto.Message) error

func (MemoryDatastore) List

func (m MemoryDatastore) List(f func(length int) []proto.Message) error

Jump to

Keyboard shortcuts

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