core

package module
v0.0.0-...-3af175c Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

README

TuTuck Client Core

Go Reference Go Report Card

A core package for building your own client for TuTuck in Go.

For details, see Server Wiki

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectSSH

func ConnectSSH(server string) (io.ReadWriteCloser, error)

func GenerateKeys

func GenerateKeys() error

Types

type Packet

type Packet struct {
	// Identity
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`

	Type string `json:"type"`

	FromID    int    `json:"fromid,omitempty"`
	From      string `json:"from,omitempty"`
	FromColor string `json:"fromcolor,omitempty"`
	ToID      int    `json:"toid,omitempty"`
	To        string `json:"to,omitempty"`
	ToColor   string `json:"tocolor,omitempty"`

	Scope     string `json:"scope,omitempty"`
	Direction string `json:"direction,omitempty"`
	Content   string `json:"content,omitempty"`
	Time      string `json:"time,omitempty"`

	Num       int    `json:"num,omitempty"`
	ColorName string `json:"colorname,omitempty"`
	ColorHex  string `json:"colorhex,omitempty"`
}

func ReadPacket

func ReadPacket(r io.Reader) (*Packet, error)

Jump to

Keyboard shortcuts

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