service

package
v0.0.0-...-851419f Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AverageNumberService

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

func (*AverageNumberService) GetAverage

func (s *AverageNumberService) GetAverage(ctx context.Context) float64

func (*AverageNumberService) GetStoredCount

func (s *AverageNumberService) GetStoredCount(ctx context.Context, n int) int

func (*AverageNumberService) Run

func (s *AverageNumberService) Run() chan bool

type Service

type Service interface {
	GetAverage(ctx context.Context) float64
	GetStoredCount(ctx context.Context, n int) int
	Run() chan bool
}

func NewAverageNumberService

func NewAverageNumberService(f func() int) Service

Jump to

Keyboard shortcuts

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