From 5b0f50abe5718d83cdc62623faad854f810df640 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 4 Jun 2020 12:10:07 +0200 Subject: [refactor] add comment, unsure about using this Signed-off-by: kali kaneko (leap communications) --- gui/backend.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gui') diff --git a/gui/backend.go b/gui/backend.go index 885ece2..812258d 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -122,6 +122,12 @@ func (s status) fromString(st string) status { } } +// FIXME ----------------------------------------------------------------------- +// at some moment I thought this was a good idea, but probably is overkill - +// and not used right now. Discuss with meskio in code review, and very likely +// remove it - there are probably better ways of dealing with tracking of user +// actions more towards the ui layer. + // An action is originated in the UI. These represent requests coming from the // frontend via the C code. VPN code needs to watch them and fullfill their // requests as soon as possible. @@ -144,6 +150,8 @@ func (a actions) MarshalJSON() ([]byte, error) { return b.Bytes(), nil } +// ----------------------------------------------------------------------------- + // The connectionCtx keeps the global state that is passed around to C-land. It // also serves as the primary way of passing requests from the frontend to the // Go-core, by letting the UI write some of these variables and processing -- cgit v1.2.3