Documentation
¶
Overview ¶
Package button defines a button on your machine.
Package button contains a gRPC based button client.
Package button contains a gRPC based button service server.
Index ¶
Constants ¶
View Source
const SubtypeName = "button"
SubtypeName is a constant that identifies the component resource API string.
Variables ¶
View Source
var API = resource.APINamespaceRDK.WithComponentType(SubtypeName)
API is a variable that identifies the component resource API.
Functions ¶
func NamesFromRobot ¶
NamesFromRobot is a helper for getting all gripper names from the given Robot.
func NewRPCServiceServer ¶
func NewRPCServiceServer(coll resource.APIResourceCollection[Button]) interface{}
NewRPCServiceServer constructs an gripper gRPC service server. It is intentionally untyped to prevent use outside of tests.
Types ¶
type Button ¶
type Button interface { resource.Resource // Push pushes the button. // This will block until done or a new operation cancels this one. Push(ctx context.Context, extra map[string]interface{}) error }
A Button represents a physical button.
func FromDependencies ¶
func FromDependencies(deps resource.Dependencies, name string) (Button, error)
FromDependencies is a helper for getting the named button component from a collection of dependencies.
Click to show internal directories.
Click to hide internal directories.