domain

package
v0.0.0-...-58cf2e1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogData

type LogData struct {
	Id            uuid.UUID `json:"id"` // Id is the id of the log.
	*pb.LogHeader           // LogHeader is the header of the log.
	*pb.LogBody             // LogBody is the body of the log.
}

LogData is a struct that represents the entity of a log.

func NewLogData

func NewLogData() *LogData

NewLogData creates a new *LogData.

func (*LogData) GenerateLogData

func (s *LogData) GenerateLogData(logType pb.LogType,
	path string,
	userId string,
	message string) *pb.LogData

GenerateLogData generated a new *pb.LogData

func (*LogData) String

func (s *LogData) String() string

String returns a string representation of the LogData.

Jump to

Keyboard shortcuts

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