model

package
v0.0.0-...-e10dee8 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	OriginalLink string `db:"original_link"`
	ShortLink    string
	Token        string    `db:"token"`
	ExpiresAt    time.Time `db:"expires_at"`
}

func (Link) MarshalEasyJSON

func (v Link) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Link) MarshalJSON

func (v Link) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Link) UnmarshalEasyJSON

func (v *Link) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Link) UnmarshalJSON

func (v *Link) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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