storage

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadStatusCode error.
	ErrBadStatusCode = errors.New("storage: bad status code")

	// ErrUnknownModelType error.
	ErrUnknownModelType = errors.New("storage: unknown model type")
)

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Config *config.Config
	Pool   *redis.Pool
	Client *http.Client
}

Storage type.

func New

func New(config *config.Config) *Storage

New function.

func (*Storage) DeleteAlarmConfig added in v1.5.0

func (s *Storage) DeleteAlarmConfig() error

DeleteAlarmConfig function.

func (*Storage) Save

func (s *Storage) Save(m interface{}) error

Save function.

func (*Storage) SaveAlarmConfig added in v1.5.0

func (s *Storage) SaveAlarmConfig() error

SaveAlarmConfig function.

Jump to

Keyboard shortcuts

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