package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Functions

Connect creates a new connection that uses the established socket to communicate with the Perfetto service.
NewBindSync returns a new BindSync.
NewIgnoreHandler returns an InvokeHanlder that ignores the returned result, but propagates errors and ensure the response is not streaming.
NewInvokeSync returns a new InvokeSync.
NewPacketWriter returns a packet writer that serializes to the given writer.
NewQuerySync returns an InvokeSync that handles unmarshalling the proto bytes and invokes the given callback.
NewReadHandler returns an InvokeHandler that handles unmarshalling the proto bytes of a ReadBuffers response and invokes the given callback.
NewTraceHandler returns an InvokeHandler that handles unmarshalling the proto bytes of an EnableTrace response and invokes the given callback.

# Structs

BindSync is a sync helper to turn async Bind calls into sync ones.
Connection is a connection to the Perfetto service.
InvokeSync is a sync helper to turn async Invoke calls into sync ones.
Method represents an RPC method that can be called on the Perfetto service.
PacketWriter serializes Perfetto packets to a Writer.

# Type aliases

BindHandler is the callback invoked when the Bind completes.
InvokeHandler is the callback invoked when an Invoke gets a response.