ticker

package
v0.0.0-...-ec37f7a Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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 Summary

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

type SummaryInt

type SummaryInt interface {
	IncreaseTotalUnits()
	ResetMessagePerSecond()
	IncreaseTotalReached()
	GetSummary() (SummaryResponse, error)
	Tick()
}

type SummaryResponse

type SummaryResponse struct {
	TotalUnits   int64
	TotalReached int64
}

type SummaryService

type SummaryService struct{}

func (*SummaryService) GetSummary

func (s *SummaryService) GetSummary() (SummaryResponse, error)

func (*SummaryService) IncreaseTotalReached

func (s *SummaryService) IncreaseTotalReached()

func (*SummaryService) IncreaseTotalUnits

func (s *SummaryService) IncreaseTotalUnits()

func (*SummaryService) ResetMessagePerSecond

func (s *SummaryService) ResetMessagePerSecond()

func (*SummaryService) Tick

func (s *SummaryService) Tick()

Jump to

Keyboard shortcuts

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