keybase

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 30 Imported by: 0

README

Bind

Go bindable package that includes both Keybase client and KBFS for gomobile builds.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDidEnterBackground added in v1.0.48

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 added in v1.0.48

func AppWillExit()

AppWillExit is called reliably on iOS when the app is about to terminate not as reliably on android

func BackgroundSync

func BackgroundSync()

func ForceGC added in v1.0.41

func ForceGC()

ForceGC Forces a gc

func HandleBackgroundNotification

func HandleBackgroundNotification(strConvID string, intMembersType int, intMessageID int,
	pushID string, badgeCount int, unixTime int, body string, pusher PushNotifier) (err error)

func Init

func Init(homeDir string, logFile string, runModeStr string, accessGroupOverride bool,
	externalDNSNSFetcher ExternalDNSNSFetcher) error

Init runs the Keybase services

func InitOnce

func InitOnce(homeDir string, logFile string, runModeStr string, accessGroupOverride bool,
	dnsNSFetcher ExternalDNSNSFetcher)

InitOnce runs the Keybase services (only runs one time)

func LogSend

func LogSend(status string, feedback string, sendLogs bool, uiLogPath, traceDir string) (string, error)

LogSend sends a log to Keybase

func ReadB64

func ReadB64() (string, error)

ReadB64 is a blocking read for base64 encoded msgpack rpc data. It is called serially by the mobile run loops.

func Reset

func Reset() error

Reset resets the socket connection

func SetAppStateBackground added in v1.0.48

func SetAppStateBackground()

func SetAppStateBackgroundActive added in v1.0.48

func SetAppStateBackgroundActive()

func SetAppStateForeground added in v1.0.48

func SetAppStateForeground()

func SetAppStateInactive added in v1.0.48

func SetAppStateInactive()

func Version added in v1.0.18

func Version() string

Version returns semantic version string

func WriteB64

func WriteB64(str string) error

WriteB64 sends a base64 encoded msgpack rpc payload

Types

type ExternalDNSNSFetcher added in v1.0.21

type ExternalDNSNSFetcher interface {
	GetServers() []byte
}

type PushNotifier

type PushNotifier interface {
	LocalNotification(ident string, msg string, badgeCount int, soundName string, convID string, typ string)
}

Jump to

Keyboard shortcuts

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