handler

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBloom

func AddBloom(c *gin.Context)

func AddList

func AddList(c *gin.Context)

func AddSet

func AddSet(c *gin.Context)

func AddZList

func AddZList(c *gin.Context)

func CameraSave

func CameraSave(c *gin.Context)

func ClearBitmap

func ClearBitmap(c *gin.Context)

func ClearBloom

func ClearBloom(c *gin.Context)

func ContainsSet

func ContainsSet(c *gin.Context)

func DecrByCounter

func DecrByCounter(c *gin.Context)

func DecrCounter

func DecrCounter(c *gin.Context)

func Delete

func Delete(c *gin.Context)

func DeleteObjectFieldByKey added in v0.1.1

func DeleteObjectFieldByKey(c *gin.Context)

func DiffSet

func DiffSet(c *gin.Context)

func Err500

func Err500(c *gin.Context)

func Get

func Get(c *gin.Context)

func GetBitCount

func GetBitCount(c *gin.Context)

func GetBitmapBit

func GetBitmapBit(c *gin.Context)

func GetBitmapLen

func GetBitmapLen(c *gin.Context)

func GetBloomFalseRate

func GetBloomFalseRate(c *gin.Context)

func GetBloomSize

func GetBloomSize(c *gin.Context)

func GetListBetween

func GetListBetween(c *gin.Context)

func GetListByPos

func GetListByPos(c *gin.Context)

func GetListEndAt

func GetListEndAt(c *gin.Context)

func GetListLen

func GetListLen(c *gin.Context)

func GetListStartAt

func GetListStartAt(c *gin.Context)

func GetObjectFieldByKey

func GetObjectFieldByKey(c *gin.Context)

func GetSetSize

func GetSetSize(c *gin.Context)

func GetStrLen

func GetStrLen(c *gin.Context)

func GetZListBetween

func GetZListBetween(c *gin.Context)

func GetZListBetweenScores

func GetZListBetweenScores(c *gin.Context)

func GetZListByPos

func GetZListByPos(c *gin.Context)

func GetZListEndAt

func GetZListEndAt(c *gin.Context)

func GetZListLen

func GetZListLen(c *gin.Context)

func GetZListStartAt

func GetZListStartAt(c *gin.Context)

func IncrByCounter

func IncrByCounter(c *gin.Context)

func IncrCounter

func IncrCounter(c *gin.Context)

func Info

func Info(c *gin.Context)

func InterSet

func InterSet(c *gin.Context)

func LPopList

func LPopList(c *gin.Context)

func LPushList

func LPushList(c *gin.Context)

func Lock

func Lock(c *gin.Context)

func Ping

func Ping(c *gin.Context)

func RPopList

func RPopList(c *gin.Context)

func RPushList

func RPushList(c *gin.Context)

func Register

func Register(r *gin.Engine, needAuth bool)

func RemoveListElement

func RemoveListElement(c *gin.Context)

func RemoveSet

func RemoveSet(c *gin.Context)

func RemoveZListByScore

func RemoveZListByScore(c *gin.Context)

func SetBitmap

func SetBitmap(c *gin.Context)

func SetBloomFuzzy

func SetBloomFuzzy(c *gin.Context)

func SetBloomSpecific

func SetBloomSpecific(c *gin.Context)

func SetCounter

func SetCounter(c *gin.Context)

func SetElementAt added in v0.1.2

func SetElementAt(c *gin.Context)

func SetList

func SetList(c *gin.Context)

func SetObject

func SetObject(c *gin.Context)

func SetObjectFieldByKey

func SetObjectFieldByKey(c *gin.Context)

func SetSet

func SetSet(c *gin.Context)

func SetStr

func SetStr(c *gin.Context)

func SetZList

func SetZList(c *gin.Context)

func SubscribeKey

func SubscribeKey(c *gin.Context)

func TestBloom

func TestBloom(c *gin.Context)

func TestPost added in v0.0.8

func TestPost(c *gin.Context)

func UnionSet

func UnionSet(c *gin.Context)

func Unlock

func Unlock(c *gin.Context)

Types

type AddBloomParam

type AddBloomParam struct {
	Key string
}

type AddListParam

type AddListParam struct {
	Element  interface{}   `json:"e"`
	Elements []interface{} `json:"elements"`
}

type AddZListParam

type AddZListParam struct {
	Element  *zlist.SlElement   `json:"e"`
	Elements *[]zlist.SlElement `json:"elements"`
}

type BloomFuzzyOption

type BloomFuzzyOption struct {
	N  uint
	Fp float64
}

type BloomSpecificOption

type BloomSpecificOption struct {
	M uint64
	K uint64
}

type CameraSaveParam

type CameraSaveParam struct {
	NeedZip bool `json:"zip"`
}

type CommonSetParam

type CommonSetParam struct {
	Element interface{} `json:"e"`
}

type LockParam

type LockParam struct {
	TimeLimit     int64  `json:"t" binding:"-"`
	ExpireTime    int64  `json:"expire_time" binding:"-"`
	RetryTimes    uint64 `json:"retry_times" binding:"-"`
	RetryInterval uint64 `json:"retry_interval" binding:"-"`
}

type PushListParam

type PushListParam struct {
	Element interface{} `json:"e"`
}

type RemoveListElementParam

type RemoveListElementParam struct {
	Val interface{}
	Pos *int
}

type RemoveZListByScoreParam

type RemoveZListByScoreParam struct {
	Scores *[]float64
	Score  *float64
	Min    *float64
	Max    *float64
}

type SetAtParam added in v0.1.2

type SetAtParam struct {
	Element interface{} `json:"e"`
	Pos     int         `json:"pos"`
}

type SetBitmapParam

type SetBitmapParam struct {
	ExpireTime int64 `json:"expire_time" binding:"-"`
}

type SetBloomFuzzyParam

type SetBloomFuzzyParam struct {
	Key        string           `json:"k"`
	Val        BloomFuzzyOption `json:"v"`
	ExpireTime int64            `json:"expire_time" binding:"-"`
}

type SetBloomSpecificParam

type SetBloomSpecificParam struct {
	Key        string              `json:"k"`
	Val        BloomSpecificOption `json:"v"`
	ExpireTime int64               `json:"expire_time" binding:"-"`
}

type SetCounterParam

type SetCounterParam struct {
	Key        string `json:"k"`
	Val        int64  `json:"v"`
	ExpireTime int64  `json:"expire_time" binding:"-"`
}

type SetListParam

type SetListParam struct {
	Key        string        `json:"k"`
	Val        []interface{} `json:"v"`
	ExpireTime int64         `json:"expire_time" binding:"-"`
}

type SetObjectFieldByKeyParam

type SetObjectFieldByKeyParam struct {
	Val interface{} `json:"v"`
}

type SetObjectParam

type SetObjectParam struct {
	Key        string                 `json:"k"`
	Val        map[string]interface{} `json:"v"`
	ExpireTime int64                  `json:"expire_time" binding:"-"`
}

type SetSetParam

type SetSetParam struct {
	Key        string        `json:"k"`
	Val        []interface{} `json:"v"`
	ExpireTime int64         `json:"expire_time" binding:"-"`
}

type SetStrParam

type SetStrParam struct {
	Key        string `json:"k"`
	Val        string `json:"v"`
	ExpireTime int64  `json:"expire_time" binding:"-"`
}

type SetZListParam

type SetZListParam struct {
	Key        string            `json:"k"`
	Val        []zlist.SlElement `json:"v"`
	ExpireTime int64             `json:"expire_time" binding:"-"`
}

type SubscribeKeyParam

type SubscribeKeyParam struct {
	Key          string      `json:"key"`
	Path         string      `json:"path"`
	Events       *[]string   `json:"expect_events" binding:"-"`
	RetryTimes   *int        `json:"retry_times" binding:"-"`
	IsPersistent *bool       `json:"is_persistent" binding:"-"`
	Method       string      `json:"method" binding:"-"`
	ExpectValue  interface{} `json:"expect_value" binding:"-"`
}

type UnlockParam

type UnlockParam struct {
	Guid string `json:"guid"`
}

Jump to

Keyboard shortcuts

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