model

package
v0.0.0-...-a41518b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

* Shush API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UrlSerialize

func UrlSerialize(u Url) (string, error)

Types

type Url

type Url struct {
	ShortUrl   string     `json:"short_url"`
	Target     string     `json:"target"`
	Owners     *[]string  `json:"owners,omitempty"`
	Expiration *time.Time `json:"expiration,omitempty"`
}

func UrlDeserialize

func UrlDeserialize(v string) (Url, error)

func (Url) Expires

func (u Url) Expires() time.Duration

Jump to

Keyboard shortcuts

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