ui

package
v0.0.0-...-88a98bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(cfg *config.EdgeConfigSchema)

func RenderPresentationRequest

func RenderPresentationRequest(title string, data model.PresentationRequest, onSubmit func(interface{}))

RenderPresentationRequest render a presentation request in the ui

func RenderRequestConfirmation

func RenderRequestConfirmation(title string, data model.PresentationRequest, onAccept func(pr model.PresentationRequest), onAbort func(pr model.PresentationRequest))

RenderRequestConfirmation render request confirmations, only accept or deny are displayed

Types

type Hook

type Hook struct {
	LogLevels []logrus.Level
}

Hook to send logs to a PostgreSQL database

func NewHook

func NewHook(levels ...logrus.Level) *Hook

func (*Hook) Fire

func (hook *Hook) Fire(entry *logrus.Entry) error

func (*Hook) Levels

func (hook *Hook) Levels() []logrus.Level

type State

type State struct {
	Messages        map[string][]model.TextMessage `json:"contacts"`
	SelectedContact int                            `json:"selected_contact"`
	Credentials     []string                       `json:"credentials"`
	Address         string                         `json:"address"`
}

func NewState

func NewState() *State

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL