Documentation ¶
Overview ¶
Package shell contains a shell service, along with a gRPC server and client
Index ¶
Constants ¶
View Source
const SubtypeName = resource.SubtypeName("shell")
SubtypeName is the name of the type of service.
Variables ¶
View Source
var Subtype = resource.NewSubtype( resource.ResourceNamespaceRDK, resource.ResourceTypeService, SubtypeName, )
Subtype is a constant that identifies the shell service resource subtype.
Functions ¶
func NewServer ¶
func NewServer(s subtype.Service) pb.ShellServiceServer
NewServer constructs a framesystem gRPC service server.
func WrapWithReconfigurable ¶
func WrapWithReconfigurable(s interface{}) (resource.Reconfigurable, error)
WrapWithReconfigurable wraps a shell service as a Reconfigurable.
Types ¶
type Service ¶
type Service interface {
Shell(ctx context.Context) (input chan<- string, output <-chan Output, retErr error)
}
A Service handles shells for a local robot.
func NewClientFromConn ¶
func NewClientFromConn(ctx context.Context, conn rpc.ClientConn, name string, logger golog.Logger) Service
NewClientFromConn constructs a new Client from connection passed in.
Click to show internal directories.
Click to hide internal directories.