cursorsync

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorAccount

type CursorAccount struct {
	ID       string    `json:"id"`
	Name     string    `json:"name"`
	Email    string    `json:"email"`
	Active   bool      `json:"active"`
	LastSync time.Time `json:"last_sync"`
}

type CursorSync

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

func NewCursorSync

func NewCursorSync(db *sql.DB) *CursorSync

func (*CursorSync) AddAccount

func (cs *CursorSync) AddAccount(account *CursorAccount)

func (*CursorSync) GetActiveAccount

func (cs *CursorSync) GetActiveAccount() *CursorAccount

func (*CursorSync) Init

func (cs *CursorSync) Init() error

func (*CursorSync) ListAccounts

func (cs *CursorSync) ListAccounts() []*CursorAccount

func (*CursorSync) Status

func (cs *CursorSync) Status() map[string]interface{}

func (*CursorSync) SwitchAccount

func (cs *CursorSync) SwitchAccount(id string) error

Jump to

Keyboard shortcuts

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