brevity

package
v0.0.0-...-f2da7a2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrevityBot

type BrevityBot struct {
	// contains filtered or unexported fields
}

func NewBrevityBot

func NewBrevityBot(backend backend_contract.Api) *BrevityBot

func (*BrevityBot) Track

func (bb *BrevityBot) Track(activity UserActivity) []string

Note: UserActivity is an interface defined in user_activity.go

type ChatActivity

type ChatActivity struct {
	// contains filtered or unexported fields
}

ChatActivity is a concrete subtype of the UserActivity interface

func NewChatActivity

func NewChatActivity(ts time.Time, uID string) *ChatActivity

func (*ChatActivity) Timestamp

func (ca *ChatActivity) Timestamp() time.Time

func (*ChatActivity) UserID

func (ca *ChatActivity) UserID() string

type UserActivity

type UserActivity interface {
	Timestamp() time.Time
	UserID() string
}

Jump to

Keyboard shortcuts

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