Documentation ¶
Index ¶
- func CheckTables()
- func Close()
- func GetDbCli() *sql.DB
- func GetDomainList(sent, dateMode bool, dateInterval time.Duration) (domainIds []int, err error)
- func GetRangeDate(request *Requests, sent, dateMode bool, dateInterval time.Duration) (dateMin, dateMax int, err error)
- func GetRequestList(domain *Domain, sent, dateMode bool, dateInterval time.Duration) (requestIds []int, err error)
- func MakeDate(dateDay bool, dateInterval time.Duration) (dateFrom, dateTo int, err error)
- type Domain
- type FieldList
- type Generic
- type IndexList
- type IpAddr
- type Messages
- func (obj *Messages) GetAlignDKIM() string
- func (obj *Messages) GetAlignSPF() string
- func (obj *Messages) GetDisp() string
- func (obj *Messages) GetDkimReport() ([]report.ReportDKIM, error)
- func (obj Messages) GetReport() (report.ReportRecord, error)
- func (obj *Messages) GetSPF() string
- func (obj *Messages) GetSignatures() ([]*Signatures, error)
- func (obj *Messages) Load() error
- func (obj *Messages) Save() error
- func (obj *Messages) SetDate(received string) error
- func (obj *Messages) SetEnvDomain(envDomain string) error
- func (obj *Messages) SetFromDomain(fromDomain string) error
- func (obj *Messages) SetIpAddr(ipaddr string) error
- func (obj *Messages) SetPolicyDomain(polDomain string) error
- func (obj *Messages) SetReporter(reporter string) error
- func (obj *Messages) SetSent(Sent bool) error
- func (obj *Messages) Update() error
- type Reporters
- type Requests
- func (obj Requests) GetADKIM() string
- func (obj Requests) GetASPF() string
- func (obj Requests) GetPolicy() string
- func (obj Requests) GetSPolicy() string
- func (obj Requests) IsLocked() bool
- func (obj *Requests) Load() error
- func (obj *Requests) Save() error
- func (obj *Requests) SendReport(org, email string, upd, sent bool, dateMode bool, dateInterval time.Duration) error
- func (obj *Requests) SetDate(received string) error
- func (obj *Requests) SetDateTime(received time.Time) error
- func (obj *Requests) SetLocked() error
- func (obj *Requests) SetUnLocked() error
- func (obj *Requests) Update() error
- type Signatures
- func (obj *Signatures) Delete() error
- func (obj *Signatures) DeleteFromMessage() error
- func (obj Signatures) GetMessage() *Messages
- func (obj Signatures) GetPass() string
- func (obj Signatures) GetReport() report.ReportDKIM
- func (obj *Signatures) Load() error
- func (obj *Signatures) Save() error
- func (obj *Signatures) Update() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTables ¶
func CheckTables()
func GetDomainList ¶
func GetRangeDate ¶
func GetRequestList ¶
Types ¶
type FieldList ¶
Copyright 2018 Nicolas JUHEL
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
type Generic ¶
func (Generic) CheckTable ¶
type Messages ¶
type Messages struct { Generic Id int Date time.Time JobId string Reporter *Reporters Ip *IpAddr Policy int Disp int FromDomain *Domain EnvDomain *Domain PolicyDomain *Domain SigCount int SPF int AlignSPF int AlignDKIM int Request *Requests Sent bool }
func GetAllMessages ¶
func GetMessages ¶
func NewMessages ¶
func (*Messages) GetAlignDKIM ¶
func (*Messages) GetAlignSPF ¶
func (*Messages) GetDkimReport ¶
func (obj *Messages) GetDkimReport() ([]report.ReportDKIM, error)
func (*Messages) GetSignatures ¶
func (obj *Messages) GetSignatures() ([]*Signatures, error)
func (*Messages) SetEnvDomain ¶
func (*Messages) SetFromDomain ¶
func (*Messages) SetPolicyDomain ¶
func (*Messages) SetReporter ¶
type Requests ¶
type Requests struct { Generic Domain *Domain Repuri string Pct int Policy int Spolicy int ASPF int ADKIM int Locked bool }
func GetRequests ¶
func NewRequests ¶
func (Requests) GetSPolicy ¶
func (*Requests) SendReport ¶
func (*Requests) SetUnLocked ¶
type Signatures ¶
func GetAllSignatures ¶
func GetAllSignatures(Message *Messages) ([]*Signatures, error)
func GetSignatures ¶
func GetSignatures(Id int) (*Signatures, error)
func NewSignatures ¶
func NewSignatures(Message *Messages) *Signatures
func (*Signatures) Delete ¶
func (obj *Signatures) Delete() error
func (*Signatures) DeleteFromMessage ¶
func (obj *Signatures) DeleteFromMessage() error
func (Signatures) GetMessage ¶
func (obj Signatures) GetMessage() *Messages
func (Signatures) GetPass ¶
func (obj Signatures) GetPass() string
func (Signatures) GetReport ¶
func (obj Signatures) GetReport() report.ReportDKIM
func (*Signatures) Load ¶
func (obj *Signatures) Load() error
func (*Signatures) Save ¶
func (obj *Signatures) Save() error
func (*Signatures) Update ¶
func (obj *Signatures) Update() error
Click to show internal directories.
Click to hide internal directories.