controllers

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinkGet

func LinkGet(c echo.Context) error

func LinkPost

func LinkPost(c echo.Context) error

func RootGet

func RootGet(c echo.Context) error

func ToGet

func ToGet(c echo.Context) error

Types

type LinkResponse

type LinkResponse struct {
	Title    string                `json:"title"`
	Message  string                `json:"message"`
	Metadata *LinkResponseMetadata `json:"metadata,omitempty"`
}

type LinkResponseMetadata

type LinkResponseMetadata struct {
	URL       string `json:"url"`
	Link      string `json:"link"`
	Alias     string `json:"alias"`
	CreatedAt string `json:"createdAt"`
}

type RootGetResponse

type RootGetResponse struct {
	Title string                 `json:"title"`
	Links []RootGetResponseLinks `json:"links"`
}
type RootGetResponseLinks struct {
	Href    string `json:"href"`
	Title   string `json:"title"`
	Summary string `json:"summary"`
}

type ToGetResponse

type ToGetResponse struct {
	Title   string `json:"title"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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