infrastructure

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 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
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
util
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
gen
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
rsc
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
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.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
alipay
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
hfb
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
sms
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
sms/aliyu
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
sms/cl253
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.

Jump to

Keyboard shortcuts

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