libkeybase

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

libkeybase

An attempt at a new low level keybase interface that prevents each command from re-spawning a new keybase instance on low memory systems.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Timeout time.Duration
	// contains filtered or unexported fields
}

API is the basic primitive of the API, holding the actual application calls and pipes

func NewAPI

func NewAPI(arg RunOptions) *API

func (*API) Listen

func (a *API) Listen() (out chan string, err error)

func (*API) Start

func (a *API) Start() error

func (*API) Stop

func (a *API) Stop()

func (*API) Write

func (a *API) Write(in string) (out string, err error)

type RunOptions

type RunOptions struct {
	KeybaseLoction  string
	HomeDir         string
	Username        string
	PaperKey        string
	EnableTyping    bool
	BotLiteMode     bool
	ChannelCapacity int
}

RunOptions holds... run... options...

func (RunOptions) Location

func (r RunOptions) Location() string

Location attempts to find the location of the keybase binary in the following order: 1. What the user has specified as the location [user specified] 2. Looks up the binary location using exec.LookPath [default] 3. Returns "keybase" and hopes its pathed on the users system [fallback]

Jump to

Keyboard shortcuts

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