activity

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C = make(chan *Action)

Functions

func ReportAction

func ReportAction(actor string, verb Verb, object string, target string)

func SendAction

func SendAction(action *Action)

Types

type Action

type Action struct {
	Actor  string    `json:"actor"`
	Verb   Verb      `json:"verb"`
	Object string    `json:"object"`
	Target string    `json:"target"`
	Time   time.Time `json:"time"`
}

func (Action) String

func (a Action) String() string

type Verb

type Verb string
const (
	VCreate Verb = "create"
	VUpdate Verb = "update"
	VDelete Verb = "delete"
	VStart  Verb = "start"
	VStop   Verb = "stop"
	VWrite  Verb = "write"
	VRead   Verb = "read"
	VOpen   Verb = "open"
	VClose  Verb = "close"
)

Jump to

Keyboard shortcuts

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