server

package
v0.0.0-...-9970c52 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewHttpServer

func NewHttpServer(r router.RouterInterface) (*gin.Engine, error)

Types

type CronJob

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

func NewCronJob

func NewCronJob(
	cleanDuplicateFiringer v1.CleanDuplicateFiringer,
	cleanExpiredSilencer v1.CleanExpiredSilencer,
	cleanInhibitAlert v1.AlertInhibiter,
) *CronJob

func (*CronJob) Start

func (receiver *CronJob) Start() error

func (*CronJob) Stop

func (receiver *CronJob) Stop() error

type Server

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

func NewServer

func NewServer(server *gin.Engine) *Server

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop() error

type ServerInterface

type ServerInterface interface {
	Start() error
	Stop() error
}

Jump to

Keyboard shortcuts

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