userdash

package
v0.1.59 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentStatsItem

type AgentStatsItem = apitypes.AgentStatsItem

type CallRecordA2AContext added in v0.1.14

type CallRecordA2AContext = apitypes.CallRecordA2AContext

type CallRecordAgentRef added in v0.1.14

type CallRecordAgentRef = apitypes.CallRecordAgentRef

type CallRecordItem added in v0.1.14

type CallRecordItem = apitypes.CallRecordItem

type CallRecordListResponse added in v0.1.14

type CallRecordListResponse = apitypes.CallRecordListResponse

type CreatorDashboardResponse

type CreatorDashboardResponse = apitypes.CreatorDashboardResponse

type CreatorSummary

type CreatorSummary = apitypes.CreatorSummary

type Handler

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

Handler serves user dashboard and run history endpoints. All routes require a valid JWT.

func NewHandler

func NewHandler(svc dashboardService) *Handler

func (*Handler) GetCreatorDashboard

func (h *Handler) GetCreatorDashboard(c echo.Context) error

func (*Handler) GetDashboard

func (h *Handler) GetDashboard(c echo.Context) error

func (*Handler) ListCallRecords added in v0.1.14

func (h *Handler) ListCallRecords(c echo.Context) error

func (*Handler) ListCreatorAgentRuns

func (h *Handler) ListCreatorAgentRuns(c echo.Context) error

func (*Handler) ListRuns

func (h *Handler) ListRuns(c echo.Context) error

func (*Handler) RegisterCoreAPI

func (h *Handler) RegisterCoreAPI(api *echo.Group, jwtMiddleware echo.MiddlewareFunc)

type RunListItem

type RunListItem = apitypes.RunListItem

type RunListResponse

type RunListResponse = apitypes.RunListResponse

type Service

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

func NewService

func NewService(pool *pgxpool.Pool) *Service

func (*Service) GetCreatorDashboard

func (s *Service) GetCreatorDashboard(ctx context.Context, creatorID uuid.UUID) (*CreatorDashboardResponse, error)

func (*Service) GetUserDashboard

func (s *Service) GetUserDashboard(ctx context.Context, userID uuid.UUID) (*UserDashboardResponse, error)

func (*Service) ListCallRecords added in v0.1.14

func (s *Service) ListCallRecords(ctx context.Context, userID uuid.UUID, view, query, sort, status, source, relation string, page, size int32) (*CallRecordListResponse, error)

func (*Service) ListCreatorAgentRuns

func (s *Service) ListCreatorAgentRuns(ctx context.Context, creatorID, agentID uuid.UUID, page, size int32) (*RunListResponse, error)

func (*Service) ListUserRuns

func (s *Service) ListUserRuns(ctx context.Context, userID uuid.UUID, page, size int32) (*RunListResponse, error)

type UsageStats

type UsageStats = apitypes.UsageStats

type UserDashboardResponse

type UserDashboardResponse = apitypes.UserDashboardResponse

Jump to

Keyboard shortcuts

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