router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugRouter

func NewDebugRouter(config *Config)

NewDebugRouter configures debug endpoints for memory monitoring and diagnostics. These endpoints are useful for monitoring server health and debugging memory leaks.

Endpoints:

  • GET /debug/memory - Get detailed memory statistics
  • POST /debug/gc - Force garbage collection
  • GET /debug/goroutines - Get full goroutine stack traces
  • GET /debug/goroutines/stats - Get goroutine count summary

func NewGitRouter

func NewGitRouter(c *Config)

func NewRepoRouter

func NewRepoRouter(c *Config)

Types

type Config

type Config struct {
	Logger  zerolog.Logger
	Fiber   *fiber.App
	Storage storage.GitRepositoryStorage
}

func (*Config) Configure

func (c *Config) Configure()

Jump to

Keyboard shortcuts

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