structure

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 3 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 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 CommandPayload

type CommandPayload struct {
	CommandCode        string
	PrimaryParameter   string
	SecondaryParameter string
}

CommandPayload represents a command payload with code and parameters.

func EmptyCommandPayload

func EmptyCommandPayload() CommandPayload

EmptyCommandPayload returns an empty CommandPayload struct.

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.

Jump to

Keyboard shortcuts

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