Documentation ¶
Overview ¶
Package gateway is the main program for TCP and HTTP services.
Copyright 2018 github.com/xiaoenai. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegBodyCodecForHTTP ¶ added in v1.1.0
RegBodyCodecForHTTP registers a mapping of content type to body coder (for http).
Types ¶
type Config ¶
type Config struct { EnableHttp bool `yaml:"enable_http"` EnableSocket bool `yaml:"enable_socket"` OuterHttpServer short.OuterHttpSrvConfig `yaml:"outer_http_server"` OuterSocketServer ant.SrvConfig `yaml:"outer_socket_server"` InnerSocketServer ant.SrvConfig `yaml:"inner_socket_server"` InnerSocketClient ant.CliConfig `yaml:"inner_socket_client"` Etcd etcd.EasyConfig `yaml:"etcd"` Redis redis.Config `yaml:"redis"` }
Config app config