/
githubmirror
/
traefik
Обзор
Документация
Войти
/
githubmirror
/
traefik
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/udp/handler.go
14 строк
358 B
mpl
UDP support
11 фев 2020, 03:26
Не верифицирован
11 фев 2020, 03:26
115d42e
Код
Авторство
О чём код?
package udp // Handler is the UDP counterpart of the usual HTTP handler. type Handler interface { ServeUDP(conn *Conn) } // The HandlerFunc type is an adapter to allow the use of ordinary functions as handlers. type HandlerFunc func(conn *Conn) // ServeUDP implements the Handler interface for UDP. func (f HandlerFunc) ServeUDP(conn *Conn) { f(conn) }