stats

package
v0.100.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsService added in v0.25.0

func AsService(prof *Profiler) *services.Service

Types

type Profiler added in v0.25.0

type Profiler struct {
	api.Provider
	// contains filtered or unexported fields
}

func New

func New(title string) *Profiler

func (*Profiler) Get added in v0.25.0

func (r *Profiler) Get(key string) vars.Variable

func (*Profiler) Set added in v0.25.0

func (r *Profiler) Set(key string, value any) error

func (*Profiler) SetTimeLocation added in v0.25.0

func (r *Profiler) SetTimeLocation(loc *time.Location)

func (*Profiler) State added in v0.25.0

func (r *Profiler) State() State

func (*Profiler) Update added in v0.25.0

func (r *Profiler) Update()

type State

type State struct {
	// contains filtered or unexported fields
}

func (State) Get

func (s State) Get(key string) vars.Variable

func (State) MarshalJSON added in v0.31.0

func (s State) MarshalJSON() ([]byte, error)

func (State) Range

func (s State) Range(cb func(v vars.Variable))

func (State) String

func (s State) String() string

func (State) Time

func (s State) Time() time.Time

func (*State) UnmarshalJSON added in v0.31.0

func (s *State) UnmarshalJSON(data []byte) error

UnmarshalJSON customizes JSON deserialization for State.

func (State) Vars added in v0.39.0

func (s State) Vars() map[string]vars.Variable

MarshalJSON customizes JSON serialization for State.

Jump to

Keyboard shortcuts

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