agent_route

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	SourceType string `json:"source_type" binding:"required"`
	SourceID   uint   `json:"source_id" binding:"required"`
	Model      string `json:"model"`
	AgentID    string `json:"agent_id"`
	AgentTag   string `json:"agent_tag"`
}

type Handler

type Handler struct{}

func (*Handler) Create

func (*Handler) Delete

func (h *Handler) Delete(c *app.Context, req api.IDPathRequest) (api.StatusResponse, error)

func (*Handler) Get

func (*Handler) List

func (*Handler) Overview

func (*Handler) Update

func (h *Handler) Update(c *app.Context, req UpdateRequest) (models.AgentRoute, error)

type ListRequest

type ListRequest struct {
	api.PaginationQuery
	SourceType string `form:"source_type"`
	SourceID   string `form:"source_id"`
}

type OverviewItem

type OverviewItem struct {
	ID         uint   `json:"id"`
	SourceType string `json:"source_type"`
	SourceID   uint   `json:"source_id"`
	SourceName string `json:"source_name"`
	Model      string `json:"model"`
	AgentID    string `json:"agent_id"`
	AgentName  string `json:"agent_name"`
	AgentTag   string `json:"agent_tag"`
	Priority   int    `json:"priority"`
	CreatedAt  int64  `json:"created_at"`
	UpdatedAt  int64  `json:"updated_at"`
}

type OverviewRequest

type OverviewRequest struct {
	api.PaginationQuery
	Query      string `form:"q"`
	SourceType string `form:"source_type"`
	SourceID   string `form:"source_id"`
	Model      string `form:"model"`
	AgentID    string `form:"agent_id"`
}

func (OverviewRequest) Filter added in v0.0.15

type UpdateRequest

type UpdateRequest struct {
	ID         string  `uri:"id" binding:"required"`
	SourceType *string `json:"source_type"`
	SourceID   *uint   `json:"source_id"`
	Model      *string `json:"model"`
	AgentID    *string `json:"agent_id"`
	AgentTag   *string `json:"agent_tag"`
}

func (UpdateRequest) Merge added in v0.0.13

Jump to

Keyboard shortcuts

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