systemapi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package systemapi provides components for the System API service.

Index

Constants

This section is empty.

Variables

View Source
var MaxEvents = common.GetEnvInt("MAX_EVENTS", 1000)

Functions

This section is empty.

Types

type Event

type Event struct {
	ReceivedAt time.Time `json:"received_at"`
	Message    string    `json:"message"`
}

type HTTPServerConfig

type HTTPServerConfig struct {
	ListenAddr   string
	Log          *httplog.Logger
	PipeFilename string
	EnablePprof  bool

	DrainDuration            time.Duration
	GracefulShutdownDuration time.Duration
	ReadTimeout              time.Duration
	WriteTimeout             time.Duration
}

type Server

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

func NewServer

func NewServer(cfg *HTTPServerConfig) (srv *Server, err error)

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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