models

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package models describes models for json marshal-unmarshal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Headers

type Headers struct {
	Score       float64 `json:"score"`
	Tag         string  `json:"tag"`
	Description string  `json:"description"`
}

Headers represents info for each header.

type Report

type Report struct {
	SpamAssassin SpamAssassin `json:"spamAssassin"`
}

Report represents spamassasin report.

func GetReportFromFile

func GetReportFromFile(tb testing.TB, fPath string) Report

GetReportFromFile is a test helper that unmarshal passed filepath into models.Report.

type SpamAssassin

type SpamAssassin struct {
	Score   float64   `json:"score"`
	Headers []Headers `json:"headers"`
}

SpamAssassin is a root of report.

Jump to

Keyboard shortcuts

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