Documentation ¶ Index ¶ type Device type Module func New(l *logger.Logger, device Device, dAppIDKey ed25519.PublicKey) *Module func (m *Module) Close() error func (m *Module) CloseModal(uiID string) func (m *Module) Register(vm *otto.Otto) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Device ¶ type Device interface { RenderModal(uiID, layout string, dAppPubKey ed25519.PublicKey) error } type Module ¶ type Module struct { // contains filtered or unexported fields } func New ¶ func New(l *logger.Logger, device Device, dAppIDKey ed25519.PublicKey) *Module create new Modal Module func (*Module) Close ¶ func (m *Module) Close() error func (*Module) CloseModal ¶ func (m *Module) CloseModal(uiID string) close the modal func (*Module) Register ¶ func (m *Module) Register(vm *otto.Otto) error renderModal provides a way to display a modal the first parameter should be the modal title the second parameter should be the layout to render and the third parameter is an optional callback that will called with an optional error Source Files ¶ View all Source files module.go Click to show internal directories. Click to hide internal directories.