api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

APIServer is the main server structure

func NewAPIServer

func NewAPIServer(config Config) *APIServer

NewAPIServer creates a new API server

func (*APIServer) Run

func (s *APIServer) Run() error

Run starts the API server

func (*APIServer) SetupRoutes

func (s *APIServer) SetupRoutes()

SetupRoutes configures all API routes

type Config

type Config struct {
	Port           string
	LogLevel       string
	RateLimitReqs  int
	RateLimitBurst int
}

Config holds application configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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