Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyCryptoInfo = &CryptoInfo{}
)
View Source
var (
EmptyMailFile = &MailFile{}
)
Functions ¶
Types ¶
type ConditionalLogger ¶
type ConditionalLogger interface { Enable() Disable() Println(...interface{}) Printf(string, ...interface{}) }
type CryptoInfo ¶
type CryptoInfo struct {
// contains filtered or unexported fields
}
CryptoInfo implements MailAnalyzer
func NewCryptoInfo ¶
func NewCryptoInfo(e EMail) *CryptoInfo
NewCryptoInfo creates a new crypto analysis from an email
func (*CryptoInfo) Result ¶
func (ci *CryptoInfo) Result() map[string]string
Result returns a result map
func (*CryptoInfo) Set ¶
func (ci *CryptoInfo) Set(key, value string)
set/overwrite a key/value pair in the result map
func (*CryptoInfo) String ¶
func (ci *CryptoInfo) String() string
type EMail ¶
EMail represents a parsed email file
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type MailAnalyzer ¶
MailAnalyzer models a map of result of an analysis
type MailFile ¶
type MailFile struct {
// contains filtered or unexported fields
}
MailFile holds an email filename and a parsed version
func NewMailFile ¶
NewMailFile creates a new MailFile from a file
func (*MailFile) Filename ¶
Filename returns the email filename
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Serve ¶
func (s *Service) Serve(listener *net.TCPListener)
Accept connections and spawn a goroutine to serve each one. Stop listening if anything is received on the service's quit channel.
Click to show internal directories.
Click to hide internal directories.