server

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Config  *ServerConfig
	Storage data_access.StorageInterface
}

Server is server to query trace stats

func NewAPIServer

func NewAPIServer(config *ServerConfig) (*Server, error)

NewAPIServer create new API server

func (*Server) StartServer

func (s *Server) StartServer(stopCh chan struct{})

type ServerConfig

type ServerConfig struct {
	MetricsAddr string
	ListenAddr  string
	Storage     data_access.StorageInterface
}

Jump to

Keyboard shortcuts

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