service

package
v0.0.0-...-44c389a Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 BucketResultRow

type BucketResultRow struct {
	Key   string     `json:"key"`
	Over  BucketSide `json:"over"`
	Under BucketSide `json:"under"`
}

func NewBucketResultRow

func NewBucketResultRow() BucketResultRow

type BucketService

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

func NewBucketService

func NewBucketService(db *sql.DB) *BucketService

func (*BucketService) IndexBucket

func (b *BucketService) IndexBucket() ([]string, error)

func (*BucketService) ShowBucket

func (b *BucketService) ShowBucket(compareTo string, pivotPoint float64) ([]BucketResultRow, error)

type BucketSide

type BucketSide struct {
	Average float64 `json:"average"`
	Count   int     `json:"count"`
}

Jump to

Keyboard shortcuts

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