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 SetupSubRouters ¶
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 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.