param

package
v0.0.0-...-d91dd4b Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LongInfoRequest

type LongInfoRequest struct {
	Key string `json:"key"`
}

func (LongInfoRequest) ValidateLongInfo

func (lr LongInfoRequest) ValidateLongInfo() error

type LongInfoResponse

type LongInfoResponse struct {
	LongURL string `json:"long_url"`
	Expiry  int64  `json:"expiry"`
	Visits  int    `json:"visits"`
}

type LongRequest

type LongRequest struct {
	Key string `json:"key"`
}

func (LongRequest) ValidateLong

func (lr LongRequest) ValidateLong() error

type LongResponse

type LongResponse struct {
	LongURL string `json:"long_url"`
}

type ShortRequest

type ShortRequest struct {
	URL string `json:"url"`
	// Number of Hours from Now
	Expiry int64 `json:"expiry"`
}

func (ShortRequest) ValidateShort

func (sr ShortRequest) ValidateShort() error

type ShortResponse

type ShortResponse struct {
	Key string `json:"key"`
}

Jump to

Keyboard shortcuts

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