Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
CORSMiddleware applies CORS headers based on the provided configuration using rs/cors package
Types ¶
type RouterService ¶
type RouterService struct {
// contains filtered or unexported fields
}
RouterService manages API routing and server lifecycle
func NewRouterService ¶
func NewRouterService(port string, hostname string) *RouterService
NewRouterService creates a new router service with the given port and hostname
func (*RouterService) RegisterAPI ¶
RegisterAPI registers a new API with the router service
func (*RouterService) StartServer ¶
func (rs *RouterService) StartServer(ctx context.Context)
startServer starts the HTTP server
func (*RouterService) StopServer ¶
func (rs *RouterService) StopServer()
func (*RouterService) UpdateLogger ¶
func (rs *RouterService) UpdateLogger()
Click to show internal directories.
Click to hide internal directories.