models

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

type Redirect struct {
	From  string        `json:"from,omitempty"`
	To    string        `json:"to,omitempty"`
	ID    string        `json:"id"`
	Links RedirectLinks `json:"links"`
}

Redirect represents response body when retrieving a redirect

type RedirectLinks struct {
	Self RedirectSelf `json:"self"`
}

RedirectLinks is a type that contains links relating to the individual redirect. Currently, it only contains one link, which is a link to itself.

type RedirectSelf added in v0.3.5

type RedirectSelf struct {
	Href string `json:"href"`
	ID   string `json:"id"`
}

RedirectSelf represents a link to the individual redirect itself.

type Redirects added in v0.3.5

type Redirects struct {
	Count        int        `json:"count"`
	RedirectList []Redirect `json:"items"`
	Cursor       string     `json:"cursor"`
	NextCursor   string     `json:"next_cursor"`
	TotalCount   int        `json:"total_count"`
}

Redirects represents response body when retrieving a list of redirects

Jump to

Keyboard shortcuts

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