API proxy struct codegen (#5854)
* mostly working api proxy gen * api: Consistent api names * fix docsgen * regenerate api struct * api: expand external interfaces * Add missing gen files * apigen: fix perm detection * api: Move perm tags to the interface * gofmt * worker perms * docsgen * docsgen: ignore tag comments * apigen: add codegen warning * gofmt * missing actor type * docsgen * make linter happy * fix lint * apigen: use directives for tags * docsgen * regen openrpc docs
This commit is contained in:
+3
-3
@@ -24,19 +24,19 @@ func MetricedFullAPI(a api.FullNode) api.FullNode {
|
||||
return &out
|
||||
}
|
||||
|
||||
func MetricedWorkerAPI(a api.WorkerAPI) api.WorkerAPI {
|
||||
func MetricedWorkerAPI(a api.Worker) api.Worker {
|
||||
var out apistruct.WorkerStruct
|
||||
proxy(a, &out.Internal)
|
||||
return &out
|
||||
}
|
||||
|
||||
func MetricedWalletAPI(a api.WalletAPI) api.WalletAPI {
|
||||
func MetricedWalletAPI(a api.Wallet) api.Wallet {
|
||||
var out apistruct.WalletStruct
|
||||
proxy(a, &out.Internal)
|
||||
return &out
|
||||
}
|
||||
|
||||
func MetricedGatewayAPI(a api.GatewayAPI) api.GatewayAPI {
|
||||
func MetricedGatewayAPI(a api.Gateway) api.Gateway {
|
||||
var out apistruct.GatewayStruct
|
||||
proxy(a, &out.Internal)
|
||||
return &out
|
||||
|
||||
Reference in New Issue
Block a user