shortener

package
v0.0.0-...-5339e54 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

* BSD 3-Clause License * Copyright © 2022. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shortener

func Shortener(security string, provider string, longURL string) (shortURL string, err error)

Types

type BitlyShortLinksRequest

type BitlyShortLinksRequest struct {
	Domain  string `json:"domain"`
	LongURL string `json:"long_url"`
}

type BitlyShortLinksResponse

type BitlyShortLinksResponse struct {
	CreatedAt      string        `json:"created_at"`
	ID             string        `json:"id"`
	Link           string        `json:"link"`
	CustomBitlinks []interface{} `json:"custom_bitlinks"`
	LongURL        string        `json:"long_url"`
	Archived       bool          `json:"archived"`
	Tags           []interface{} `json:"tags"`
	DeepLinks      []interface{} `json:"deepLink"`
	References     struct {
		Group string `json:"group"`
	} `json:"references"`
}

type Rebrandly

type Rebrandly struct {
	ID          string          `json:"id"`
	Title       string          `json:"title"`
	Slashtag    string          `json:"slashtag"`
	Destination string          `json:"destination"`
	ShortURL    string          `json:"shortUrl"`
	Domain      RebrandlyDomain `json:"domain"`
	CreatedAt   time.Time       `json:"createdAt"`
	UpdatedAt   time.Time       `json:"updatedAt"`
	Clicks      int             `json:"clicks"`
	LastClickAt time.Time       `json:"lastClickAt"`
	Favourite   bool            `json:"favourite"`
}

type RebrandlyDomain

type RebrandlyDomain struct {
	ID       string `json:"id"`
	FullName string `json:"fullName"`
}

Jump to

Keyboard shortcuts

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