app

package
v0.0.0-...-8b3bb58 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 App

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

func NewApp

func NewApp() *App

func (*App) CopyToClipboard

func (a *App) CopyToClipboard(text string) error

func (*App) GetAPIToken

func (a *App) GetAPIToken() string

func (*App) GetConfigStatus

func (a *App) GetConfigStatus() map[string]interface{}

func (*App) GetTickets

func (a *App) GetTickets() []Ticket

func (*App) HideWindow

func (a *App) HideWindow()

func (*App) OpenInBrowser

func (a *App) OpenInBrowser(url string) error

func (*App) SaveConfig

func (a *App) SaveConfig(baseURL string, projects []string, windowPos string) error

func (*App) SetAPIToken

func (a *App) SetAPIToken(token string) error

func (*App) Startup

func (a *App) Startup(ctx context.Context)

func (*App) SyncTickets

func (a *App) SyncTickets() error

type Config

type Config struct {
	BaseURL      string   `json:"base_url"`
	Projects     []string `json:"projects"`
	WindowPos    string   `json:"window_pos"`
	LastSyncTime int64    `json:"last_sync_time"`
}

type Ticket

type Ticket struct {
	ID       string   `json:"id"`
	Summary  string   `json:"summary"`
	Type     string   `json:"type"`
	Priority string   `json:"priority"`
	Sprints  []string `json:"sprints"`
	URL      string   `json:"url"`
}

type YouTrackIssue

type YouTrackIssue struct {
	IDReadable   string `json:"idReadable"`
	Summary      string `json:"summary"`
	URL          string `json:"url"`
	CustomFields []struct {
		Name  string      `json:"name"`
		Value interface{} `json:"value"`
	} `json:"customFields"`
}

type YouTrackResponse

type YouTrackResponse struct {
	Issues []YouTrackIssue `json:"issues"`
}

Jump to

Keyboard shortcuts

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