Refactoring

This commit is contained in:
Vladimir Stoilov
2022-09-08 10:02:40 +02:00
committed by Daniel
parent edcb93bf5c
commit 6fdc6c0a4f
4 changed files with 12 additions and 10 deletions

View File

@@ -107,15 +107,15 @@ type Connection struct { //nolint:maligned // TODO: fix alignment
// Resolver holds information about the resolver used to resolve
// Entity.Domain.
Resolver *resolver.ResolverInfo
// Verdict holds decisions that are made for a connection
// Verdict holds the decisions that are made for a connection
// The verdict may change so any access to it must be guarded by the
// connection lock.
Verdict struct {
// Current is the current decision that has been made for a connection.
Current Verdict
// PreviousVerdict holds the previous verdict value, if there wasn't previous it will hold VerdictUndecided
// Previous holds the previous verdict value, if there wasn't previous it will VerdictUndecided
Previous Verdict
// UserVerdict holds the verdict that should be displayed in the user interface
// User holds the verdict that should be displayed in the user interface
User Verdict
}
// Reason holds information justifying the verdict, as well as additional