server

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddress      = ":0"
	DefaultDatabaseHost = "localhost"
	DefaultDatabasePort = 5432
	DefaultDatabaseUser = "varlog_benchmark"
	DefaultDatabaseName = "varlog_benchmark"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAddress

func WithAddress(addr string) Option

func WithDatabaseHost

func WithDatabaseHost(databaseHost string) Option

func WithDatabaseName

func WithDatabaseName(databaseName string) Option

func WithDatabasePassword

func WithDatabasePassword(databasePassword string) Option

func WithDatabasePort

func WithDatabasePort(databasePort int) Option

func WithDatabaseUser

func WithDatabaseUser(databaseUser string) Option

type Server

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

func New

func New(opts ...Option) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Run

func (s *Server) Run() error

type Workload

type Workload struct {
	Name   string
	Metric []WorkloadMetric
}

type WorkloadMetric added in v0.10.0

type WorkloadMetric struct {
	MetricName string
	Targets    []WorkloadTarget
}

type WorkloadTarget added in v0.10.0

type WorkloadTarget struct {
	TargetName string

	ChartID   string
	ChartName string
	XValues   []string
	XTitle    string
	YValues   []float64
	YTitle    string
}

Jump to

Keyboard shortcuts

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