model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

holds context values and handles write and read accesses

func NewContext

func NewContext() *Context

creates new context

func (*Context) Read

func (c *Context) Read() ContextValues

returns copy of context values to read

func (*Context) Write

func (c *Context) Write(writer func(values *ContextValues)) ContextValues

provides writer to write context values

type ContextValues

type ContextValues struct {
	// is current network trusted
	TrustedNetwork bool
	// is vpn connected
	Connected bool
	// is identity agent logged in
	LoggedIn bool
	// is identity agent action in progress
	IdentityInProgress bool
	// is vpn action in progress
	VPNInProgress bool
}

type to hold context values

type Credentials

type Credentials struct {
	Password string
	Server   string
}

credentials to read on login

Jump to

Keyboard shortcuts

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