Documentation
¶
Index ¶
- type Gateway
- func (g *Gateway) GRPCAddr() string
- func (g *Gateway) GRPCServer() *grpc.Server
- func (g *Gateway) Scheduler() *scheduler.Scheduler
- func (g *Gateway) Shutdown()
- func (g *Gateway) SourceRegistry() *sources.Registry
- func (g *Gateway) Start() error
- func (g *Gateway) StartAsync() error
- func (g *Gateway) ToolRegistry() *tools.Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
Config types.AppConfig
RedisClient *common.RedisClient
MongoClient *common.MongoClient
BackendRepo repository.BackendRepository
// contains filtered or unexported fields
}
func NewGateway ¶
func (*Gateway) GRPCServer ¶
GRPCServer returns the gRPC server for registering services
func (*Gateway) Shutdown ¶
func (g *Gateway) Shutdown()
Shutdown gracefully shuts down the gateway (exported for external use)
func (*Gateway) SourceRegistry ¶
SourceRegistry returns the source registry for registering providers
func (*Gateway) StartAsync ¶
Start is the gateway entry point StartAsync starts the gateway servers without blocking. Use this when embedding the gateway in another process (e.g., CLI).
func (*Gateway) ToolRegistry ¶
ToolRegistry returns the tool registry for registering providers
Click to show internal directories.
Click to hide internal directories.