Help us shape the future of Go! Take the 2026 Go Developer Survey

events

package
v0.136.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UserType auditor.TargetType = "User"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserBase

type UserBase struct {
	UserID *uuid.UUID `json:"user_id,omitempty"`
	Email  string     `json:"email,omitempty"`
}

UserBase is the base struct for policy events

func (*UserBase) ActionInfo

func (p *UserBase) ActionInfo() (json.RawMessage, error)

func (*UserBase) TargetID

func (p *UserBase) TargetID() *uuid.UUID

func (*UserBase) TargetType

func (p *UserBase) TargetType() auditor.TargetType

type UserLoggedIn

type UserLoggedIn struct {
	*UserBase
	// This timestamp can be used to generate a new digest for the user and burst the cache
	LoggedIn time.Time
}

func (*UserLoggedIn) ActionInfo

func (p *UserLoggedIn) ActionInfo() (json.RawMessage, error)

func (*UserLoggedIn) ActionType

func (p *UserLoggedIn) ActionType() string

func (*UserLoggedIn) Description

func (p *UserLoggedIn) Description() string

type UserSignedUp

type UserSignedUp struct {
	*UserBase
}

func (*UserSignedUp) ActionType

func (p *UserSignedUp) ActionType() string

func (*UserSignedUp) Description

func (p *UserSignedUp) Description() string

Jump to

Keyboard shortcuts

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