api

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is tunr's internal API server. Handles Paddle webhooks and serves the inspector API. Not exposed directly — sits behind nginx/Caddy in production.

func New

func New(port int, paddleClient *billing.PaddleClient, ins *inspector.Inspector) *Server

New creates an API server

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns an http.Handler with all API routes wired up

Jump to

Keyboard shortcuts

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