Versions in this module Expand all Collapse all v1 v1.0.1 Sep 22, 2023 Changes in this version + const MemorySize + func New(ctx activity.InitContext) (activity.Activity, error) + type Activity struct + func (a *Activity) Eval(ctx activity.Context) (done bool, err error) + func (a *Activity) Metadata() *activity.Metadata + type Context struct + type Input struct + Token string + func (r *Input) FromMap(values map[string]interface{}) error + func (r *Input) ToMap() map[string]interface{} + type Output struct + Error bool + ErrorMessage string + LimitAvailable int64 + LimitReached bool + func (o *Output) FromMap(values map[string]interface{}) error + func (o *Output) ToMap() map[string]interface{} + type Settings struct + DecayRate float64 + Limit string + SpikeThreshold float64