Skip to content

Commit

Permalink
docsgen
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 26, 2020
1 parent 3672053 commit bfb5bad
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func init() {
addExample(map[sealtasks.TaskType]struct{}{
sealtasks.TTPreCommit2: {},
})
addExample(sealtasks.TTCommit2)
}

func exampleValue(method string, t, parent reflect.Type) interface{} {
Expand Down
1 change: 0 additions & 1 deletion cmd/lotus-seal-worker/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ var allowSetting = map[sealtasks.TaskType]struct{}{
sealtasks.TTPreCommit1: {},
sealtasks.TTPreCommit2: {},
sealtasks.TTCommit2: {},
sealtasks.TTCommit1: {},
sealtasks.TTUnseal: {},
}

Expand Down
38 changes: 38 additions & 0 deletions documentation/en/api-methods-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* [Version](#Version)
* [Add](#Add)
* [AddPiece](#AddPiece)
* [Disable](#Disable)
* [DisableTask](#DisableTask)
* [Enable](#Enable)
* [EnableTask](#EnableTask)
* [Finalize](#Finalize)
* [FinalizeSector](#FinalizeSector)
* [Move](#Move)
Expand Down Expand Up @@ -181,6 +185,40 @@ Response:
}
```

## Disable


### DisableTask
There are not yet any comments for this method.

Perms:

Inputs:
```json
[
"seal/v0/commit/2"
]
```

Response: `{}`

## Enable


### EnableTask
There are not yet any comments for this method.

Perms:

Inputs:
```json
[
"seal/v0/commit/2"
]
```

Response: `{}`

## Finalize


Expand Down

0 comments on commit bfb5bad

Please sign in to comment.