server

package
v1.1.1-0...-a687fc2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserAuthenticated

func IsUserAuthenticated(accessToken string) (bool, error)

func Run

func Run(port, localVitessPath string) error

func SetSLogger

func SetSLogger(newSlog *zap.SugaredLogger)

SetSLogger sets the *zap.SugaredLogger of this package.

Types

type CompareMacrobench

type CompareMacrobench struct {
	Workload string                               `json:"workload"`
	Result   macrobench.StatisticalCompareResults `json:"result"`
}

type ErrorAPI

type ErrorAPI struct {
	Error string `json:"error"`
}

type ExecutionMetadatas

type ExecutionMetadatas struct {
	Workloads []string `json:"workloads"`
	Sources   []string `json:"sources"`
	Statuses  []string `json:"statuses"`
}

type ExecutionQueue

type ExecutionQueue struct {
	Source        string `json:"source"`
	GitRef        string `json:"git_ref"`
	Workload      string `json:"workload"`
	PullNb        int    `json:"pull_nb"`
	ProfileBinary string `json:"profile_binary"`
	ProfileMode   string `json:"profile_mode"`
}

type ExecutionQueueResponse

type ExecutionQueueResponse struct {
	Executions []ExecutionQueue `json:"executions"`
	ExecutionMetadatas
}

type ExecutionRequest

type ExecutionRequest struct {
	Auth               string   `json:"auth"`
	Source             string   `json:"source"`
	SHA                string   `json:"sha"`
	PR                 string   `json:"pr"`
	Workloads          []string `json:"workloads"`
	NumberOfExecutions string   `json:"number_of_executions"`
	EnableProfile      bool     `json:"enable_profile"`
	BinaryToProfile    string   `json:"binary_to_profile"`
	ProfileMode        string   `json:"profile_mode"`
}

type RecentExecutions

type RecentExecutions struct {
	UUID          string     `json:"uuid"`
	Source        string     `json:"source"`
	GitRef        string     `json:"git_ref"`
	Status        string     `json:"status"`
	Workload      string     `json:"workload"`
	PullNb        int        `json:"pull_nb"`
	GolangVersion string     `json:"golang_version"`
	StartedAt     *time.Time `json:"started_at"`
	FinishedAt    *time.Time `json:"finished_at"`
	ProfileBinary string     `json:"profile_binary"`
	ProfileMode   string     `json:"profile_mode"`
}

type RecentExecutionsResponse

type RecentExecutionsResponse struct {
	Executions []RecentExecutions `json:"executions"`
	ExecutionMetadatas
}

type Server

type Server struct {

	// Mode used to run the server.
	server.Mode
	// contains filtered or unexported fields
}

func (*Server) AddToCommand

func (s *Server) AddToCommand(cmd *cobra.Command)

func (*Server) Init

func (s *Server) Init() error

func (*Server) Run

func (s *Server) Run() error

type VitessGitRefReleases

type VitessGitRefReleases struct {
	Tags     []*git.Release `json:"tags"`
	Branches []*git.Release `json:"branches"`
}

Jump to

Keyboard shortcuts

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