tracking

package
v0.0.0-...-d76460e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracker

type Tracker interface {
	Launch(ctx context.Context)
	Enqueue(u UserUpdate)
	RewardChannel() chan rewards.Reward
}

func New

func New(interval time.Duration, rewardAmount int) (Tracker, error)

type UserUpdate

type UserUpdate struct {
	UserID    string
	GuildID   string
	Connected bool
}

Jump to

Keyboard shortcuts

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