routers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package routers defines the HTTP routes for the ADK REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(routers ...Router) *mux.Router

NewRouter creates a new router for any number of api routers

func SetupSubRouters

func SetupSubRouters(router *mux.Router, subrouters ...Router)

SetupSubRouters adds routes from subrouter to the naub router

Types

type AppsAPIRouter

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

AppsAPIRouter defines the routes for the Apps API.

func NewAppsAPIRouter

func NewAppsAPIRouter(controller *controllers.AppsAPIController) *AppsAPIRouter

NewAppsAPIRouter creates a new AppsAPIRouter.

func (*AppsAPIRouter) Routes

func (r *AppsAPIRouter) Routes() Routes

Routes returns the routes for the Apps API.

type ArtifactsAPIRouter

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

ArtifactsAPIRouter defines the routes for the Artifacts API.

func NewArtifactsAPIRouter

func NewArtifactsAPIRouter(controller *controllers.ArtifactsAPIController) *ArtifactsAPIRouter

NewArtifactsAPIRouter creates a new ArtifactsAPIRouter.

func (*ArtifactsAPIRouter) Routes

func (r *ArtifactsAPIRouter) Routes() Routes

Routes returns the routes for the Artifacts API.

type DebugAPIRouter

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

DebugAPIRouter defines the routes for the Debug API.

func NewDebugAPIRouter

func NewDebugAPIRouter(controller *controllers.DebugAPIController) *DebugAPIRouter

NewDebugAPIRouter creates a new DebugAPIRouter.

func (*DebugAPIRouter) Routes

func (r *DebugAPIRouter) Routes() Routes

Routes returns the routes for the Debug API.

type EvalAPIRouter

type EvalAPIRouter struct{}

EvalAPIRouter defines the routes for the Eval API.

func (*EvalAPIRouter) Routes

func (r *EvalAPIRouter) Routes() Routes

Routes returns the routes for the Apps API.

type Route

type Route struct {
	Name        string
	Methods     []string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

A Route defines the parameters for an api endpoint

type Router

type Router interface {
	Routes() Routes
}

Router defines the required methods for retrieving api routes

type Routes

type Routes []Route

Routes is a list of defined api endpoints

type RuntimeAPIRouter

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

RuntimeAPIRouter defines the routes for the Runtime API.

func NewRuntimeAPIRouter

func NewRuntimeAPIRouter(controller *controllers.RuntimeAPIController) *RuntimeAPIRouter

NewRuntimeAPIRouter creates a new RuntimeAPIRouter.

func (*RuntimeAPIRouter) Routes

func (r *RuntimeAPIRouter) Routes() Routes

Routes returns the routes for the Runtime API.

type SessionsAPIRouter

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

SessionsAPIRouter defines the routes for the Sessions API.

func NewSessionsAPIRouter

func NewSessionsAPIRouter(controller *controllers.SessionsAPIController) *SessionsAPIRouter

NewSessionsAPIRouter creates a new SessionsAPIRouter.

func (*SessionsAPIRouter) Routes

func (r *SessionsAPIRouter) Routes() Routes

Routes returns the routes for the Sessions API.

Jump to

Keyboard shortcuts

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