optlogger

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	System  TargetTypeEnum = iota
	User                   = iota
	Article                = 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
)

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