storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StormDB

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

func NewStormStorage

func NewStormStorage(lc fx.Lifecycle, c *cmd.Conf, l zerolog.Logger) (*StormDB, error)

func (*StormDB) GetGuilConf

func (s *StormDB) GetGuilConf(guildID string) (*models.Conf, error)

func (*StormDB) NewGuildState

func (s *StormDB) NewGuildState(guildID string) (*models.Conf, error)

func (*StormDB) SaveGuildState

func (s *StormDB) SaveGuildState(gs *models.Conf) error

Jump to

Keyboard shortcuts

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