Documentation ¶
Overview ¶
Package displayapi implements the biotinker:component:display API
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var API = resource.APINamespace("biotinker").WithComponentType("display")
API is the full API definition.
Functions ¶
func NewRPCServiceServer ¶
func NewRPCServiceServer(coll resource.APIResourceCollection[Display]) interface{}
NewRPCServiceServer returns a new RPC server for the gizmo API.
Types ¶
type Display ¶
type Display interface { resource.Resource DisplayBytes(ctx context.Context, data []byte) error WriteString(ctx context.Context, xloc, yloc int, text string) error DrawLine(ctx context.Context, x1, y1, x2, y2 int) error Reset(ctx context.Context) error }
Display defines the Go interface for the component (should match the protobuf methods.)
func NewClientFromConn ¶
func NewClientFromConn(conn rpc.ClientConn, remoteName string, name resource.Name, logger logging.Logger) Display
NewClientFromConn creates a new gizmo RPC client from an existing connection.
Click to show internal directories.
Click to hide internal directories.