transport

package
v1.134.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MPL-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOTransport

type IOTransport struct {
	Stderr      io.Writer
	AccountsDir string
	Cmd         string
	// contains filtered or unexported fields
}

Delta Chat RPC transport using external deltachat-rpc-server program

func NewIOTransport

func NewIOTransport() *IOTransport

func (*IOTransport) Call

func (self *IOTransport) Call(ctx context.Context, method string, params ...any) error

func (*IOTransport) CallResult

func (self *IOTransport) CallResult(ctx context.Context, result any, method string, params ...any) error

func (*IOTransport) Close

func (self *IOTransport) Close()

func (*IOTransport) Open

func (self *IOTransport) Open() error

type RpcTransport

type RpcTransport interface {
	// Request the RPC server to call a function that does not have a return value.
	Call(ctx context.Context, method string, params ...any) error
	// Request the RPC server to call a function that does have a return value.
	CallResult(ctx context.Context, result any, method string, params ...any) error
}

Delta Chat RPC client's transport.

type TransportStartedErr

type TransportStartedErr struct{}

TransportStartedErr is returned by IOTransport.Open() if the Transport is already started

func (*TransportStartedErr) Error

func (self *TransportStartedErr) Error() string

Jump to

Keyboard shortcuts

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