Versions in this module Expand all Collapse all v0 v0.8.2 Feb 28, 2024 v0.8.1 Nov 27, 2023 v0.8.0 Oct 6, 2023 v0.7.2 Aug 21, 2023 v0.7.1 Jul 1, 2023 v0.7.0 May 29, 2023 v0.6.2 Apr 27, 2023 v0.6.1 Mar 31, 2023 Changes in this version type Reporter + func NewReporter() Reporter v0.6.0 Feb 28, 2023 v0.5.2 Jan 18, 2023 Changes in this version type Report + Hostname string v0.5.1 Dec 15, 2022 v0.5.0 Nov 15, 2022 v0.4.4 Sep 26, 2022 Changes in this version type Report + Commit string + CurrentTime timeutil.Time + StartTime timeutil.Time + UpTime core.Duration v0.4.3 Jul 4, 2022 v0.4.2 Jun 3, 2022 v0.4.1 May 10, 2022 v0.4.0 Apr 19, 2022 Changes in this version + type ApiStat struct + AccessCount uint64 + VisitorStat map[string]uint64 + type ConnStat struct + Addr string + AuthTime timeutil.Time + ConnectTime timeutil.Time + DisconnectTime timeutil.Time + IsAuth bool + LifeTime core.Duration + Perm string + UserName string + type EventStat map[string]uint64 + type Report struct + ApiStat ApiStat + EventStat EventStat + Events *toplist.TopList + GOARCH string + GOOS string + GOVersion string + Offline []*ConnStat + Online map[string]*ConnStat + PPid int + Pid int + Version string + type Reporter struct + var GlobalReporter *Reporter + func (r *Reporter) DeleteConnection(addr string) + func (r *Reporter) Enable(enabled bool) + func (r *Reporter) GetReport() Report + func (r *Reporter) PutApiStat(ip string) + func (r *Reporter) PutAuth(addr string, user *auth.HashUser) + func (r *Reporter) PutConnection(addr string) + func (r *Reporter) PutEvent(event eventlog.Event)