domain

package
v0.0.0-...-03d5641 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Id          string    `dynamodbav:"id" json:"id"`
	OriginalURL string    `dynamodbav:"original_url" json:"original_url"`
	CreatedAt   time.Time `dynamodbav:"created_at" json:"created_at"`
	Stats       []Stats   `dynamodbav:"-" json:"stats"`
}

type Platform

type Platform int
const (
	PlatformUnknown Platform = iota
	PlatformInstagram
	PlatformTwitter
	PlatformYouTube
)

func (Platform) String

func (p Platform) String() string

type Stats

type Stats struct {
	Id        string    `dynamodbav:"id" json:"id"`
	Platform  Platform  `dynamodbav:"platform" json:"platform"`
	LinkID    string    `dynamodbav:"link_id" json:"link_id"`
	CreatedAt time.Time `dynamodbav:"created_at" json:"created_at"`
}

Jump to

Keyboard shortcuts

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