stellar

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadKID = errors.New("bad KID")
View Source
var ErrCanceled = errors.New("canceled")
View Source
var ErrCannotDecrypt = errors.New("cannot decrypt")
View Source
var ErrTimeout = errors.New("request timed out")
View Source
var ErrWrongKID = errors.New("wrong KID")
View Source
var ErrWrongState = errors.New("wrong state")
View Source
var ErrWrongUID = errors.New("wrong UID")

Functions

func HandleRequest

func HandleRequest(ctx context.Context, xp rpc.Transporter, srv *rpc.Server, p RequestProcessor) (err error)

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Register

func (a *Client) Register(m libkb.MetaContext) (err error)

type RequestHandler

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

func (*RequestHandler) Reg1

func (a *RequestHandler) Reg1(ctx context.Context, arg keybase1.Reg1Arg) (ret keybase1.BinaryKID, err error)

func (*RequestHandler) Reg2

func (a *RequestHandler) Reg2(ctx context.Context, ctext []byte) (err error)

func (*RequestHandler) Run

func (a *RequestHandler) Run(ctx context.Context, xp rpc.Transporter, srv *rpc.Server)

type RequestProcessor

type RequestProcessor interface {
	Reg1(ctx context.Context, uid keybase1.UID, kid keybase1.BinaryKID, err error)
	Reg2(ctx context.Context, details keybase1.AirdropDetails, err error)
	Close(ctx context.Context, err error)
}

Jump to

Keyboard shortcuts

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