handlers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAddLocalComment

func HandleAddLocalComment(w http.ResponseWriter, r *http.Request)

func HandleAddLocalLabel

func HandleAddLocalLabel(w http.ResponseWriter, r *http.Request)

func HandleAddLocalReaction

func HandleAddLocalReaction(w http.ResponseWriter, r *http.Request)

func HandleAddRepository

func HandleAddRepository(w http.ResponseWriter, r *http.Request)

func HandleCloneRepository

func HandleCloneRepository(w http.ResponseWriter, r *http.Request)

func HandleCreateLocalIssue

func HandleCreateLocalIssue(w http.ResponseWriter, r *http.Request)

func HandleDeleteLocalIssue

func HandleDeleteLocalIssue(w http.ResponseWriter, r *http.Request)

func HandleDeleteLocalPullRequest

func HandleDeleteLocalPullRequest(w http.ResponseWriter, r *http.Request)

func HandleDeleteRepository

func HandleDeleteRepository(w http.ResponseWriter, r *http.Request)

func HandleGetLocalDiff

func HandleGetLocalDiff(w http.ResponseWriter, r *http.Request)

func HandleGetSettings

func HandleGetSettings(w http.ResponseWriter, r *http.Request)

func HandleGitHubIssues

func HandleGitHubIssues(w http.ResponseWriter, r *http.Request)

func HandleGitHubRepositories

func HandleGitHubRepositories(w http.ResponseWriter, r *http.Request)

func HandleListRepositories

func HandleListRepositories(w http.ResponseWriter, r *http.Request)

func HandleLocalProviderPage

func HandleLocalProviderPage(w http.ResponseWriter, r *http.Request)

func HandleLogs

func HandleLogs(w http.ResponseWriter, r *http.Request)

func HandleModels

func HandleModels(w http.ResponseWriter, r *http.Request)

func HandleSwitchProvider

func HandleSwitchProvider(w http.ResponseWriter, r *http.Request)

func HandleSyncRepository

func HandleSyncRepository(w http.ResponseWriter, r *http.Request)

func HandleTemplateValues

func HandleTemplateValues(w http.ResponseWriter, r *http.Request)

func HandleTools

func HandleTools(w http.ResponseWriter, r *http.Request)

func HandleUpdateLocalIssueState

func HandleUpdateLocalIssueState(w http.ResponseWriter, r *http.Request)

func HandleUpdateLocalPullRequestState

func HandleUpdateLocalPullRequestState(w http.ResponseWriter, r *http.Request)

func HandleUpdateRepository

func HandleUpdateRepository(w http.ResponseWriter, r *http.Request)

func HandleUpdateSettings

func HandleUpdateSettings(w http.ResponseWriter, r *http.Request)

func HandleValidationFunctions

func HandleValidationFunctions(w http.ResponseWriter, r *http.Request)

func InitTemplates

func InitTemplates(t *template.Template)

Types

type Conversation

type Conversation struct {
	ID           string
	StartTime    time.Time
	Messages     []LogEntry
	MessageCount int
	Status       string // Status based on last message level
}

type LocalPageData

type LocalPageData struct {
	Repository   interface{}
	Issues       []types.Issue
	PullRequests []types.PullRequest
	Page         string
	Settings     settings.Settings
}

type LogEntry

type LogEntry struct {
	Level     string  `json:"level"`
	TimeStamp float64 `json:"ts"`
	Time      time.Time
	Logger    string `json:"logger"`
	Caller    string `json:"caller"`
	Message   string `json:"msg"`
	Content   string `json:"content,omitempty"`
	Model     string `json:"model,omitempty"`
	Error     string `json:"error,omitempty"`
	ID        string `json:"id,omitempty"`
}

type LogsData

type LogsData struct {
	Page          string
	Conversations []Conversation
}

type RepoAddRequest

type RepoAddRequest struct {
	RepoURL  string `json:"repoUrl"`
	BasePath string `json:"path"`
	Schedule string `json:"schedule"`
}

Jump to

Keyboard shortcuts

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