domain

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(isTty bool, io *values.ConnectionIO) *Connection

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) IsTty

func (c *Connection) IsTty() bool

func (*Connection) Stderr

func (c *Connection) Stderr() io.Writer

func (*Connection) Stdin

func (c *Connection) Stdin() io.Reader

func (*Connection) Stdout

func (c *Connection) Stdout() io.Writer

func (*Connection) WindowReceiver

func (c *Connection) WindowReceiver() <-chan *values.Window

func (*Connection) WindowSender

func (c *Connection) WindowSender() chan<- *values.Window

type User

type User struct {
	values.HashedPassword
	// contains filtered or unexported fields
}

func NewUser

func NewUser(name values.UserName, hashedPassword values.HashedPassword) *User

func (*User) GetName

func (u *User) GetName() values.UserName

type Workspace

type Workspace struct {
	Status values.WorkspaceStatus
	// contains filtered or unexported fields
}

func NewWorkspace

func NewWorkspace(id values.WorkspaceID, name values.WorkspaceName, userName values.UserName) *Workspace

func (*Workspace) AddConnection

func (w *Workspace) AddConnection() error

func (*Workspace) ConnectionNum

func (w *Workspace) ConnectionNum() int32

func (*Workspace) ID

func (w *Workspace) ID() values.WorkspaceID

func (*Workspace) Name

func (w *Workspace) Name() values.WorkspaceName

func (*Workspace) RemoveConnection

func (w *Workspace) RemoveConnection() error

func (*Workspace) UserName

func (w *Workspace) UserName() values.UserName

type WorkspaceConnection

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

func (*WorkspaceConnection) ID

func (*WorkspaceConnection) ReadCloser

func (wc *WorkspaceConnection) ReadCloser() io.ReadCloser

func (*WorkspaceConnection) WriteCloser

func (wc *WorkspaceConnection) WriteCloser() io.WriteCloser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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