runtimeStorage

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package runtimeStorage 运行时存储数据接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeStorageIfce

type RuntimeStorageIfce interface {
	GetAllKeys() ([]string, error)

	GetValueByKey(key string) (any, error)
	GetValueByKeyToBytes(key string) ([]byte, error)
	GetValueByKeyToString(key string) (string, error)
	GetValueByKeyToBool(key string) (bool, error)
	GetValueByKeyToInt(key string) (int, error)

	SetValueByKey(key string, value any) error
	DelValueByKey(key string) error
	CheckKeyExit(key string) (bool, error)
}

RuntimeStorage 保存运行时数据的基础接口,用于提供保存http proxy数据或者登录黑白名单等配置 可以基于此接口做redis或者内存等的实现

Jump to

Keyboard shortcuts

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