gtc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TypeGTC protocol.Type = 6

Variables

This section is empty.

Functions

func Protocol

func Protocol() protocol.Payload

Types

type GetChallenge

type GetChallenge func() []byte

type Payload

type Payload struct {
	Challenge []byte
	// contains filtered or unexported fields
}

func (*Payload) Decode

func (p *Payload) Decode(raw []byte) error

func (*Payload) Encode

func (p *Payload) Encode() ([]byte, error)

func (*Payload) Handle

func (p *Payload) Handle(ctx protocol.Context) protocol.Payload

func (*Payload) Offerable

func (p *Payload) Offerable() bool

func (*Payload) String

func (p *Payload) String() string

func (*Payload) Type

func (p *Payload) Type() protocol.Type

type Settings

type Settings struct {
	ChallengeHandler func(ctx protocol.Context) (GetChallenge, ValidateResponse)
}

type State

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

type ValidateResponse

type ValidateResponse func(answer []byte)

Jump to

Keyboard shortcuts

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