model

package
v0.0.0-...-1cb0413 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	ID     int    `json:"id"`
	URL    string `json:"url"`
	Alias  string `json:"alias"`
	Visits int    `json:"visits,omitempty"`
}

func TestAlias

func TestAlias(t *testing.T) *Alias

func (*Alias) BeforeCreate

func (a *Alias) BeforeCreate() error

func (*Alias) Validate

func (a *Alias) Validate() error

Jump to

Keyboard shortcuts

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