event

package
v0.0.0-...-d39f515 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dp *depot.Depot, payload *CreatePayload) error

func ValidateCreatePayload

func ValidateCreatePayload(dp *depot.Depot, payload *CreatePayload) error

Types

type CreatePayload

type CreatePayload struct {
	DateTime  time.Time
	Duration  *uint32 `json:"d"`
	Id        string  `json:"i"`
	IpAddress string
	Kind      *model.EventKind `json:"k"`
	Locale    *string          `json:"l"`
	Referrer  *string          `json:"r"`
	TimeZone  *string          `json:"t"`
	Url       *string          `json:"u"`
	UserAgent string
}

type Event

type Event struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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