types

package
v0.0.0-...-0a2f12f Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK   = "OK"
	FAIL = "KO"

	AuthError = 321
	BadAuth   = 911

	CancelAuthCode = 123

	AuthMessage ControlMessageType = iota
	StreamInfoMessage
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	JWT *jwt.JSONWebToken
}

type ControlMessage

type ControlMessage struct {
	MessageType ControlMessageType
	Message     json.RawMessage
}

type ControlMessageCallback

type ControlMessageCallback func(ControlMessage) (bool, error)

type ControlMessageType

type ControlMessageType uint

type StreamInfo

type StreamInfo struct {
	QuicStreamID quic.StreamID
	Port         string
	// contains filtered or unexported fields
}

func NewStreamInfo

func NewStreamInfo(id quic.StreamID, port string) *StreamInfo

func (*StreamInfo) Done

func (s *StreamInfo) Done()

func (*StreamInfo) Wait

func (s *StreamInfo) Wait()

Jump to

Keyboard shortcuts

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