Transport: string default=null
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
ee6d575d5d
commit
ecca22c1f7
5 changed files with 11 additions and 12 deletions
|
@ -23,9 +23,9 @@
|
||||||
* DASH and TYPE FIX REQUIRED
|
* DASH and TYPE FIX REQUIRED
|
||||||
*/
|
*/
|
||||||
class Singularity.Transport.GRPC : Transport, Json.Serializable {
|
class Singularity.Transport.GRPC : Transport, Json.Serializable {
|
||||||
public string service_name { get; set; default = "TunService"; }
|
public string service_name { get; set; default = null; }
|
||||||
public string idle_timeout { get; set; default = "15s"; }
|
public string idle_timeout { get; set; default = null; }
|
||||||
public string ping_timeout { get; set; default = "15s"; }
|
public string ping_timeout { get; set; default = null; }
|
||||||
public bool permit_without_stream { get; set; default = false; }
|
public bool permit_without_stream { get; set; default = false; }
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
*/
|
*/
|
||||||
class Singularity.Transport.Http : Transport, Json.Serializable {
|
class Singularity.Transport.Http : Transport, Json.Serializable {
|
||||||
public string[] host { get; set; default = new string[0]; }
|
public string[] host { get; set; default = new string[0]; }
|
||||||
public string path { get; set; default = ""; }
|
public string path { get; set; default = null; }
|
||||||
public string method { get; set; default = ""; }
|
public string method { get; set; default = null; }
|
||||||
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
||||||
public string idle_timeout { get; set; default = "15s"; }
|
public string idle_timeout { get; set; default = null; }
|
||||||
public string ping_timeout { get; set; default = "15s"; }
|
public string ping_timeout { get; set; default = null; }
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
type_name = "http";
|
type_name = "http";
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
* TYPE FIX REQUIRED
|
* TYPE FIX REQUIRED
|
||||||
*/
|
*/
|
||||||
class Singularity.Transport.HttpUpgrade : Transport, Json.Serializable {
|
class Singularity.Transport.HttpUpgrade : Transport, Json.Serializable {
|
||||||
public string host { get; set; default = ""; }
|
public string host { get; set; default = null; }
|
||||||
public string path { get; set; default = ""; }
|
public string path { get; set; default = null; }
|
||||||
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
|
|
|
@ -6,4 +6,3 @@ transports_sources = [
|
||||||
'logic/transports/grpc.vala',
|
'logic/transports/grpc.vala',
|
||||||
'logic/transports/http_upgrade.vala',
|
'logic/transports/http_upgrade.vala',
|
||||||
]
|
]
|
||||||
singularity_sources += transports_sources
|
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
* DASH and TYPE FIX REQUIRED
|
* DASH and TYPE FIX REQUIRED
|
||||||
*/
|
*/
|
||||||
class Singularity.Transport.WebSocket : Transport, Json.Serializable {
|
class Singularity.Transport.WebSocket : Transport, Json.Serializable {
|
||||||
public string path { get; set; default = ""; }
|
public string path { get; set; default = null; }
|
||||||
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
public Gee.HashMap<string, string> headers { get; set; default = new Gee.HashMap<string, string> (); }
|
||||||
public int64 max_early_data { get; set; default = 0; }
|
public int64 max_early_data { get; set; default = 0; }
|
||||||
public string early_data_header_name { get; set; default = ""; }
|
public string early_data_header_name { get; set; default = null; }
|
||||||
|
|
||||||
construct {
|
construct {
|
||||||
type_name = "ws";
|
type_name = "ws";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue