structure

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package structure defines the core data structures used throughout NesterShell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveSession added in v1.3.0

type ActiveSession struct {
	Data            Session
	TransitPassword []byte
	EncryptionKey   []byte
	BackgroundJobs  []*background.Job
	JobCounter      int
}

func (*ActiveSession) GetJobResult added in v1.3.0

func (actSesPtr *ActiveSession) GetJobResult(id int)

func (ActiveSession) PrintJobStatus added in v1.3.0

func (actSes ActiveSession) PrintJobStatus()

type AdditionalCookie

type AdditionalCookie struct {
	Name  string
	Value string
}

AdditionalCookie represents a cookie with a name and a value.

type B64Session

type B64Session struct {
	Name              string
	Url               string
	Hash              string
	ChannelCookie     string
	SharedKey         string
	AdditionalCookies string
}

B64Session represents a session with base64-encoded fields for storage.

type Session

type Session struct {
	Name              string
	Url               string
	HashBytes         []byte
	ChannelCookie     string
	SharedKeyBytes    []byte
	AdditionalCookies []AdditionalCookie
}

Session represents a decoded session with raw byte fields.

func DecodeSession

func DecodeSession(b64Session B64Session) (Session, error)

DecodeSession decodes a base64-encoded session to a regular session.

func EmptySession

func EmptySession() Session

EmptySession returns an empty Session struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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