From 9f2015e85030c6def23ba595546f6787bf846804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 9 Mar 2021 00:03:10 +0100 Subject: [PATCH] docsgen --- api/docgen/docgen.go | 2 ++ documentation/en/api-methods-miner.md | 12 +++++++++++- documentation/en/api-methods.md | 12 +++++++++++- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/api/docgen/docgen.go b/api/docgen/docgen.go index 7d3ac4bcf75..8aca1d75413 100644 --- a/api/docgen/docgen.go +++ b/api/docgen/docgen.go @@ -123,6 +123,8 @@ func init() { addExample(retrievalmarket.DealStatusNew) addExample(network.ReachabilityPublic) addExample(build.NewestNetworkVersion) + addExample(map[string]int{"name": 42}) + addExample(map[string]time.Time{"name": time.Unix(1615243938, 0)}) addExample(&types.ExecutionTrace{ Msg: exampleValue("init", reflect.TypeOf(&types.Message{}), nil).(*types.Message), MsgRct: exampleValue("init", reflect.TypeOf(&types.MessageReceipt{}), nil).(*types.MessageReceipt), diff --git a/documentation/en/api-methods-miner.md b/documentation/en/api-methods-miner.md index 247270af2f7..01a05b41892 100644 --- a/documentation/en/api-methods-miner.md +++ b/documentation/en/api-methods-miner.md @@ -1064,7 +1064,17 @@ Response: "ID": "12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf", "Agent": "string value", "Addrs": null, - "Protocols": null + "Protocols": null, + "ConnMgrMeta": { + "FirstSeen": "0001-01-01T00:00:00Z", + "Value": 123, + "Tags": { + "name": 42 + }, + "Conns": { + "name": "2021-03-08T23:52:18+01:00" + } + } } ``` diff --git a/documentation/en/api-methods.md b/documentation/en/api-methods.md index 75b78b15c63..c6a481f2be3 100644 --- a/documentation/en/api-methods.md +++ b/documentation/en/api-methods.md @@ -2906,7 +2906,17 @@ Response: "ID": "12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf", "Agent": "string value", "Addrs": null, - "Protocols": null + "Protocols": null, + "ConnMgrMeta": { + "FirstSeen": "0001-01-01T00:00:00Z", + "Value": 123, + "Tags": { + "name": 42 + }, + "Conns": { + "name": "2021-03-08T23:52:18+01:00" + } + } } ```