Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "nsq-counter"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() eosc.IExtenderDriverFactory
func Register ¶
func Register(register eosc.IExtenderDriverRegister)
Types ¶
type Config ¶
type Config struct { Scopes []string `json:"scopes" label:"作用域"` Topic string `json:"topic" yaml:"topic" label:"topic"` Address []string `json:"address" yaml:"address" label:"请求地址"` AuthSecret string `json:"auth_secret" yaml:"auth_secret" label:"鉴权secret"` Params []*Param `json:"params" label:"参数列表"` CountParamKey string `json:"count_param_key" label:"计数参数"` PushMode string `json:"push_mode" label:"推送模式" enum:"single,multi" default:"multi"` }
type CounterHandler ¶
type CounterHandler struct {
// contains filtered or unexported fields
}
func (*CounterHandler) Generate ¶
func (c *CounterHandler) Generate() ([][]byte, error)
func (*CounterHandler) GetCounter ¶
func (c *CounterHandler) GetCounter(key string, variables map[string]string) ICounter
Click to show internal directories.
Click to hide internal directories.