Versions in this module Expand all Collapse all v0 v0.1.0 Jan 6, 2024 Changes in this version + var DefaultOptions = Options + var ErrSessionClosed error = errors.New("Session is closed") + type ErrorGetRandomFailed struct + ErrorCode response.ErrorCode + func (err *ErrorGetRandomFailed) Error() string + type ErrorIoctlFailed struct + Errno syscall.Errno + func (err *ErrorIoctlFailed) Error() string + type FileDescriptor interface + Close func() error + Fd func() uintptr + type Options struct + Open func() (FileDescriptor, error) + Syscall func(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) + type Session struct + func OpenDefaultSession() (*Session, error) + func OpenSession(opts Options) (*Session, error) + func (sess *Session) Close() error + func (sess *Session) Read(into []byte) (int, error) + func (sess *Session) Send(req request.Request) (response.Response, error)