Documentation
¶
Overview ¶
Package facetime provides local-only, user-confirmed macOS FaceTime handoff.
Index ¶
- Constants
- func Bridge(ctx context.Context, c Client, in io.Reader, out io.Writer) error
- func Display(s string) string
- func NewPicker(ctx context.Context, c Client) tea.Model
- func Validate(r Request) error
- type Address
- type AudioDevice
- type AudioProbe
- type BotDoctor
- type Client
- type Contact
- type NativeClient
- type Reply
- type Request
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func Bridge ¶
Bridge keeps all contact data on stdin/stdout, outside daemon logs and command history. Calling still ALWAYS requires the helper's native confirmation dialog.
Types ¶
type AudioDevice ¶
type AudioProbe ¶
type BotDoctor ¶
type BotDoctor struct {
OS string `json:"os"`
Microphone string `json:"microphone"`
AccessibilityTrusted bool `json:"accessibilityTrusted"`
Devices []AudioDevice `json:"devices"`
IncomingCallsImplemented bool `json:"incomingCallsImplemented"`
}
type NativeClient ¶
type NativeClient struct{}
type Reply ¶
type Reply struct {
Bot *BotDoctor `json:"bot,omitempty"`
Probe *AudioProbe `json:"probe,omitempty"`
Handler string `json:"handler,omitempty"`
Version int `json:"version"`
Permission string `json:"permission,omitempty"`
Available bool `json:"available"`
Contacts []Contact `json:"contacts,omitempty"`
NextOffset *int `json:"nextOffset,omitempty"`
Contact *Contact `json:"contact,omitempty"`
Opened bool `json:"opened"`
Error string `json:"error,omitempty"`
Code string `json:"code,omitempty"`
}
type Request ¶
type Request struct {
Version int `json:"version"`
Operation string `json:"operation"`
Search string `json:"search,omitempty"`
Offset int `json:"offset,omitempty"`
Limit int `json:"limit,omitempty"`
ContactID string `json:"contactID,omitempty"`
AddressID string `json:"addressID,omitempty"`
ExpectedValue string `json:"expectedValue,omitempty"`
ReceiveUID string `json:"receiveUID,omitempty"`
TransmitUID string `json:"transmitUID,omitempty"`
Seconds int `json:"seconds,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.