rate

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateGroup

type RateGroup struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

RateGroup 速率Group,懒加载

func NewRateGroup

func NewRateGroup(new func() interface{}) (rg *RateGroup)

NewRateGroup 新建RateGroup

func (*RateGroup) Get

func (r *RateGroup) Get(key string) interface{}

Get 获取RateGroup,如果没有则新建

Jump to

Keyboard shortcuts

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