conn

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Driver    *kernelbinder.Driver
	Transport binder.Transport
	SM        *servicemanager.ServiceManager
}

Conn wraps the binder driver and service manager into a single connection handle for CLI subcommands.

func Open

func Open(
	ctx context.Context,
	cmd *cobra.Command,
) (_conn *Conn, _err error)

Open opens a binder driver connection and creates a service manager client.

func (*Conn) Close

func (c *Conn) Close(
	ctx context.Context,
) (_err error)

Close releases the binder driver resources.

func (*Conn) GetService

func (c *Conn) GetService(
	ctx context.Context,
	name string,
) (_binder binder.IBinder, _err error)

GetService looks up a registered binder service by name. Returns an error if the service is not found.

Jump to

Keyboard shortcuts

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