models

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Tempest- Leveraging paste sites as a medium for discovery Copyright © 2023 ax-i-om <addressaxiom@pm.me>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

package models contains types used throughout Tempest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMRInfo added in v0.9.0

type CMRInfo struct {
	Name    string `json:"name"`
	Weblink string `json:"weblink"`
	Size    int    `json:"size"`
	Mtime   int    `json:"mtime"`
	Hash    string `json:"hash"`
	Kind    string `json:"kind"`
	Type    string `json:"type"`
	Malware struct {
		Status string `json:"status"`
	} `json:"malware"`
	Public struct {
		Type  string `json:"type"`
		Name  string `json:"name"`
		ID    string `json:"id"`
		Ctime int    `json:"ctime"`
	} `json:"public"`
}

CMRInfo represents the extracted metadata from cloud.mail.ru files/folders

type Entry

type Entry struct {
	Source string `json:"source"`
	Link   string `json:"link"`

	Title       string `json:"title"`
	Description string `json:"description"`
	Service     string `json:"service"`

	Uploaded string `json:"uploaded"`
	Mtime    string `json:"mtime"`

	Type      string `json:"type"`
	Size      string `json:"size"`
	FileCount int    `json:"filecount"`

	Thumbnail string `json:"thumbnail"`
	Downloads int    `json:"downloads"`
	Views     int    `json:"views"`

	Hash    string `json:"hash"`
	Malware string `json:"malware"`
}

Entry represents the extracted link and it's accompanying data.

type WaitGroupCount

type WaitGroupCount struct {
	sync.WaitGroup
	// contains filtered or unexported fields
}

WaitGroupCount represents a countable sync.WaitGroup

func (*WaitGroupCount) Add

func (wg *WaitGroupCount) Add(delta int)

Add ...

func (*WaitGroupCount) Done

func (wg *WaitGroupCount) Done()

Done ...

func (*WaitGroupCount) GetCount

func (wg *WaitGroupCount) GetCount() int

GetCount ...

Jump to

Keyboard shortcuts

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