[golang] fixed golang api client design mistakes
This commit is contained in:
parent
d0f6c4343e
commit
0d00bf9fd2
9 changed files with 268 additions and 149 deletions
|
@ -1,15 +1,5 @@
|
|||
package api
|
||||
|
||||
type Request struct {
|
||||
index int
|
||||
priority int
|
||||
|
||||
method string
|
||||
path string
|
||||
payload any
|
||||
resp chan *Response
|
||||
}
|
||||
|
||||
type PriorityQueue []*Request
|
||||
|
||||
func (pq PriorityQueue) Len() int {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue