1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-19 02:16:11 -04:00
v2fly/shell/point/json/connection.go

19 lines
337 B
Go
Raw Normal View History

2015-10-29 18:41:37 -04:00
package json
import (
"encoding/json"
)
type ConnectionConfig struct {
ProtocolString string `json:"protocol"`
SettingsMessage json.RawMessage `json:"settings"`
2015-10-29 18:41:37 -04:00
}
func (c *ConnectionConfig) Protocol() string {
return c.ProtocolString
}
func (c *ConnectionConfig) Settings() []byte {
return []byte(c.SettingsMessage)
2015-10-29 18:41:37 -04:00
}