github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/integration/messagebus/glue/backend/global/global.go (about) 1 /* 2 * Glue - Robust Go and Javascript Socket Library 3 * Copyright (C) 2015 Roland Singer <roland.singer[at]desertbit.com> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 // Package global provides global types and constants for the backend packages. 20 package global 21 22 const ( 23 // Channel buffer sizes: 24 ReadChanSize = 5 25 WriteChanSize = 10 26 ) 27 28 //############################// 29 //### Backend Socket Types ###// 30 //############################// 31 32 type SocketType int 33 34 const ( 35 // The available socket types. 36 TypeAjaxSocket SocketType = 1 << iota 37 TypeWebSocket SocketType = 1 << iota 38 )