imbridgesvc

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr  string // IMBRIDGE_LISTEN_ADDR, default ":8083"
	DatabaseURL string // DATABASE_URL (shared PostgreSQL with agentserver)
}

Config holds configuration for the standalone imbridge service.

func LoadConfigFromEnv

func LoadConfigFromEnv() Config

LoadConfigFromEnv returns a Config populated from environment variables.

type Server

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

Server is the standalone imbridge HTTP service.

func NewServer

func NewServer(database *db.DB, authSvc *auth.Auth, sandboxStore *sbxstore.Store, bridge *imbridge.Bridge) *Server

NewServer creates a new imbridge service.

func (*Server) RestorePollers

func (s *Server) RestorePollers()

RestorePollers restarts long-poll goroutines for all active workspace IM channels. Called once during startup to recover from restarts — the cursor is persisted in DB, so pollers resume without message loss.

func (*Server) Routes

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

Routes returns the HTTP handler for all imbridge endpoints.

Jump to

Keyboard shortcuts

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