infrastructure

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode = false

todo:....

Functions

func GetApp

func GetApp() gof.App

get application context

func NewEtcdStorage

func NewEtcdStorage(config clientv3.Config) (storage.Interface, error)

创建Etcd存储

Types

type EtcdStorage

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

func (EtcdStorage) Delete

func (e EtcdStorage) Delete(key string)

func (EtcdStorage) DeleteWith

func (e EtcdStorage) DeleteWith(prefix string) (int, error)

func (EtcdStorage) Driver

func (e EtcdStorage) Driver() string

func (EtcdStorage) Exists

func (e EtcdStorage) Exists(key string) (exists bool)

func (EtcdStorage) Get

func (e EtcdStorage) Get(key string, dst interface{}) error

func (EtcdStorage) GetBool

func (e EtcdStorage) GetBool(key string) (bool, error)

func (EtcdStorage) GetBytes

func (e EtcdStorage) GetBytes(key string) ([]byte, error)

func (EtcdStorage) GetFloat64

func (e EtcdStorage) GetFloat64(key string) (float64, error)

func (EtcdStorage) GetInt

func (e EtcdStorage) GetInt(key string) (int, error)

func (EtcdStorage) GetInt64

func (e EtcdStorage) GetInt64(key string) (int64, error)

func (EtcdStorage) GetRaw

func (e EtcdStorage) GetRaw(key string) (interface{}, error)

func (EtcdStorage) GetString

func (e EtcdStorage) GetString(key string) (string, error)

func (EtcdStorage) RWJson

func (e EtcdStorage) RWJson(key string, dst interface{}, src func() interface{}, second int64) error

func (EtcdStorage) Set

func (e EtcdStorage) Set(key string, v interface{}) error

Set

func (EtcdStorage) SetExpire

func (e EtcdStorage) SetExpire(key string, v interface{}, seconds int64) error

func (EtcdStorage) Source

func (e EtcdStorage) Source() interface{}

Directories

Path Synopsis
*
*
util
*
*
*
*
gen
*
*
rsc
*
*
rsc/gf256
Package gf256 implements arithmetic over the Galois Field GF(256).
Package gf256 implements arithmetic over the Galois Field GF(256).
rsc/qr
Package qr encodes QR codes.
Package qr encodes QR codes.
rsc/qr/coding
Package coding implements low-level QR coding details.
Package coding implements low-level QR coding details.
*
*
*
alipay
*
*
hfb
*
*
sms
*
*
*
*

Jump to

Keyboard shortcuts

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