Documentation ¶ Index ¶ type Server func New(port int, paddleClient *billing.PaddleClient, ins *inspector.Inspector) *Server func (s *Server) Handler() http.Handler 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 Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.