entity

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseReason

func ParseReason(reason string) (string, string)

Types

type Revision

type Revision struct {
	Revision   string `validate:"required,min=6"`
	Hash       string `validate:"hexadecimal,required,len=64"`
	Content    string `validate:"required"`
	Reason     string `validate:"required"`
	Device     string `validate:"hexadecimal,required,len=64"`
	Username   string
	Comment    string
	Date       time.Time
	FromPortal bool
}

func (*Revision) Label

func (r *Revision) Label() string

func (*Revision) MarshallText

func (r *Revision) MarshallText() string

type RevisionList

type RevisionList map[string]Revision

func (RevisionList) MarshallText

func (l RevisionList) MarshallText() string

Jump to

Keyboard shortcuts

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