optlogger

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	System     TargetTypeEnum = iota
	User                      = iota
	Article                   = iota
	DocProject                = iota
	DocVersion                = iota
	DocContent                = iota
)

Variables

This section is empty.

Functions

func UserOpt

func UserOpt(userId uint64, optType OptEnum, targetId any, msg string)

Types

type OptEnum

type OptEnum int
const (
	EditUser OptEnum = iota
	EditArticle
	CreateDocProject
	UpdateDocProject
	DeleteDocProject
	CreateDocVersion
	UpdateDocVersion
	DeleteDocVersion
	CreateDocContent
	UpdateDocContent
	DeleteDocContent
	PublishDocContent
	DraftDocContent
)

func (OptEnum) Name

func (receiver OptEnum) Name() string

func (OptEnum) TargetTypeEnum

func (receiver OptEnum) TargetTypeEnum() TargetTypeEnum

type TargetTypeEnum

type TargetTypeEnum int

func (TargetTypeEnum) Name

func (receiver TargetTypeEnum) Name() string

Jump to

Keyboard shortcuts

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