gateway

package
v0.1.147 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 46 Imported by: 0

Documentation

Index

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 NewGateway() (*Gateway, error)

func (*Gateway) GRPCAddr

func (g *Gateway) GRPCAddr() string

GRPCAddr returns the gateway's gRPC address

func (*Gateway) GRPCServer

func (g *Gateway) GRPCServer() *grpc.Server

GRPCServer returns the gRPC server for registering services

func (*Gateway) Scheduler

func (g *Gateway) Scheduler() *scheduler.Scheduler

Scheduler returns the scheduler instance

func (*Gateway) Shutdown

func (g *Gateway) Shutdown()

Shutdown gracefully shuts down the gateway (exported for external use)

func (*Gateway) SourceRegistry

func (g *Gateway) SourceRegistry() *sources.Registry

SourceRegistry returns the source registry for registering providers

func (*Gateway) Start

func (g *Gateway) Start() error

func (*Gateway) StartAsync

func (g *Gateway) StartAsync() error

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

func (g *Gateway) ToolRegistry() *tools.Registry

ToolRegistry returns the tool registry for registering providers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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