live

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChallengeResponseChannel = make(chan ChallengeResponse)
View Source
var ChallengeResponseDict = SafeChallengeResponseDict{
	// contains filtered or unexported fields
}

Functions

func MachineChallengeResponse

func MachineChallengeResponse(i *do.Injector, r *http.Request, w http.ResponseWriter) error

func MachineChallengeResponseHandler

func MachineChallengeResponseHandler(i *do.Injector, r *http.Request, w http.ResponseWriter, c *net.Conn)

func NewMachineChallenge

func NewMachineChallenge(i *do.Injector, r *http.Request, w http.ResponseWriter) error

func NewMachineChallengeHandler

func NewMachineChallengeHandler(i *do.Injector, r *http.Request, w http.ResponseWriter, c *net.Conn)

Types

type ChallengeResponse

type ChallengeResponse struct {
	Challenge       string
	ResponseChannel chan bool
}

type SafeChallengeResponseDict added in v0.4.0

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

func (*SafeChallengeResponseDict) ReadChallenge added in v0.4.0

func (c *SafeChallengeResponseDict) ReadChallenge(challengePhrase string) (Something, bool)

Utility method for safely reading from the dict

func (*SafeChallengeResponseDict) WriteChallenge added in v0.4.0

func (c *SafeChallengeResponseDict) WriteChallenge(challengePhrase string, data Something)

Utility method for safely writing to the dict

type Something

type Something struct {
	Username          string
	ChallengeAccepted chan bool
	ChallengerChannel chan []byte
	ResponderChannel  chan []byte
}

Jump to

Keyboard shortcuts

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