Documentation ¶
Index ¶
- func GetStartupHandle(info HandleInfo) zx.Handle
- func ServeExclusive(ctx fidl.Context, stub fidl.Stub, req zx.Channel, onError func(error))
- type Connector
- type Context
- type Directory
- type DirectoryWrapper
- type File
- type FileWrapper
- type HandleInfo
- type HandleType
- type Node
- type OutDirectory
- type Reader
- type Service
- func (s *Service) Clone(ctx fidl.Context, flags uint32, req fidlio.NodeWithCtxInterfaceRequest) error
- func (s *Service) Close(fidl.Context) (int32, error)
- func (s *Service) Describe(fidl.Context) (fidlio.NodeInfo, error)
- func (s *Service) GetAttr(fidl.Context) (int32, fidlio.NodeAttributes, error)
- func (s *Service) SetAttr(_ fidl.Context, flags uint32, attributes fidlio.NodeAttributes) (int32, error)
- func (s *Service) Sync(fidl.Context) (int32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStartupHandle ¶
func GetStartupHandle(info HandleInfo) zx.Handle
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) ConnectToEnvService ¶
func (c *Connector) ConnectToEnvService(r fidl.ServiceRequest)
type Context ¶
type Context struct { // OutgoingService is the directory served on the startup directory request. // // OutgoingService is cleared when BindStartupHandle is called to prevent further mutation which // is not supported by this implementation, though it is permitted by fuchsia.io.Directory. OutgoingService OutDirectory // contains filtered or unexported fields }
func NewContextFromStartupInfo ¶
func NewContextFromStartupInfo() *Context
NewContextFromStartupInfo connects to the service root directory and registers debug services.
func (*Context) BindStartupHandle ¶
BindStartupHandle takes the startup handle if it's not already taken and serves the out directory with all services that have been registered on (*Context).OutgoingService.
New services must not be added after BindStartupHandle is called.
BindStartupHandle blocks until the context is canceled.
func (*Context) ConnectToEnvService ¶
func (c *Context) ConnectToEnvService(r fidl.ServiceRequest)
func (*Context) Environment ¶
func (c *Context) Environment() *sys.EnvironmentWithCtxInterface
func (*Context) Launcher ¶
func (c *Context) Launcher() *sys.LauncherWithCtxInterface
type DirectoryWrapper ¶
type DirectoryWrapper struct {
Directory Directory
}
func (*DirectoryWrapper) GetDirectory ¶
func (dir *DirectoryWrapper) GetDirectory() fidlio.DirectoryWithCtx
type FileWrapper ¶
type FileWrapper struct {
File File
}
type HandleInfo ¶
type HandleInfo struct { Type HandleType Arg uint16 }
type HandleType ¶
type HandleType uint16
const ( HandleDirectoryRequest HandleType = 0x3B HandleAppServices HandleType = 0x43 HandleUser0 HandleType = 0xF0 HandleUser1 HandleType = 0xF1 HandleUser2 HandleType = 0xF2 )
type OutDirectory ¶
type OutDirectory mapDirectory
func (OutDirectory) AddDebug ¶
func (od OutDirectory) AddDebug(name string, n Node)
func (OutDirectory) AddDiagnostics ¶
func (od OutDirectory) AddDiagnostics(name string, n Node)
func (OutDirectory) AddService ¶
func (od OutDirectory) AddService(name string, addFn addFn)
Click to show internal directories.
Click to hide internal directories.