Documentation ¶
Index ¶
- func AppBeginBackgroundTask(pusher PushNotifier)
- func AppBeginBackgroundTaskNonblock(pusher PushNotifier)
- func AppDidEnterBackground() bool
- func AppWillExit(pusher PushNotifier)
- func BackgroundSync()
- func ExtensionDetectMIMEType(filename string) (res string, err error)
- func ExtensionForceGC()
- func ExtensionGetInbox() (res string, err error)
- func ExtensionGetSavedConv() string
- func ExtensionInit(homeDir string, mobileSharedHome string, logFile string, runModeStr string, ...) (err error)
- func ExtensionIsInited() bool
- func ExtensionPostFile(strConvID, strOutboxID, name string, public bool, membersType int, ...) (err error)
- func ExtensionPostImage(strConvID, strOutboxID, name string, public bool, membersType int, ...) (err error)
- func ExtensionPostText(strConvID, strOutboxID, name string, public bool, membersType int, body string, ...) (err error)
- func ExtensionPostVideo(strConvID, strOutboxID, name string, public bool, membersType int, ...) (err error)
- func ExtensionRegisterSend(strConvID string, pusher PushNotifier) (res string, err error)
- func ForceGC()
- func HandleBackgroundNotification(strConvID, body string, intMembersType int, displayPlaintext bool, ...) (err error)
- func Init(homeDir string, mobileSharedHome string, logFile string, runModeStr string, ...) (err error)
- func InitOnce(homeDir string, mobileSharedHome string, logFile string, runModeStr string, ...)
- func LogSend(status string, feedback string, sendLogs bool, ...) (res string, err error)
- func ReadB64() (res string, err error)
- func Reset() error
- func SetAppStateBackground()
- func SetAppStateBackgroundActive()
- func SetAppStateForeground()
- func SetAppStateInactive()
- func Version() string
- func WriteB64(str string) (err error)
- type ExternalDNSNSFetcher
- type NativeVideoHelper
- type PushNotifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppBeginBackgroundTask ¶
func AppBeginBackgroundTask(pusher PushNotifier)
AppBeginBackgroundTask notifies us that an app background task has been started on our behalf. This function will return once we no longer need any time in the background.
func AppBeginBackgroundTaskNonblock ¶
func AppBeginBackgroundTaskNonblock(pusher PushNotifier)
func AppDidEnterBackground ¶
func AppDidEnterBackground() bool
AppDidEnterBackground notifies the service that the app is in the background [iOS] returning true will request about ~3mins from iOS to continue execution
func AppWillExit ¶
func AppWillExit(pusher PushNotifier)
AppWillExit is called reliably on iOS when the app is about to terminate not as reliably on android
func BackgroundSync ¶
func BackgroundSync()
func ExtensionDetectMIMEType ¶
func ExtensionGetInbox ¶
func ExtensionGetSavedConv ¶
func ExtensionGetSavedConv() string
func ExtensionInit ¶
func ExtensionIsInited ¶
func ExtensionIsInited() bool
func ExtensionPostFile ¶
func ExtensionPostImage ¶
func ExtensionPostText ¶
func ExtensionPostVideo ¶
func ExtensionRegisterSend ¶
func ExtensionRegisterSend(strConvID string, pusher PushNotifier) (res string, err error)
func Init ¶
func Init(homeDir string, mobileSharedHome string, logFile string, runModeStr string, accessGroupOverride bool, externalDNSNSFetcher ExternalDNSNSFetcher, nvh NativeVideoHelper) (err error)
Init runs the Keybase services
func InitOnce ¶
func InitOnce(homeDir string, mobileSharedHome string, logFile string, runModeStr string, accessGroupOverride bool, dnsNSFetcher ExternalDNSNSFetcher, nvh NativeVideoHelper)
InitOnce runs the Keybase services (only runs one time)
func LogSend ¶
func LogSend(status string, feedback string, sendLogs bool, uiLogPath, traceDir, cpuProfileDir string) (res string, err error)
LogSend sends a log to Keybase
func ReadB64 ¶
ReadB64 is a blocking read for base64 encoded msgpack rpc data. It is called serially by the mobile run loops.
func SetAppStateBackground ¶
func SetAppStateBackground()
func SetAppStateBackgroundActive ¶
func SetAppStateBackgroundActive()
func SetAppStateForeground ¶
func SetAppStateForeground()
func SetAppStateInactive ¶
func SetAppStateInactive()
Types ¶
type ExternalDNSNSFetcher ¶
type ExternalDNSNSFetcher interface {
GetServers() []byte
}