stat

package
v0.0.0-...-bae2323 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	ByteCount  int64 `json:"byteCount"`
	ImageCount int   `json:"imageCount"`
	TimeCount  int64 `json:"timeCount"`

	Runtime *wails.Runtime
	Logger  *wails.CustomLogger
	// contains filtered or unexported fields
}

Stat represents application statistics.

func NewStat

func NewStat() *Stat

NewStat returns a new Stat instance.

func (*Stat) GetStats

func (s *Stat) GetStats() map[string]interface{}

GetStats returns the application stats.

func (*Stat) SetByteCount

func (s *Stat) SetByteCount(b int64)

SetByteCount adds and persists the given byte count to the app stats.

func (*Stat) SetImageCount

func (s *Stat) SetImageCount(i int)

SetImageCount adds and persists the given image count to the app stats.

func (*Stat) SetTimeCount

func (s *Stat) SetTimeCount(t int64)

SetTimeCount adds and persists the given time count to the app stats.

func (*Stat) WailsInit

func (s *Stat) WailsInit(runtime *wails.Runtime) error

WailsInit performs setup when Wails is ready.

Jump to

Keyboard shortcuts

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