From 190624bb7ad7b189faeade5c7b9115dc7e495639 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Mon, 22 Jul 2019 14:22:24 +0300 Subject: [PATCH] all: use gortc.io import --- .golangci.yml | 3 +- Dockerfile | 4 +- Makefile | 6 +- api/check.sh | 2 +- api/except.txt | 50 +-- api/stun1.0.0.txt | 646 ++++++++++++++++----------------- api/stun1.14.0.txt | 42 +-- api/stun1.15.0.txt | 12 +- api/stun1.16.0.txt | 18 +- api/stun1.17.0.txt | 20 +- api/stun1.17.3.txt | 24 +- api/stun1.18.0.txt | 2 +- api/stun1.18.1.txt | 6 +- api/stun1.19.0.txt | 2 +- checks.go | 2 +- checks_debug.go | 2 +- cmd/stun-bench/main.go | 2 +- cmd/stun-client/stun-client.go | 2 +- cmd/stun-decode/main.go | 2 +- cmd/stun-multiplex/main.go | 2 +- cmd/stun-traversal/main.go | 2 +- e2e/Dockerfile | 4 +- e2e/main.go | 2 +- go.mod | 2 +- helpers_test.go | 2 +- integrity.go | 2 +- 26 files changed, 431 insertions(+), 432 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 74396d0..f414659 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,14 +17,13 @@ linters-settings: lll: line-length: 140 goimports: - local-prefixes: github.com/gortc + local-prefixes: gortc.io gocritic: enabled-tags: - performance - style - experimental disabled-checks: - - evalOrder - commentedOutCode - sloppyReassign diff --git a/Dockerfile b/Dockerfile index b96df97..a97989f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM golang:1.12 -COPY . /go/src/github.com/gortc/stun +COPY . /go/src/gortc.io/stun -RUN go test github.com/gortc/stun +RUN go test gortc.io/stun diff --git a/Makefile b/Makefile index 0b46c76..396b8d4 100644 --- a/Makefile +++ b/Makefile @@ -10,11 +10,11 @@ bench: bench-record: $(GO) test -bench . > "benchmarks/stun-go-$(GO_VERSION).txt" fuzz-prepare-msg: - go-fuzz-build -func FuzzMessage -o stun-msg-fuzz.zip github.com/gortc/stun + go-fuzz-build -func FuzzMessage -o stun-msg-fuzz.zip gortc.io/stun fuzz-prepare-typ: - go-fuzz-build -func FuzzType -o stun-typ-fuzz.zip github.com/gortc/stun + go-fuzz-build -func FuzzType -o stun-typ-fuzz.zip gortc.io/stun fuzz-prepare-setters: - go-fuzz-build -func FuzzSetters -o stun-setters-fuzz.zip github.com/gortc/stun + go-fuzz-build -func FuzzSetters -o stun-setters-fuzz.zip gortc.io/stun fuzz-msg: go-fuzz -bin=./stun-msg-fuzz.zip -workdir=fuzz/stun-msg fuzz-typ: diff --git a/api/check.sh b/api/check.sh index a4abf91..30dd3d9 100755 --- a/api/check.sh +++ b/api/check.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -api -c $(ls -dm stun*.txt | tr -d ' \n') -except except.txt github.com/gortc/stun +api -c $(ls -dm stun*.txt | tr -d ' \n') -except except.txt gortc.io/stun diff --git a/api/except.txt b/api/except.txt index b12877a..c69ff07 100644 --- a/api/except.txt +++ b/api/except.txt @@ -1,25 +1,25 @@ -pkg github.com/gortc/stun, type Handler interface { HandleEvent } -pkg github.com/gortc/stun, type Handler interface, HandleEvent(Event) -pkg github.com/gortc/stun, type HandlerFunc func(Event) -pkg github.com/gortc/stun, method (HandlerFunc) HandleEvent(Event) -pkg github.com/gortc/stun, method (*Client) Do(*Message, time.Time, func(Event)) error -pkg github.com/gortc/stun, method (*Client) Start(*Message, time.Time, Handler) error -pkg github.com/gortc/stun, method (*Client) Start(*Message, time.Time, Handler) error -pkg github.com/gortc/stun, type ClientAgent interface { Close, Collect, Process, Start, Stop } -pkg github.com/gortc/stun, method (*Agent) SetHandler(Handler) error -pkg github.com/gortc/stun, method (*Agent) Start([12]uint8, time.Time, Handler) error -pkg github.com/gortc/stun, func NewAgent(AgentOptions) *Agent -pkg github.com/gortc/stun, type ClientAgent interface, Start([12]uint8, time.Time, Handler) error -pkg github.com/gortc/stun, var ErrAttrSizeInvalid error -pkg github.com/gortc/stun, type AgentOptions struct -pkg github.com/gortc/stun, type AgentOptions struct, Handler Handler -pkg github.com/gortc/stun, func NewClient(ClientOptions) (*Client, error) -pkg github.com/gortc/stun, type ClientOptions struct -pkg github.com/gortc/stun, type ClientOptions struct, Agent ClientAgent -pkg github.com/gortc/stun, type ClientOptions struct, Clock Clock -pkg github.com/gortc/stun, type ClientOptions struct, Collector Collector -pkg github.com/gortc/stun, type ClientOptions struct, Connection Connection -pkg github.com/gortc/stun, type ClientOptions struct, Handler Handler -pkg github.com/gortc/stun, type ClientOptions struct, RTO time.Duration -pkg github.com/gortc/stun, type ClientOptions struct, TimeoutRate time.Duration -pkg github.com/gortc/stun, const CodeRoleConflict = 478 \ No newline at end of file +pkg gortc.io/stun, type Handler interface { HandleEvent } +pkg gortc.io/stun, type Handler interface, HandleEvent(Event) +pkg gortc.io/stun, type HandlerFunc func(Event) +pkg gortc.io/stun, method (HandlerFunc) HandleEvent(Event) +pkg gortc.io/stun, method (*Client) Do(*Message, time.Time, func(Event)) error +pkg gortc.io/stun, method (*Client) Start(*Message, time.Time, Handler) error +pkg gortc.io/stun, method (*Client) Start(*Message, time.Time, Handler) error +pkg gortc.io/stun, type ClientAgent interface { Close, Collect, Process, Start, Stop } +pkg gortc.io/stun, method (*Agent) SetHandler(Handler) error +pkg gortc.io/stun, method (*Agent) Start([12]uint8, time.Time, Handler) error +pkg gortc.io/stun, func NewAgent(AgentOptions) *Agent +pkg gortc.io/stun, type ClientAgent interface, Start([12]uint8, time.Time, Handler) error +pkg gortc.io/stun, var ErrAttrSizeInvalid error +pkg gortc.io/stun, type AgentOptions struct +pkg gortc.io/stun, type AgentOptions struct, Handler Handler +pkg gortc.io/stun, func NewClient(ClientOptions) (*Client, error) +pkg gortc.io/stun, type ClientOptions struct +pkg gortc.io/stun, type ClientOptions struct, Agent ClientAgent +pkg gortc.io/stun, type ClientOptions struct, Clock Clock +pkg gortc.io/stun, type ClientOptions struct, Collector Collector +pkg gortc.io/stun, type ClientOptions struct, Connection Connection +pkg gortc.io/stun, type ClientOptions struct, Handler Handler +pkg gortc.io/stun, type ClientOptions struct, RTO time.Duration +pkg gortc.io/stun, type ClientOptions struct, TimeoutRate time.Duration +pkg gortc.io/stun, const CodeRoleConflict = 478 \ No newline at end of file diff --git a/api/stun1.0.0.txt b/api/stun1.0.0.txt index db8c855..ae73e4f 100644 --- a/api/stun1.0.0.txt +++ b/api/stun1.0.0.txt @@ -1,323 +1,323 @@ -pkg github.com/gortc/stun, const AttrAlternateServer = 32803 -pkg github.com/gortc/stun, const AttrAlternateServer AttrType -pkg github.com/gortc/stun, const AttrChannelNumber = 12 -pkg github.com/gortc/stun, const AttrChannelNumber AttrType -pkg github.com/gortc/stun, const AttrData = 19 -pkg github.com/gortc/stun, const AttrData AttrType -pkg github.com/gortc/stun, const AttrDontFragment = 26 -pkg github.com/gortc/stun, const AttrDontFragment AttrType -pkg github.com/gortc/stun, const AttrErrorCode = 9 -pkg github.com/gortc/stun, const AttrErrorCode AttrType -pkg github.com/gortc/stun, const AttrEvenPort = 24 -pkg github.com/gortc/stun, const AttrEvenPort AttrType -pkg github.com/gortc/stun, const AttrFingerprint = 32808 -pkg github.com/gortc/stun, const AttrFingerprint AttrType -pkg github.com/gortc/stun, const AttrICEControlled = 32809 -pkg github.com/gortc/stun, const AttrICEControlled AttrType -pkg github.com/gortc/stun, const AttrICEControlling = 32810 -pkg github.com/gortc/stun, const AttrICEControlling AttrType -pkg github.com/gortc/stun, const AttrLifetime = 13 -pkg github.com/gortc/stun, const AttrLifetime AttrType -pkg github.com/gortc/stun, const AttrMappedAddress = 1 -pkg github.com/gortc/stun, const AttrMappedAddress AttrType -pkg github.com/gortc/stun, const AttrMessageIntegrity = 8 -pkg github.com/gortc/stun, const AttrMessageIntegrity AttrType -pkg github.com/gortc/stun, const AttrNonce = 21 -pkg github.com/gortc/stun, const AttrNonce AttrType -pkg github.com/gortc/stun, const AttrOrigin = 32815 -pkg github.com/gortc/stun, const AttrOrigin AttrType -pkg github.com/gortc/stun, const AttrPriority = 36 -pkg github.com/gortc/stun, const AttrPriority AttrType -pkg github.com/gortc/stun, const AttrRealm = 20 -pkg github.com/gortc/stun, const AttrRealm AttrType -pkg github.com/gortc/stun, const AttrRequestedTransport = 25 -pkg github.com/gortc/stun, const AttrRequestedTransport AttrType -pkg github.com/gortc/stun, const AttrReservationToken = 34 -pkg github.com/gortc/stun, const AttrReservationToken AttrType -pkg github.com/gortc/stun, const AttrSoftware = 32802 -pkg github.com/gortc/stun, const AttrSoftware AttrType -pkg github.com/gortc/stun, const AttrUnknownAttributes = 10 -pkg github.com/gortc/stun, const AttrUnknownAttributes AttrType -pkg github.com/gortc/stun, const AttrUseCandidate = 37 -pkg github.com/gortc/stun, const AttrUseCandidate AttrType -pkg github.com/gortc/stun, const AttrUsername = 6 -pkg github.com/gortc/stun, const AttrUsername AttrType -pkg github.com/gortc/stun, const AttrXORMappedAddress = 32 -pkg github.com/gortc/stun, const AttrXORMappedAddress AttrType -pkg github.com/gortc/stun, const AttrXORPeerAddress = 18 -pkg github.com/gortc/stun, const AttrXORPeerAddress AttrType -pkg github.com/gortc/stun, const AttrXORRelayedAddress = 22 -pkg github.com/gortc/stun, const AttrXORRelayedAddress AttrType -pkg github.com/gortc/stun, const ClassErrorResponse = 3 -pkg github.com/gortc/stun, const ClassErrorResponse MessageClass -pkg github.com/gortc/stun, const ClassIndication = 1 -pkg github.com/gortc/stun, const ClassIndication MessageClass -pkg github.com/gortc/stun, const ClassRequest = 0 -pkg github.com/gortc/stun, const ClassRequest MessageClass -pkg github.com/gortc/stun, const ClassSuccessResponse = 2 -pkg github.com/gortc/stun, const ClassSuccessResponse MessageClass -pkg github.com/gortc/stun, const CodeAllocMismatch = 437 -pkg github.com/gortc/stun, const CodeAllocMismatch ErrorCode -pkg github.com/gortc/stun, const CodeAllocQuotaReached = 486 -pkg github.com/gortc/stun, const CodeAllocQuotaReached ErrorCode -pkg github.com/gortc/stun, const CodeBadRequest = 400 -pkg github.com/gortc/stun, const CodeBadRequest ErrorCode -pkg github.com/gortc/stun, const CodeForbidden = 403 -pkg github.com/gortc/stun, const CodeForbidden ErrorCode -pkg github.com/gortc/stun, const CodeInsufficientCapacity = 508 -pkg github.com/gortc/stun, const CodeInsufficientCapacity ErrorCode -pkg github.com/gortc/stun, const CodeRoleConflict = 478 -pkg github.com/gortc/stun, const CodeRoleConflict ErrorCode -pkg github.com/gortc/stun, const CodeServerError = 500 -pkg github.com/gortc/stun, const CodeServerError ErrorCode -pkg github.com/gortc/stun, const CodeStaleNonce = 438 -pkg github.com/gortc/stun, const CodeStaleNonce ErrorCode -pkg github.com/gortc/stun, const CodeTryAlternate = 300 -pkg github.com/gortc/stun, const CodeTryAlternate ErrorCode -pkg github.com/gortc/stun, const CodeUnauthorised = 401 -pkg github.com/gortc/stun, const CodeUnauthorised ErrorCode -pkg github.com/gortc/stun, const CodeUnknownAttribute = 420 -pkg github.com/gortc/stun, const CodeUnknownAttribute ErrorCode -pkg github.com/gortc/stun, const CodeUnsupportedTransProto = 442 -pkg github.com/gortc/stun, const CodeUnsupportedTransProto ErrorCode -pkg github.com/gortc/stun, const CodeWrongCredentials = 441 -pkg github.com/gortc/stun, const CodeWrongCredentials ErrorCode -pkg github.com/gortc/stun, const DefaultPort = 3478 -pkg github.com/gortc/stun, const DefaultPort ideal-int -pkg github.com/gortc/stun, const DefaultTLSPort = 5349 -pkg github.com/gortc/stun, const DefaultTLSPort ideal-int -pkg github.com/gortc/stun, const MethodAllocate = 3 -pkg github.com/gortc/stun, const MethodAllocate Method -pkg github.com/gortc/stun, const MethodBinding = 1 -pkg github.com/gortc/stun, const MethodBinding Method -pkg github.com/gortc/stun, const MethodChannelBind = 9 -pkg github.com/gortc/stun, const MethodChannelBind Method -pkg github.com/gortc/stun, const MethodCreatePermission = 8 -pkg github.com/gortc/stun, const MethodCreatePermission Method -pkg github.com/gortc/stun, const MethodData = 7 -pkg github.com/gortc/stun, const MethodData Method -pkg github.com/gortc/stun, const MethodRefresh = 4 -pkg github.com/gortc/stun, const MethodRefresh Method -pkg github.com/gortc/stun, const MethodSend = 6 -pkg github.com/gortc/stun, const MethodSend Method -pkg github.com/gortc/stun, const TransactionIDSize = 12 -pkg github.com/gortc/stun, const TransactionIDSize ideal-int -pkg github.com/gortc/stun, func Build(...Setter) (*Message, error) -pkg github.com/gortc/stun, func CheckOverflow(AttrType, int, int) error -pkg github.com/gortc/stun, func CheckSize(AttrType, int, int) error -pkg github.com/gortc/stun, func Decode([]uint8, *Message) error -pkg github.com/gortc/stun, func Dial(string, string) (*Client, error) -pkg github.com/gortc/stun, func FingerprintValue([]uint8) uint32 -pkg github.com/gortc/stun, func IsAttrSizeInvalid(error) bool -pkg github.com/gortc/stun, func IsAttrSizeOverflow(error) bool -pkg github.com/gortc/stun, func IsMessage([]uint8) bool -pkg github.com/gortc/stun, func MustBuild(...Setter) *Message -pkg github.com/gortc/stun, func New() *Message -pkg github.com/gortc/stun, func NewAgent(AgentOptions) *Agent -pkg github.com/gortc/stun, func NewClient(ClientOptions) (*Client, error) -pkg github.com/gortc/stun, func NewLongTermIntegrity(string, string, string) MessageIntegrity -pkg github.com/gortc/stun, func NewNonce(string) Nonce -pkg github.com/gortc/stun, func NewRealm(string) Realm -pkg github.com/gortc/stun, func NewShortTermIntegrity(string) MessageIntegrity -pkg github.com/gortc/stun, func NewSoftware(string) Software -pkg github.com/gortc/stun, func NewTransactionID() [12]uint8 -pkg github.com/gortc/stun, func NewTransactionIDSetter([12]uint8) Setter -pkg github.com/gortc/stun, func NewType(Method, MessageClass) MessageType -pkg github.com/gortc/stun, func NewUsername(string) Username -pkg github.com/gortc/stun, method (*Agent) Close() error -pkg github.com/gortc/stun, method (*Agent) Collect(time.Time) error -pkg github.com/gortc/stun, method (*Agent) Process(*Message) error -pkg github.com/gortc/stun, method (*Agent) Start([12]uint8, time.Time, Handler) error -pkg github.com/gortc/stun, method (*Agent) Stop([12]uint8) error -pkg github.com/gortc/stun, method (*Agent) StopWithError([12]uint8, error) error -pkg github.com/gortc/stun, method (*AlternateServer) AddTo(*Message) error -pkg github.com/gortc/stun, method (*AlternateServer) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*Client) Close() error -pkg github.com/gortc/stun, method (*Client) Do(*Message, time.Time, func(Event)) error -pkg github.com/gortc/stun, method (*Client) Indicate(*Message) error -pkg github.com/gortc/stun, method (*Client) Start(*Message, time.Time, Handler) error -pkg github.com/gortc/stun, method (*ErrorCodeAttribute) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*MappedAddress) AddTo(*Message) error -pkg github.com/gortc/stun, method (*MappedAddress) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*Message) Add(AttrType, []uint8) -pkg github.com/gortc/stun, method (*Message) AddTo(*Message) error -pkg github.com/gortc/stun, method (*Message) Build(...Setter) error -pkg github.com/gortc/stun, method (*Message) Check(...Checker) error -pkg github.com/gortc/stun, method (*Message) CloneTo(*Message) error -pkg github.com/gortc/stun, method (*Message) Contains(AttrType) bool -pkg github.com/gortc/stun, method (*Message) Decode() error -pkg github.com/gortc/stun, method (*Message) Encode() -pkg github.com/gortc/stun, method (*Message) Equal(*Message) bool -pkg github.com/gortc/stun, method (*Message) ForEach(AttrType, func(*Message) error) error -pkg github.com/gortc/stun, method (*Message) Get(AttrType) ([]uint8, error) -pkg github.com/gortc/stun, method (*Message) NewTransactionID() error -pkg github.com/gortc/stun, method (*Message) Parse(...Getter) error -pkg github.com/gortc/stun, method (*Message) ReadFrom(io.Reader) (int64, error) -pkg github.com/gortc/stun, method (*Message) Reset() -pkg github.com/gortc/stun, method (*Message) SetType(MessageType) -pkg github.com/gortc/stun, method (*Message) String() string -pkg github.com/gortc/stun, method (*Message) Write([]uint8) (int, error) -pkg github.com/gortc/stun, method (*Message) WriteAttributes() -pkg github.com/gortc/stun, method (*Message) WriteHeader() -pkg github.com/gortc/stun, method (*Message) WriteLength() -pkg github.com/gortc/stun, method (*Message) WriteTo(io.Writer) (int64, error) -pkg github.com/gortc/stun, method (*Message) WriteTransactionID() -pkg github.com/gortc/stun, method (*Message) WriteType() -pkg github.com/gortc/stun, method (*MessageType) ReadValue(uint16) -pkg github.com/gortc/stun, method (*Nonce) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*Realm) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*Software) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*TextAttribute) GetFromAs(*Message, AttrType) error -pkg github.com/gortc/stun, method (*UnknownAttributes) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*Username) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*XORMappedAddress) GetFrom(*Message) error -pkg github.com/gortc/stun, method (*XORMappedAddress) GetFromAs(*Message, AttrType) error -pkg github.com/gortc/stun, method (AttrType) Optional() bool -pkg github.com/gortc/stun, method (AttrType) Required() bool -pkg github.com/gortc/stun, method (AttrType) String() string -pkg github.com/gortc/stun, method (AttrType) Value() uint16 -pkg github.com/gortc/stun, method (Attributes) Get(AttrType) (RawAttribute, bool) -pkg github.com/gortc/stun, method (CloseErr) Error() string -pkg github.com/gortc/stun, method (DecodeErr) Error() string -pkg github.com/gortc/stun, method (DecodeErr) IsInvalidCookie() bool -pkg github.com/gortc/stun, method (DecodeErr) IsPlace(DecodeErrPlace) bool -pkg github.com/gortc/stun, method (DecodeErr) IsPlaceChildren(string) bool -pkg github.com/gortc/stun, method (DecodeErr) IsPlaceParent(string) bool -pkg github.com/gortc/stun, method (DecodeErrPlace) String() string -pkg github.com/gortc/stun, method (ErrorCode) AddTo(*Message) error -pkg github.com/gortc/stun, method (ErrorCodeAttribute) AddTo(*Message) error -pkg github.com/gortc/stun, method (ErrorCodeAttribute) String() string -pkg github.com/gortc/stun, method (FingerprintAttr) AddTo(*Message) error -pkg github.com/gortc/stun, method (FingerprintAttr) Check(*Message) error -pkg github.com/gortc/stun, method (HandlerFunc) HandleEvent(Event) -pkg github.com/gortc/stun, method (MappedAddress) String() string -pkg github.com/gortc/stun, method (MessageClass) String() string -pkg github.com/gortc/stun, method (MessageIntegrity) AddTo(*Message) error -pkg github.com/gortc/stun, method (MessageIntegrity) Check(*Message) error -pkg github.com/gortc/stun, method (MessageIntegrity) String() string -pkg github.com/gortc/stun, method (MessageType) AddTo(*Message) error -pkg github.com/gortc/stun, method (MessageType) String() string -pkg github.com/gortc/stun, method (MessageType) Value() uint16 -pkg github.com/gortc/stun, method (Method) String() string -pkg github.com/gortc/stun, method (Nonce) AddTo(*Message) error -pkg github.com/gortc/stun, method (Nonce) String() string -pkg github.com/gortc/stun, method (RawAttribute) Equal(RawAttribute) bool -pkg github.com/gortc/stun, method (RawAttribute) String() string -pkg github.com/gortc/stun, method (Realm) AddTo(*Message) error -pkg github.com/gortc/stun, method (Realm) String() string -pkg github.com/gortc/stun, method (Software) AddTo(*Message) error -pkg github.com/gortc/stun, method (Software) String() string -pkg github.com/gortc/stun, method (StopErr) Error() string -pkg github.com/gortc/stun, method (TextAttribute) AddToAs(*Message, AttrType, int) error -pkg github.com/gortc/stun, method (UnknownAttributes) AddTo(*Message) error -pkg github.com/gortc/stun, method (UnknownAttributes) String() string -pkg github.com/gortc/stun, method (Username) AddTo(*Message) error -pkg github.com/gortc/stun, method (Username) String() string -pkg github.com/gortc/stun, method (XORMappedAddress) AddTo(*Message) error -pkg github.com/gortc/stun, method (XORMappedAddress) AddToAs(*Message, AttrType) error -pkg github.com/gortc/stun, method (XORMappedAddress) String() string -pkg github.com/gortc/stun, type Agent struct -pkg github.com/gortc/stun, type AgentOptions struct -pkg github.com/gortc/stun, type AgentOptions struct, Handler Handler -pkg github.com/gortc/stun, type AlternateServer struct -pkg github.com/gortc/stun, type AlternateServer struct, IP net.IP -pkg github.com/gortc/stun, type AlternateServer struct, Port int -pkg github.com/gortc/stun, type AttrType uint16 -pkg github.com/gortc/stun, type Attributes []RawAttribute -pkg github.com/gortc/stun, type Checker interface { Check } -pkg github.com/gortc/stun, type Checker interface, Check(*Message) error -pkg github.com/gortc/stun, type Client struct -pkg github.com/gortc/stun, type ClientAgent interface { Close, Collect, Process, Start, Stop } -pkg github.com/gortc/stun, type ClientAgent interface, Close() error -pkg github.com/gortc/stun, type ClientAgent interface, Collect(time.Time) error -pkg github.com/gortc/stun, type ClientAgent interface, Process(*Message) error -pkg github.com/gortc/stun, type ClientAgent interface, Start([12]uint8, time.Time, Handler) error -pkg github.com/gortc/stun, type ClientAgent interface, Stop([12]uint8) error -pkg github.com/gortc/stun, type ClientOptions struct -pkg github.com/gortc/stun, type ClientOptions struct, Agent ClientAgent -pkg github.com/gortc/stun, type ClientOptions struct, Connection Connection -pkg github.com/gortc/stun, type ClientOptions struct, TimeoutRate time.Duration -pkg github.com/gortc/stun, type CloseErr struct -pkg github.com/gortc/stun, type CloseErr struct, AgentErr error -pkg github.com/gortc/stun, type CloseErr struct, ConnectionErr error -pkg github.com/gortc/stun, type Connection interface { Close, Read, Write } -pkg github.com/gortc/stun, type Connection interface, Close() error -pkg github.com/gortc/stun, type Connection interface, Read([]uint8) (int, error) -pkg github.com/gortc/stun, type Connection interface, Write([]uint8) (int, error) -pkg github.com/gortc/stun, type DecodeErr struct -pkg github.com/gortc/stun, type DecodeErr struct, Message string -pkg github.com/gortc/stun, type DecodeErr struct, Place DecodeErrPlace -pkg github.com/gortc/stun, type DecodeErrPlace struct -pkg github.com/gortc/stun, type DecodeErrPlace struct, Children string -pkg github.com/gortc/stun, type DecodeErrPlace struct, Parent string -pkg github.com/gortc/stun, type ErrorCode int -pkg github.com/gortc/stun, type ErrorCodeAttribute struct -pkg github.com/gortc/stun, type ErrorCodeAttribute struct, Code ErrorCode -pkg github.com/gortc/stun, type ErrorCodeAttribute struct, Reason []uint8 -pkg github.com/gortc/stun, type Event struct -pkg github.com/gortc/stun, type Event struct, Error error -pkg github.com/gortc/stun, type Event struct, Message *Message -pkg github.com/gortc/stun, type FingerprintAttr struct -pkg github.com/gortc/stun, type Getter interface { GetFrom } -pkg github.com/gortc/stun, type Getter interface, GetFrom(*Message) error -pkg github.com/gortc/stun, type Handler interface { HandleEvent } -pkg github.com/gortc/stun, type Handler interface, HandleEvent(Event) -pkg github.com/gortc/stun, type HandlerFunc func(Event) -pkg github.com/gortc/stun, type MappedAddress struct -pkg github.com/gortc/stun, type MappedAddress struct, IP net.IP -pkg github.com/gortc/stun, type MappedAddress struct, Port int -pkg github.com/gortc/stun, type Message struct -pkg github.com/gortc/stun, type Message struct, Attributes Attributes -pkg github.com/gortc/stun, type Message struct, Length uint32 -pkg github.com/gortc/stun, type Message struct, Raw []uint8 -pkg github.com/gortc/stun, type Message struct, TransactionID [12]uint8 -pkg github.com/gortc/stun, type Message struct, Type MessageType -pkg github.com/gortc/stun, type MessageClass uint8 -pkg github.com/gortc/stun, type MessageIntegrity []uint8 -pkg github.com/gortc/stun, type MessageType struct -pkg github.com/gortc/stun, type MessageType struct, Class MessageClass -pkg github.com/gortc/stun, type MessageType struct, Method Method -pkg github.com/gortc/stun, type Method uint16 -pkg github.com/gortc/stun, type Nonce []uint8 -pkg github.com/gortc/stun, type RawAttribute struct -pkg github.com/gortc/stun, type RawAttribute struct, Length uint16 -pkg github.com/gortc/stun, type RawAttribute struct, Type AttrType -pkg github.com/gortc/stun, type RawAttribute struct, Value []uint8 -pkg github.com/gortc/stun, type Realm []uint8 -pkg github.com/gortc/stun, type Setter interface { AddTo } -pkg github.com/gortc/stun, type Setter interface, AddTo(*Message) error -pkg github.com/gortc/stun, type Software []uint8 -pkg github.com/gortc/stun, type StopErr struct -pkg github.com/gortc/stun, type StopErr struct, Cause error -pkg github.com/gortc/stun, type StopErr struct, Err error -pkg github.com/gortc/stun, type TextAttribute []uint8 -pkg github.com/gortc/stun, type UnknownAttributes []AttrType -pkg github.com/gortc/stun, type Username []uint8 -pkg github.com/gortc/stun, type XORMappedAddress struct -pkg github.com/gortc/stun, type XORMappedAddress struct, IP net.IP -pkg github.com/gortc/stun, type XORMappedAddress struct, Port int -pkg github.com/gortc/stun, var BindingError MessageType -pkg github.com/gortc/stun, var BindingRequest MessageType -pkg github.com/gortc/stun, var BindingSuccess MessageType -pkg github.com/gortc/stun, var ErrAgentClosed error -pkg github.com/gortc/stun, var ErrAttrSizeInvalid error -pkg github.com/gortc/stun, var ErrAttributeNotFound error -pkg github.com/gortc/stun, var ErrAttributeSizeInvalid error -pkg github.com/gortc/stun, var ErrAttributeSizeOverflow error -pkg github.com/gortc/stun, var ErrBadIPLength error -pkg github.com/gortc/stun, var ErrBadUnknownAttrsSize error -pkg github.com/gortc/stun, var ErrClientClosed error -pkg github.com/gortc/stun, var ErrClientNotInitialized error -pkg github.com/gortc/stun, var ErrDecodeToNil error -pkg github.com/gortc/stun, var ErrFingerprintBeforeIntegrity error -pkg github.com/gortc/stun, var ErrFingerprintMismatch error -pkg github.com/gortc/stun, var ErrIntegrityMismatch error -pkg github.com/gortc/stun, var ErrNoConnection error -pkg github.com/gortc/stun, var ErrNoDefaultReason error -pkg github.com/gortc/stun, var ErrTransactionExists error -pkg github.com/gortc/stun, var ErrTransactionNotExists error -pkg github.com/gortc/stun, var ErrTransactionStopped error -pkg github.com/gortc/stun, var ErrTransactionTimeOut error -pkg github.com/gortc/stun, var ErrUnexpectedHeaderEOF error -pkg github.com/gortc/stun, var Fingerprint FingerprintAttr -pkg github.com/gortc/stun, var TransactionID Setter +pkg gortc.io/stun, const AttrAlternateServer = 32803 +pkg gortc.io/stun, const AttrAlternateServer AttrType +pkg gortc.io/stun, const AttrChannelNumber = 12 +pkg gortc.io/stun, const AttrChannelNumber AttrType +pkg gortc.io/stun, const AttrData = 19 +pkg gortc.io/stun, const AttrData AttrType +pkg gortc.io/stun, const AttrDontFragment = 26 +pkg gortc.io/stun, const AttrDontFragment AttrType +pkg gortc.io/stun, const AttrErrorCode = 9 +pkg gortc.io/stun, const AttrErrorCode AttrType +pkg gortc.io/stun, const AttrEvenPort = 24 +pkg gortc.io/stun, const AttrEvenPort AttrType +pkg gortc.io/stun, const AttrFingerprint = 32808 +pkg gortc.io/stun, const AttrFingerprint AttrType +pkg gortc.io/stun, const AttrICEControlled = 32809 +pkg gortc.io/stun, const AttrICEControlled AttrType +pkg gortc.io/stun, const AttrICEControlling = 32810 +pkg gortc.io/stun, const AttrICEControlling AttrType +pkg gortc.io/stun, const AttrLifetime = 13 +pkg gortc.io/stun, const AttrLifetime AttrType +pkg gortc.io/stun, const AttrMappedAddress = 1 +pkg gortc.io/stun, const AttrMappedAddress AttrType +pkg gortc.io/stun, const AttrMessageIntegrity = 8 +pkg gortc.io/stun, const AttrMessageIntegrity AttrType +pkg gortc.io/stun, const AttrNonce = 21 +pkg gortc.io/stun, const AttrNonce AttrType +pkg gortc.io/stun, const AttrOrigin = 32815 +pkg gortc.io/stun, const AttrOrigin AttrType +pkg gortc.io/stun, const AttrPriority = 36 +pkg gortc.io/stun, const AttrPriority AttrType +pkg gortc.io/stun, const AttrRealm = 20 +pkg gortc.io/stun, const AttrRealm AttrType +pkg gortc.io/stun, const AttrRequestedTransport = 25 +pkg gortc.io/stun, const AttrRequestedTransport AttrType +pkg gortc.io/stun, const AttrReservationToken = 34 +pkg gortc.io/stun, const AttrReservationToken AttrType +pkg gortc.io/stun, const AttrSoftware = 32802 +pkg gortc.io/stun, const AttrSoftware AttrType +pkg gortc.io/stun, const AttrUnknownAttributes = 10 +pkg gortc.io/stun, const AttrUnknownAttributes AttrType +pkg gortc.io/stun, const AttrUseCandidate = 37 +pkg gortc.io/stun, const AttrUseCandidate AttrType +pkg gortc.io/stun, const AttrUsername = 6 +pkg gortc.io/stun, const AttrUsername AttrType +pkg gortc.io/stun, const AttrXORMappedAddress = 32 +pkg gortc.io/stun, const AttrXORMappedAddress AttrType +pkg gortc.io/stun, const AttrXORPeerAddress = 18 +pkg gortc.io/stun, const AttrXORPeerAddress AttrType +pkg gortc.io/stun, const AttrXORRelayedAddress = 22 +pkg gortc.io/stun, const AttrXORRelayedAddress AttrType +pkg gortc.io/stun, const ClassErrorResponse = 3 +pkg gortc.io/stun, const ClassErrorResponse MessageClass +pkg gortc.io/stun, const ClassIndication = 1 +pkg gortc.io/stun, const ClassIndication MessageClass +pkg gortc.io/stun, const ClassRequest = 0 +pkg gortc.io/stun, const ClassRequest MessageClass +pkg gortc.io/stun, const ClassSuccessResponse = 2 +pkg gortc.io/stun, const ClassSuccessResponse MessageClass +pkg gortc.io/stun, const CodeAllocMismatch = 437 +pkg gortc.io/stun, const CodeAllocMismatch ErrorCode +pkg gortc.io/stun, const CodeAllocQuotaReached = 486 +pkg gortc.io/stun, const CodeAllocQuotaReached ErrorCode +pkg gortc.io/stun, const CodeBadRequest = 400 +pkg gortc.io/stun, const CodeBadRequest ErrorCode +pkg gortc.io/stun, const CodeForbidden = 403 +pkg gortc.io/stun, const CodeForbidden ErrorCode +pkg gortc.io/stun, const CodeInsufficientCapacity = 508 +pkg gortc.io/stun, const CodeInsufficientCapacity ErrorCode +pkg gortc.io/stun, const CodeRoleConflict = 478 +pkg gortc.io/stun, const CodeRoleConflict ErrorCode +pkg gortc.io/stun, const CodeServerError = 500 +pkg gortc.io/stun, const CodeServerError ErrorCode +pkg gortc.io/stun, const CodeStaleNonce = 438 +pkg gortc.io/stun, const CodeStaleNonce ErrorCode +pkg gortc.io/stun, const CodeTryAlternate = 300 +pkg gortc.io/stun, const CodeTryAlternate ErrorCode +pkg gortc.io/stun, const CodeUnauthorised = 401 +pkg gortc.io/stun, const CodeUnauthorised ErrorCode +pkg gortc.io/stun, const CodeUnknownAttribute = 420 +pkg gortc.io/stun, const CodeUnknownAttribute ErrorCode +pkg gortc.io/stun, const CodeUnsupportedTransProto = 442 +pkg gortc.io/stun, const CodeUnsupportedTransProto ErrorCode +pkg gortc.io/stun, const CodeWrongCredentials = 441 +pkg gortc.io/stun, const CodeWrongCredentials ErrorCode +pkg gortc.io/stun, const DefaultPort = 3478 +pkg gortc.io/stun, const DefaultPort ideal-int +pkg gortc.io/stun, const DefaultTLSPort = 5349 +pkg gortc.io/stun, const DefaultTLSPort ideal-int +pkg gortc.io/stun, const MethodAllocate = 3 +pkg gortc.io/stun, const MethodAllocate Method +pkg gortc.io/stun, const MethodBinding = 1 +pkg gortc.io/stun, const MethodBinding Method +pkg gortc.io/stun, const MethodChannelBind = 9 +pkg gortc.io/stun, const MethodChannelBind Method +pkg gortc.io/stun, const MethodCreatePermission = 8 +pkg gortc.io/stun, const MethodCreatePermission Method +pkg gortc.io/stun, const MethodData = 7 +pkg gortc.io/stun, const MethodData Method +pkg gortc.io/stun, const MethodRefresh = 4 +pkg gortc.io/stun, const MethodRefresh Method +pkg gortc.io/stun, const MethodSend = 6 +pkg gortc.io/stun, const MethodSend Method +pkg gortc.io/stun, const TransactionIDSize = 12 +pkg gortc.io/stun, const TransactionIDSize ideal-int +pkg gortc.io/stun, func Build(...Setter) (*Message, error) +pkg gortc.io/stun, func CheckOverflow(AttrType, int, int) error +pkg gortc.io/stun, func CheckSize(AttrType, int, int) error +pkg gortc.io/stun, func Decode([]uint8, *Message) error +pkg gortc.io/stun, func Dial(string, string) (*Client, error) +pkg gortc.io/stun, func FingerprintValue([]uint8) uint32 +pkg gortc.io/stun, func IsAttrSizeInvalid(error) bool +pkg gortc.io/stun, func IsAttrSizeOverflow(error) bool +pkg gortc.io/stun, func IsMessage([]uint8) bool +pkg gortc.io/stun, func MustBuild(...Setter) *Message +pkg gortc.io/stun, func New() *Message +pkg gortc.io/stun, func NewAgent(AgentOptions) *Agent +pkg gortc.io/stun, func NewClient(ClientOptions) (*Client, error) +pkg gortc.io/stun, func NewLongTermIntegrity(string, string, string) MessageIntegrity +pkg gortc.io/stun, func NewNonce(string) Nonce +pkg gortc.io/stun, func NewRealm(string) Realm +pkg gortc.io/stun, func NewShortTermIntegrity(string) MessageIntegrity +pkg gortc.io/stun, func NewSoftware(string) Software +pkg gortc.io/stun, func NewTransactionID() [12]uint8 +pkg gortc.io/stun, func NewTransactionIDSetter([12]uint8) Setter +pkg gortc.io/stun, func NewType(Method, MessageClass) MessageType +pkg gortc.io/stun, func NewUsername(string) Username +pkg gortc.io/stun, method (*Agent) Close() error +pkg gortc.io/stun, method (*Agent) Collect(time.Time) error +pkg gortc.io/stun, method (*Agent) Process(*Message) error +pkg gortc.io/stun, method (*Agent) Start([12]uint8, time.Time, Handler) error +pkg gortc.io/stun, method (*Agent) Stop([12]uint8) error +pkg gortc.io/stun, method (*Agent) StopWithError([12]uint8, error) error +pkg gortc.io/stun, method (*AlternateServer) AddTo(*Message) error +pkg gortc.io/stun, method (*AlternateServer) GetFrom(*Message) error +pkg gortc.io/stun, method (*Client) Close() error +pkg gortc.io/stun, method (*Client) Do(*Message, time.Time, func(Event)) error +pkg gortc.io/stun, method (*Client) Indicate(*Message) error +pkg gortc.io/stun, method (*Client) Start(*Message, time.Time, Handler) error +pkg gortc.io/stun, method (*ErrorCodeAttribute) GetFrom(*Message) error +pkg gortc.io/stun, method (*MappedAddress) AddTo(*Message) error +pkg gortc.io/stun, method (*MappedAddress) GetFrom(*Message) error +pkg gortc.io/stun, method (*Message) Add(AttrType, []uint8) +pkg gortc.io/stun, method (*Message) AddTo(*Message) error +pkg gortc.io/stun, method (*Message) Build(...Setter) error +pkg gortc.io/stun, method (*Message) Check(...Checker) error +pkg gortc.io/stun, method (*Message) CloneTo(*Message) error +pkg gortc.io/stun, method (*Message) Contains(AttrType) bool +pkg gortc.io/stun, method (*Message) Decode() error +pkg gortc.io/stun, method (*Message) Encode() +pkg gortc.io/stun, method (*Message) Equal(*Message) bool +pkg gortc.io/stun, method (*Message) ForEach(AttrType, func(*Message) error) error +pkg gortc.io/stun, method (*Message) Get(AttrType) ([]uint8, error) +pkg gortc.io/stun, method (*Message) NewTransactionID() error +pkg gortc.io/stun, method (*Message) Parse(...Getter) error +pkg gortc.io/stun, method (*Message) ReadFrom(io.Reader) (int64, error) +pkg gortc.io/stun, method (*Message) Reset() +pkg gortc.io/stun, method (*Message) SetType(MessageType) +pkg gortc.io/stun, method (*Message) String() string +pkg gortc.io/stun, method (*Message) Write([]uint8) (int, error) +pkg gortc.io/stun, method (*Message) WriteAttributes() +pkg gortc.io/stun, method (*Message) WriteHeader() +pkg gortc.io/stun, method (*Message) WriteLength() +pkg gortc.io/stun, method (*Message) WriteTo(io.Writer) (int64, error) +pkg gortc.io/stun, method (*Message) WriteTransactionID() +pkg gortc.io/stun, method (*Message) WriteType() +pkg gortc.io/stun, method (*MessageType) ReadValue(uint16) +pkg gortc.io/stun, method (*Nonce) GetFrom(*Message) error +pkg gortc.io/stun, method (*Realm) GetFrom(*Message) error +pkg gortc.io/stun, method (*Software) GetFrom(*Message) error +pkg gortc.io/stun, method (*TextAttribute) GetFromAs(*Message, AttrType) error +pkg gortc.io/stun, method (*UnknownAttributes) GetFrom(*Message) error +pkg gortc.io/stun, method (*Username) GetFrom(*Message) error +pkg gortc.io/stun, method (*XORMappedAddress) GetFrom(*Message) error +pkg gortc.io/stun, method (*XORMappedAddress) GetFromAs(*Message, AttrType) error +pkg gortc.io/stun, method (AttrType) Optional() bool +pkg gortc.io/stun, method (AttrType) Required() bool +pkg gortc.io/stun, method (AttrType) String() string +pkg gortc.io/stun, method (AttrType) Value() uint16 +pkg gortc.io/stun, method (Attributes) Get(AttrType) (RawAttribute, bool) +pkg gortc.io/stun, method (CloseErr) Error() string +pkg gortc.io/stun, method (DecodeErr) Error() string +pkg gortc.io/stun, method (DecodeErr) IsInvalidCookie() bool +pkg gortc.io/stun, method (DecodeErr) IsPlace(DecodeErrPlace) bool +pkg gortc.io/stun, method (DecodeErr) IsPlaceChildren(string) bool +pkg gortc.io/stun, method (DecodeErr) IsPlaceParent(string) bool +pkg gortc.io/stun, method (DecodeErrPlace) String() string +pkg gortc.io/stun, method (ErrorCode) AddTo(*Message) error +pkg gortc.io/stun, method (ErrorCodeAttribute) AddTo(*Message) error +pkg gortc.io/stun, method (ErrorCodeAttribute) String() string +pkg gortc.io/stun, method (FingerprintAttr) AddTo(*Message) error +pkg gortc.io/stun, method (FingerprintAttr) Check(*Message) error +pkg gortc.io/stun, method (HandlerFunc) HandleEvent(Event) +pkg gortc.io/stun, method (MappedAddress) String() string +pkg gortc.io/stun, method (MessageClass) String() string +pkg gortc.io/stun, method (MessageIntegrity) AddTo(*Message) error +pkg gortc.io/stun, method (MessageIntegrity) Check(*Message) error +pkg gortc.io/stun, method (MessageIntegrity) String() string +pkg gortc.io/stun, method (MessageType) AddTo(*Message) error +pkg gortc.io/stun, method (MessageType) String() string +pkg gortc.io/stun, method (MessageType) Value() uint16 +pkg gortc.io/stun, method (Method) String() string +pkg gortc.io/stun, method (Nonce) AddTo(*Message) error +pkg gortc.io/stun, method (Nonce) String() string +pkg gortc.io/stun, method (RawAttribute) Equal(RawAttribute) bool +pkg gortc.io/stun, method (RawAttribute) String() string +pkg gortc.io/stun, method (Realm) AddTo(*Message) error +pkg gortc.io/stun, method (Realm) String() string +pkg gortc.io/stun, method (Software) AddTo(*Message) error +pkg gortc.io/stun, method (Software) String() string +pkg gortc.io/stun, method (StopErr) Error() string +pkg gortc.io/stun, method (TextAttribute) AddToAs(*Message, AttrType, int) error +pkg gortc.io/stun, method (UnknownAttributes) AddTo(*Message) error +pkg gortc.io/stun, method (UnknownAttributes) String() string +pkg gortc.io/stun, method (Username) AddTo(*Message) error +pkg gortc.io/stun, method (Username) String() string +pkg gortc.io/stun, method (XORMappedAddress) AddTo(*Message) error +pkg gortc.io/stun, method (XORMappedAddress) AddToAs(*Message, AttrType) error +pkg gortc.io/stun, method (XORMappedAddress) String() string +pkg gortc.io/stun, type Agent struct +pkg gortc.io/stun, type AgentOptions struct +pkg gortc.io/stun, type AgentOptions struct, Handler Handler +pkg gortc.io/stun, type AlternateServer struct +pkg gortc.io/stun, type AlternateServer struct, IP net.IP +pkg gortc.io/stun, type AlternateServer struct, Port int +pkg gortc.io/stun, type AttrType uint16 +pkg gortc.io/stun, type Attributes []RawAttribute +pkg gortc.io/stun, type Checker interface { Check } +pkg gortc.io/stun, type Checker interface, Check(*Message) error +pkg gortc.io/stun, type Client struct +pkg gortc.io/stun, type ClientAgent interface { Close, Collect, Process, Start, Stop } +pkg gortc.io/stun, type ClientAgent interface, Close() error +pkg gortc.io/stun, type ClientAgent interface, Collect(time.Time) error +pkg gortc.io/stun, type ClientAgent interface, Process(*Message) error +pkg gortc.io/stun, type ClientAgent interface, Start([12]uint8, time.Time, Handler) error +pkg gortc.io/stun, type ClientAgent interface, Stop([12]uint8) error +pkg gortc.io/stun, type ClientOptions struct +pkg gortc.io/stun, type ClientOptions struct, Agent ClientAgent +pkg gortc.io/stun, type ClientOptions struct, Connection Connection +pkg gortc.io/stun, type ClientOptions struct, TimeoutRate time.Duration +pkg gortc.io/stun, type CloseErr struct +pkg gortc.io/stun, type CloseErr struct, AgentErr error +pkg gortc.io/stun, type CloseErr struct, ConnectionErr error +pkg gortc.io/stun, type Connection interface { Close, Read, Write } +pkg gortc.io/stun, type Connection interface, Close() error +pkg gortc.io/stun, type Connection interface, Read([]uint8) (int, error) +pkg gortc.io/stun, type Connection interface, Write([]uint8) (int, error) +pkg gortc.io/stun, type DecodeErr struct +pkg gortc.io/stun, type DecodeErr struct, Message string +pkg gortc.io/stun, type DecodeErr struct, Place DecodeErrPlace +pkg gortc.io/stun, type DecodeErrPlace struct +pkg gortc.io/stun, type DecodeErrPlace struct, Children string +pkg gortc.io/stun, type DecodeErrPlace struct, Parent string +pkg gortc.io/stun, type ErrorCode int +pkg gortc.io/stun, type ErrorCodeAttribute struct +pkg gortc.io/stun, type ErrorCodeAttribute struct, Code ErrorCode +pkg gortc.io/stun, type ErrorCodeAttribute struct, Reason []uint8 +pkg gortc.io/stun, type Event struct +pkg gortc.io/stun, type Event struct, Error error +pkg gortc.io/stun, type Event struct, Message *Message +pkg gortc.io/stun, type FingerprintAttr struct +pkg gortc.io/stun, type Getter interface { GetFrom } +pkg gortc.io/stun, type Getter interface, GetFrom(*Message) error +pkg gortc.io/stun, type Handler interface { HandleEvent } +pkg gortc.io/stun, type Handler interface, HandleEvent(Event) +pkg gortc.io/stun, type HandlerFunc func(Event) +pkg gortc.io/stun, type MappedAddress struct +pkg gortc.io/stun, type MappedAddress struct, IP net.IP +pkg gortc.io/stun, type MappedAddress struct, Port int +pkg gortc.io/stun, type Message struct +pkg gortc.io/stun, type Message struct, Attributes Attributes +pkg gortc.io/stun, type Message struct, Length uint32 +pkg gortc.io/stun, type Message struct, Raw []uint8 +pkg gortc.io/stun, type Message struct, TransactionID [12]uint8 +pkg gortc.io/stun, type Message struct, Type MessageType +pkg gortc.io/stun, type MessageClass uint8 +pkg gortc.io/stun, type MessageIntegrity []uint8 +pkg gortc.io/stun, type MessageType struct +pkg gortc.io/stun, type MessageType struct, Class MessageClass +pkg gortc.io/stun, type MessageType struct, Method Method +pkg gortc.io/stun, type Method uint16 +pkg gortc.io/stun, type Nonce []uint8 +pkg gortc.io/stun, type RawAttribute struct +pkg gortc.io/stun, type RawAttribute struct, Length uint16 +pkg gortc.io/stun, type RawAttribute struct, Type AttrType +pkg gortc.io/stun, type RawAttribute struct, Value []uint8 +pkg gortc.io/stun, type Realm []uint8 +pkg gortc.io/stun, type Setter interface { AddTo } +pkg gortc.io/stun, type Setter interface, AddTo(*Message) error +pkg gortc.io/stun, type Software []uint8 +pkg gortc.io/stun, type StopErr struct +pkg gortc.io/stun, type StopErr struct, Cause error +pkg gortc.io/stun, type StopErr struct, Err error +pkg gortc.io/stun, type TextAttribute []uint8 +pkg gortc.io/stun, type UnknownAttributes []AttrType +pkg gortc.io/stun, type Username []uint8 +pkg gortc.io/stun, type XORMappedAddress struct +pkg gortc.io/stun, type XORMappedAddress struct, IP net.IP +pkg gortc.io/stun, type XORMappedAddress struct, Port int +pkg gortc.io/stun, var BindingError MessageType +pkg gortc.io/stun, var BindingRequest MessageType +pkg gortc.io/stun, var BindingSuccess MessageType +pkg gortc.io/stun, var ErrAgentClosed error +pkg gortc.io/stun, var ErrAttrSizeInvalid error +pkg gortc.io/stun, var ErrAttributeNotFound error +pkg gortc.io/stun, var ErrAttributeSizeInvalid error +pkg gortc.io/stun, var ErrAttributeSizeOverflow error +pkg gortc.io/stun, var ErrBadIPLength error +pkg gortc.io/stun, var ErrBadUnknownAttrsSize error +pkg gortc.io/stun, var ErrClientClosed error +pkg gortc.io/stun, var ErrClientNotInitialized error +pkg gortc.io/stun, var ErrDecodeToNil error +pkg gortc.io/stun, var ErrFingerprintBeforeIntegrity error +pkg gortc.io/stun, var ErrFingerprintMismatch error +pkg gortc.io/stun, var ErrIntegrityMismatch error +pkg gortc.io/stun, var ErrNoConnection error +pkg gortc.io/stun, var ErrNoDefaultReason error +pkg gortc.io/stun, var ErrTransactionExists error +pkg gortc.io/stun, var ErrTransactionNotExists error +pkg gortc.io/stun, var ErrTransactionStopped error +pkg gortc.io/stun, var ErrTransactionTimeOut error +pkg gortc.io/stun, var ErrUnexpectedHeaderEOF error +pkg gortc.io/stun, var Fingerprint FingerprintAttr +pkg gortc.io/stun, var TransactionID Setter diff --git a/api/stun1.14.0.txt b/api/stun1.14.0.txt index 315911b..eef9887 100644 --- a/api/stun1.14.0.txt +++ b/api/stun1.14.0.txt @@ -1,21 +1,21 @@ -pkg github.com/gortc/stun, type Handler func(Event) -pkg github.com/gortc/stun, method (*Client) Do(*Message, func(Event)) error -pkg github.com/gortc/stun, method (*Client) SetRTO(time.Duration) -pkg github.com/gortc/stun, method (*Client) Start(*Message, Handler) error -pkg github.com/gortc/stun, type Clock interface { Now } -pkg github.com/gortc/stun, type Clock interface, Now() time.Time -pkg github.com/gortc/stun, type Collector interface { Close, Start } -pkg github.com/gortc/stun, type Collector interface, Close() error -pkg github.com/gortc/stun, type Collector interface, Start(time.Duration, func(time.Time)) error -pkg github.com/gortc/stun, type Event struct, TransactionID [12]uint8 -pkg github.com/gortc/stun, method (*Agent) SetHandler(Handler) error -pkg github.com/gortc/stun, method (*Agent) Start([12]uint8, time.Time) error -pkg github.com/gortc/stun, type ClientAgent interface { Close, Collect, Process, SetHandler, Start, Stop } -pkg github.com/gortc/stun, type ClientAgent interface, SetHandler(Handler) error -pkg github.com/gortc/stun, type ClientAgent interface, Start([12]uint8, time.Time) error -pkg github.com/gortc/stun, type ClientOptions struct, Handler Handler -pkg github.com/gortc/stun, type ClientOptions struct, Clock Clock -pkg github.com/gortc/stun, type ClientOptions struct, Collector Collector -pkg github.com/gortc/stun, type ClientOptions struct, RTO time.Duration -pkg github.com/gortc/stun, func NewAgent(Handler) *Agent -pkg github.com/gortc/stun, var NoopHandler Handler +pkg gortc.io/stun, type Handler func(Event) +pkg gortc.io/stun, method (*Client) Do(*Message, func(Event)) error +pkg gortc.io/stun, method (*Client) SetRTO(time.Duration) +pkg gortc.io/stun, method (*Client) Start(*Message, Handler) error +pkg gortc.io/stun, type Clock interface { Now } +pkg gortc.io/stun, type Clock interface, Now() time.Time +pkg gortc.io/stun, type Collector interface { Close, Start } +pkg gortc.io/stun, type Collector interface, Close() error +pkg gortc.io/stun, type Collector interface, Start(time.Duration, func(time.Time)) error +pkg gortc.io/stun, type Event struct, TransactionID [12]uint8 +pkg gortc.io/stun, method (*Agent) SetHandler(Handler) error +pkg gortc.io/stun, method (*Agent) Start([12]uint8, time.Time) error +pkg gortc.io/stun, type ClientAgent interface { Close, Collect, Process, SetHandler, Start, Stop } +pkg gortc.io/stun, type ClientAgent interface, SetHandler(Handler) error +pkg gortc.io/stun, type ClientAgent interface, Start([12]uint8, time.Time) error +pkg gortc.io/stun, type ClientOptions struct, Handler Handler +pkg gortc.io/stun, type ClientOptions struct, Clock Clock +pkg gortc.io/stun, type ClientOptions struct, Collector Collector +pkg gortc.io/stun, type ClientOptions struct, RTO time.Duration +pkg gortc.io/stun, func NewAgent(Handler) *Agent +pkg gortc.io/stun, var NoopHandler Handler diff --git a/api/stun1.15.0.txt b/api/stun1.15.0.txt index 6a0bbb3..2cd8ca3 100644 --- a/api/stun1.15.0.txt +++ b/api/stun1.15.0.txt @@ -1,6 +1,6 @@ -pkg github.com/gortc/stun, const AttrRequestedAddressFamily = 23 -pkg github.com/gortc/stun, const AttrRequestedAddressFamily AttrType -pkg github.com/gortc/stun, const CodeAddrFamilyNotSupported = 440 -pkg github.com/gortc/stun, const CodeAddrFamilyNotSupported ErrorCode -pkg github.com/gortc/stun, const CodePeerAddrFamilyMismatch = 443 -pkg github.com/gortc/stun, const CodePeerAddrFamilyMismatch ErrorCode +pkg gortc.io/stun, const AttrRequestedAddressFamily = 23 +pkg gortc.io/stun, const AttrRequestedAddressFamily AttrType +pkg gortc.io/stun, const CodeAddrFamilyNotSupported = 440 +pkg gortc.io/stun, const CodeAddrFamilyNotSupported ErrorCode +pkg gortc.io/stun, const CodePeerAddrFamilyMismatch = 443 +pkg gortc.io/stun, const CodePeerAddrFamilyMismatch ErrorCode diff --git a/api/stun1.16.0.txt b/api/stun1.16.0.txt index b3bf929..b1858da 100644 --- a/api/stun1.16.0.txt +++ b/api/stun1.16.0.txt @@ -1,9 +1,9 @@ -pkg github.com/gortc/stun, func NewClient(Connection, ...ClientOption) (*Client, error) -pkg github.com/gortc/stun, func WithAgent(ClientAgent) ClientOption -pkg github.com/gortc/stun, func WithClock(Clock) ClientOption -pkg github.com/gortc/stun, func WithCollector(Collector) ClientOption -pkg github.com/gortc/stun, func WithHandler(Handler) ClientOption -pkg github.com/gortc/stun, func WithRTO(time.Duration) ClientOption -pkg github.com/gortc/stun, func WithTimeoutRate(time.Duration) ClientOption -pkg github.com/gortc/stun, func WithNoRetransmit(*Client) -pkg github.com/gortc/stun, type ClientOption func(*Client) +pkg gortc.io/stun, func NewClient(Connection, ...ClientOption) (*Client, error) +pkg gortc.io/stun, func WithAgent(ClientAgent) ClientOption +pkg gortc.io/stun, func WithClock(Clock) ClientOption +pkg gortc.io/stun, func WithCollector(Collector) ClientOption +pkg gortc.io/stun, func WithHandler(Handler) ClientOption +pkg gortc.io/stun, func WithRTO(time.Duration) ClientOption +pkg gortc.io/stun, func WithTimeoutRate(time.Duration) ClientOption +pkg gortc.io/stun, func WithNoRetransmit(*Client) +pkg gortc.io/stun, type ClientOption func(*Client) diff --git a/api/stun1.17.0.txt b/api/stun1.17.0.txt index b4a4b51..7fb8b22 100644 --- a/api/stun1.17.0.txt +++ b/api/stun1.17.0.txt @@ -1,10 +1,10 @@ -pkg github.com/gortc/stun, const Scheme = "stun" -pkg github.com/gortc/stun, const Scheme ideal-string -pkg github.com/gortc/stun, const SchemeSecure = "stuns" -pkg github.com/gortc/stun, const SchemeSecure ideal-string -pkg github.com/gortc/stun, func ParseURI(string) (URI, error) -pkg github.com/gortc/stun, method (URI) String() string -pkg github.com/gortc/stun, type URI struct -pkg github.com/gortc/stun, type URI struct, Host string -pkg github.com/gortc/stun, type URI struct, Port int -pkg github.com/gortc/stun, type URI struct, Scheme string +pkg gortc.io/stun, const Scheme = "stun" +pkg gortc.io/stun, const Scheme ideal-string +pkg gortc.io/stun, const SchemeSecure = "stuns" +pkg gortc.io/stun, const SchemeSecure ideal-string +pkg gortc.io/stun, func ParseURI(string) (URI, error) +pkg gortc.io/stun, method (URI) String() string +pkg gortc.io/stun, type URI struct +pkg gortc.io/stun, type URI struct, Host string +pkg gortc.io/stun, type URI struct, Port int +pkg gortc.io/stun, type URI struct, Scheme string diff --git a/api/stun1.17.3.txt b/api/stun1.17.3.txt index 6923818..46d4e30 100644 --- a/api/stun1.17.3.txt +++ b/api/stun1.17.3.txt @@ -1,12 +1,12 @@ -pkg github.com/gortc/stun, const AttrConnectionID = 42 -pkg github.com/gortc/stun, const AttrConnectionID AttrType -pkg github.com/gortc/stun, const CodeConnAlreadyExists = 446 -pkg github.com/gortc/stun, const CodeConnAlreadyExists ErrorCode -pkg github.com/gortc/stun, const CodeConnTimeoutOrFailure = 447 -pkg github.com/gortc/stun, const CodeConnTimeoutOrFailure ErrorCode -pkg github.com/gortc/stun, const MethodConnect = 10 -pkg github.com/gortc/stun, const MethodConnect Method -pkg github.com/gortc/stun, const MethodConnectionAttempt = 12 -pkg github.com/gortc/stun, const MethodConnectionAttempt Method -pkg github.com/gortc/stun, const MethodConnectionBind = 11 -pkg github.com/gortc/stun, const MethodConnectionBind Method +pkg gortc.io/stun, const AttrConnectionID = 42 +pkg gortc.io/stun, const AttrConnectionID AttrType +pkg gortc.io/stun, const CodeConnAlreadyExists = 446 +pkg gortc.io/stun, const CodeConnAlreadyExists ErrorCode +pkg gortc.io/stun, const CodeConnTimeoutOrFailure = 447 +pkg gortc.io/stun, const CodeConnTimeoutOrFailure ErrorCode +pkg gortc.io/stun, const MethodConnect = 10 +pkg gortc.io/stun, const MethodConnect Method +pkg gortc.io/stun, const MethodConnectionAttempt = 12 +pkg gortc.io/stun, const MethodConnectionAttempt Method +pkg gortc.io/stun, const MethodConnectionBind = 11 +pkg gortc.io/stun, const MethodConnectionBind Method diff --git a/api/stun1.18.0.txt b/api/stun1.18.0.txt index f5ac3d2..6bb4328 100644 --- a/api/stun1.18.0.txt +++ b/api/stun1.18.0.txt @@ -1 +1 @@ -pkg github.com/gortc/stun, method (RawAttribute) AddTo(*Message) error +pkg gortc.io/stun, method (RawAttribute) AddTo(*Message) error diff --git a/api/stun1.18.1.txt b/api/stun1.18.1.txt index e6c75d8..af2a5d3 100644 --- a/api/stun1.18.1.txt +++ b/api/stun1.18.1.txt @@ -1,3 +1,3 @@ -pkg github.com/gortc/stun, const CodeRoleConflict = 487 -pkg github.com/gortc/stun, const CodeUnauthorized = 401 -pkg github.com/gortc/stun, const CodeUnauthorized ErrorCode +pkg gortc.io/stun, const CodeRoleConflict = 487 +pkg gortc.io/stun, const CodeUnauthorized = 401 +pkg gortc.io/stun, const CodeUnauthorized ErrorCode diff --git a/api/stun1.19.0.txt b/api/stun1.19.0.txt index b17ffba..83e359f 100644 --- a/api/stun1.19.0.txt +++ b/api/stun1.19.0.txt @@ -1 +1 @@ -pkg github.com/gortc/stun, var WithNoConnClose ClientOption +pkg gortc.io/stun, var WithNoConnClose ClientOption diff --git a/checks.go b/checks.go index ca58525..7b610c5 100644 --- a/checks.go +++ b/checks.go @@ -2,7 +2,7 @@ package stun -import "github.com/gortc/stun/internal/hmac" +import "gortc.io/stun/internal/hmac" // CheckSize returns ErrAttrSizeInvalid if got is not equal to expected. func CheckSize(_ AttrType, got, expected int) error { diff --git a/checks_debug.go b/checks_debug.go index 1b0b9c3..3bd10ee 100644 --- a/checks_debug.go +++ b/checks_debug.go @@ -2,7 +2,7 @@ package stun -import "github.com/gortc/stun/internal/hmac" +import "gortc.io/stun/internal/hmac" // CheckSize returns *AttrLengthError if got is not equal to expected. func CheckSize(a AttrType, got, expected int) error { diff --git a/cmd/stun-bench/main.go b/cmd/stun-bench/main.go index ea37d8e..bd662ce 100644 --- a/cmd/stun-bench/main.go +++ b/cmd/stun-bench/main.go @@ -15,7 +15,7 @@ import ( "sync/atomic" "time" - "github.com/gortc/stun" + "gortc.io/stun" ) var ( diff --git a/cmd/stun-client/stun-client.go b/cmd/stun-client/stun-client.go index f3d2dad..d17b285 100644 --- a/cmd/stun-client/stun-client.go +++ b/cmd/stun-client/stun-client.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/gortc/stun" + "gortc.io/stun" ) func main() { diff --git a/cmd/stun-decode/main.go b/cmd/stun-decode/main.go index f2d3b6f..b3fb3bd 100644 --- a/cmd/stun-decode/main.go +++ b/cmd/stun-decode/main.go @@ -7,7 +7,7 @@ import ( "log" "os" - "github.com/gortc/stun" + "gortc.io/stun" ) func main() { diff --git a/cmd/stun-multiplex/main.go b/cmd/stun-multiplex/main.go index b351845..b01e85c 100644 --- a/cmd/stun-multiplex/main.go +++ b/cmd/stun-multiplex/main.go @@ -13,7 +13,7 @@ import ( "syscall" "time" - "github.com/gortc/stun" + "gortc.io/stun" ) func copyAddr(dst *stun.XORMappedAddress, src stun.XORMappedAddress) { diff --git a/cmd/stun-traversal/main.go b/cmd/stun-traversal/main.go index e0653f2..8dee571 100644 --- a/cmd/stun-traversal/main.go +++ b/cmd/stun-traversal/main.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/gortc/stun" + "gortc.io/stun" ) var ( diff --git a/e2e/Dockerfile b/e2e/Dockerfile index 64240e1..8867624 100644 --- a/e2e/Dockerfile +++ b/e2e/Dockerfile @@ -1,9 +1,9 @@ ARG CI_GO_VERSION FROM golang:${CI_GO_VERSION} -ADD . /go/src/github.com/gortc/stun +ADD . /go/src/gortc.io/stun -WORKDIR /go/src/github.com/gortc/stun/e2e +WORKDIR /go/src/gortc.io/stun/e2e RUN go install . diff --git a/e2e/main.go b/e2e/main.go index 7151f0f..fcfb314 100644 --- a/e2e/main.go +++ b/e2e/main.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/gortc/stun" + "gortc.io/stun" ) func test(network string) { diff --git a/go.mod b/go.mod index 95c8172..7e01552 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/gortc/stun +module gortc.io/stun go 1.12 diff --git a/helpers_test.go b/helpers_test.go index 42613ce..96480d3 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/gortc/stun/internal/testutil" + "gortc.io/stun/internal/testutil" ) func BenchmarkBuildOverhead(b *testing.B) { diff --git a/integrity.go b/integrity.go index 18aaa4a..4ed4a7f 100644 --- a/integrity.go +++ b/integrity.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/gortc/stun/internal/hmac" + "gortc.io/stun/internal/hmac" ) // separator for credentials.