boltstorage

package
v0.0.0-...-d399794 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func Open

func Open(path string, mode os.FileMode, options *bolt.Options) (*Storage, error)

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Load

func (s *Storage) Load(thread string) (posts []string, err error)

func (*Storage) LoadAll

func (s *Storage) LoadAll() (map[string][]string, error)

func (*Storage) Remove

func (s *Storage) Remove(thread string) error

func (*Storage) Store

func (s *Storage) Store(thread string, posts []string) error

Jump to

Keyboard shortcuts

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