repository

package
v0.0.0-...-bc124f8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkModelMongodb

type BenchmarkModelMongodb struct {
	Id            string               `json:"id" bson:"_id"`
	BenchmarkType entity.BenchmarkType `json:"benchmark_type" bson:"benchmark_type"`
	Data          []int                `json:"data" bson:"data"`
	Results       []entity.Result      `json:"results" bson:"results"`
	Faster        entity.Result        `json:"faster" bson:"faster"`
	Slower        entity.Result        `json:"slower" bson:"slower"`
	CreatedAt     time.Time            `json:"created_at" bson:"created_at"`
}

type BenchmarkMongodb

type BenchmarkMongodb struct {
	Client *mongo.Client
	// contains filtered or unexported fields
}

func NewBenchmarkMongodb

func NewBenchmarkMongodb(client *mongo.Client) *BenchmarkMongodb

func (*BenchmarkMongodb) Get

func (o *BenchmarkMongodb) Get(id string) (*entity.Benchmark, error)

func (*BenchmarkMongodb) GetAll

func (o *BenchmarkMongodb) GetAll(benchmarkName string) ([]*entity.Benchmark, error)

func (*BenchmarkMongodb) Save

func (b *BenchmarkMongodb) Save(benchmark *entity.Benchmark) error

Jump to

Keyboard shortcuts

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