api_model

package
v0.0.0-...-bc437e6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RainbowTable

type RainbowTable struct {
	ID                int16      `json:"id"`
	Name              string     `json:"name"`
	ChainLength       int64      `json:"chainLength"`
	ChainsGenerated   int64      `json:"chainsGenerated"`
	CharacterSet      string     `json:"characterSet"`
	FinalChainCount   int64      `json:"finalChainCount"`
	HashFunction      string     `json:"hashFunction"`
	NumChains         int64      `json:"numChains"`
	PasswordLength    int64      `json:"passwordLength"`
	Status            string     `json:"status"`
	GenerateStarted   *time.Time `json:"generateStarted"`
	GenerateCompleted *time.Time `json:"generateCompleted"`
	GenerationTime    *float64   `json:"generationTime"`
	CreatedAt         *time.Time `json:"created"`
}

func ConvertRainbowTableToApiModel

func ConvertRainbowTableToApiModel(rainbowTable model.RainbowTable) RainbowTable

func ConvertRainbowTablesToApiModels

func ConvertRainbowTablesToApiModels(rainbowTables []model.RainbowTable) []RainbowTable

type RainbowTableSearch

type RainbowTableSearch struct {
	ID              int64      `json:"id"`
	RainbowTableId  int16      `json:"rainbowTableId"`
	Hash            string     `json:"hash"`
	Status          string     `json:"status"`
	Password        string     `json:"password"`
	SearchStarted   *time.Time `json:"searchStarted"`
	SearchCompleted *time.Time `json:"searchCompleted"`
	SearchTime      *float64   `json:"searchTime"`
	CreatedAt       *time.Time `json:"created"`
}

func ConvertRainbowTableSearchToApiModel

func ConvertRainbowTableSearchToApiModel(rainbowTableSearch model.RainbowTableSearch) RainbowTableSearch

func ConvertRainbowTableSearchesToApiModels

func ConvertRainbowTableSearchesToApiModels(rainbowTableSearches []model.RainbowTableSearch) []RainbowTableSearch

type RainbowTableSearchRequest

type RainbowTableSearchRequest struct {
	Hash string `json:"hash"`
}

type RainbowTableSearchResponse

type RainbowTableSearchResponse struct {
	Hash     string `json:"hash"`
	SearchId int64  `json:"searchId"`
	Status   string `json:"status"`
}

type VersionInfo

type VersionInfo struct {
	BuildTimestamp string `json:"build_timestamp"`
	GitRevision    string `json:"git_revision"`
	Version        string `json:"version"`
}

Jump to

Keyboard shortcuts

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