trusttunnel

package
v0.2.0-dev.13 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package trusttunnel is the panel half of the TrustTunnel protocol plugin.

Index

Constants

View Source
const ID = "trusttunnel"

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeCredential

type NodeCredential struct {
	User       string `json:"user"`
	PassSHA256 string `json:"pass_sha256"`
}

NodeCredential is the byte-stable verifier shipped to internal/node/trusttunnel. Keep this field order: the exact JSON bytes participate in the credential hash.

type NodeSettings

type NodeSettings struct {
	H3 bool `json:"h3"`
}

NodeSettings is the byte-stable JSON consumed by internal/node/trusttunnel.

type Protocol

type Protocol struct{}

func New

func New() *Protocol

func (*Protocol) BuildInbound

func (p *Protocol) BuildInbound(in protocols.InboundInput) (plugin.InboundSpec, error)

func (*Protocol) Clients

func (*Protocol) Clients() []plugin.ClientSupport

func (*Protocol) DefaultSettings

func (*Protocol) DefaultSettings() (json.RawMessage, error)

func (*Protocol) DisplayName

func (*Protocol) DisplayName() string

func (*Protocol) Doctor

func (*Protocol) Doctor() []protocols.Check

func (*Protocol) Experimental

func (*Protocol) Experimental() bool

func (*Protocol) ID

func (*Protocol) ID() string

func (*Protocol) IssueCredential

func (*Protocol) IssueCredential(protocols.IssueInput) (protocols.Issued, error)

func (*Protocol) Render

func (*Protocol) SettingsSchema

func (*Protocol) SettingsSchema() []byte

func (*Protocol) Summary

func (p *Protocol) Summary(raw json.RawMessage) string

func (*Protocol) Validate

func (*Protocol) Validate(raw json.RawMessage) []protocols.FieldError

type Settings

type Settings struct {
	Port    int    `json:"port"`
	H3      bool   `json:"h3"`
	SNI     string `json:"sni"`
	TLSMode string `json:"tls_mode"` // acme_domain | self_signed
	Egress  string `json:"egress"`   // direct | warp
}

Settings is the merged profile settings document.

Jump to

Keyboard shortcuts

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