db

package
v0.0.0-...-449ca5d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBC = &DB{}
)

Functions

This section is empty.

Types

type DB

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

func Open

func Open() (*DB, error)

func (*DB) Close

func (s *DB) Close() error

func (*DB) Delete

func (s *DB) Delete(key string) error

func (*DB) Dump

func (s *DB) Dump() map[string]string

func (*DB) Get

func (s *DB) Get(key string) (string, error)

func (*DB) GetGroupAction

func (s *DB) GetGroupAction(group, action string) data.ActionData

func (*DB) GetGroupActions

func (s *DB) GetGroupActions(group string) []data.ActionData

func (*DB) GetGroups

func (s *DB) GetGroups() map[string][]data.ActionData

func (*DB) GetNotifications

func (s *DB) GetNotifications(group string) []data.Notification

func (*DB) Put

func (s *DB) Put(key string, val string) error

func (*DB) PutGroupActions

func (s *DB) PutGroupActions(group string, actions []data.ActionData)

func (*DB) PutGroups

func (s *DB) PutGroups(data map[string][]data.ActionData) error

func (*DB) PutNotifications

func (s *DB) PutNotifications(notifications []data.Notification) error

Jump to

Keyboard shortcuts

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