server

package
v0.0.0-...-6606c74 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegRouter

func RegRouter()

Types

type HttpServer

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

func ProvideHttpServer

func ProvideHttpServer(cfg *setting.Config) (*HttpServer, error)

func (*HttpServer) Run

func (s *HttpServer) Run(ctx context.Context) error

type Server

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

func Initialize

func Initialize(cfg *setting.Config) (*Server, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context, reason string) error

Shutdown initiates Grafana graceful shutdown. This shuts down all running background services. Since Run blocks Shutdown supposed to be run from a separate goroutine.

Jump to

Keyboard shortcuts

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