dto

package
v0.0.0-...-c162711 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResponse

func CreateResponse(torrents []Torrent) string

CreateResponse : convert torrent data to text

Types

type APIUser

type APIUser struct {
	UserID    int64
	FirstName string
}

type DBUser

type DBUser struct {
	FirstName string
	LastName  string
	UserName  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Torrent

type Torrent struct {
	ID       string
	InfoHash string
	Name     string
	NumFiles string
	Size     string
	Seeders  string
	Leechers string
}

Jump to

Keyboard shortcuts

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