interfaces

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 1 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	HandleRequests()
}

type ApiClient

type ApiClient interface {
	GetHashName() (int, string)
	GetPasswords(int) (int, []string)
	SubmitHashes(models.HashSubmission) int
}

type BackupReader

type BackupReader interface {
	BackupsExist() bool
	LoadBackups() error
}

type ClientStopQueue

type ClientStopQueue interface {
	Get() (models.ClientStopReason, error)
	Put(models.ClientStopReason) error
}

type ConfigProvider

type ConfigProvider interface {
	GetConfig() *models.Config
}

type Encoder

type Encoder interface {
	Start() error
}

type EncoderFactory

type EncoderFactory interface {
	GetNewEncoder() Encoder
}

type Flusher

type Flusher interface {
	NeedsFlushed() bool
	Flush() error
}

type FlushingQueue

type FlushingQueue interface {
	Size() int
	Get() (string, error)
	Put(string) error
	Flush() error
}

type HashReader

type HashReader interface {
	GetHashes() (map[string]bool, error)
}

type Logger

type Logger interface {
	LogMessage(string) error
}

type Observer

type Observer interface {
	Start()
	Stop()
}

type PasswordReader

type PasswordReader interface {
	LoadPasswords() error
}

type Queue

type Queue interface {
	Size() int
	Get() (string, error)
	Put(string) error
}

type RequestQueue

type RequestQueue interface {
	Size() int
	Get() (models.HashingRequest, error)
	Put(models.HashingRequest) error
}

type Requester

type Requester interface {
	Start() error
}

type SubmissionQueue

type SubmissionQueue interface {
	Size() int
	Get() (models.HashSubmission, error)
	Put(models.HashSubmission) error
}

type Submitter

type Submitter interface {
	Start() error
}

type Tracker

type Tracker interface {
	TrackPasswordsSent(uint64)
	TrackHashesComputed(uint64)
	TrackHashesCracked(uint64)
	TrackHashMatchAttempt()
	GetPasswordsSent() uint64
	GetHashesComputed() uint64
	GetHashesCracked() uint64
	GetHashMatchAttempts() uint64
}

type Verifier

type Verifier interface {
	Start()
}

type Waiter

type Waiter interface {
	Wait()
}

Jump to

Keyboard shortcuts

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