initial go implementation
This commit is contained in:
5
pkg/types/params.go
Normal file
5
pkg/types/params.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package types
|
||||
|
||||
type Params interface {
|
||||
param()
|
||||
}
|
||||
10
pkg/types/request.go
Normal file
10
pkg/types/request.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package types
|
||||
|
||||
type Request struct {
|
||||
Version int `json:"!version"`
|
||||
ClientVersion string `json:"client_version"`
|
||||
Id int `json:"id"`
|
||||
JsonRPC string `json:"jsonrpc"`
|
||||
Method string `json:"method"`
|
||||
Params Params `json:"params"`
|
||||
}
|
||||
7
pkg/types/response.go
Normal file
7
pkg/types/response.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package types
|
||||
|
||||
type Response struct {
|
||||
Code int32 `json:"code"`
|
||||
Type string `json:"type"`
|
||||
Data string `json:"data"`
|
||||
}
|
||||
Reference in New Issue
Block a user