Abstract http into rpc package
New RpcConfig object to pass growing config
This commit is contained in:
@ -21,6 +21,12 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type RpcConfig struct {
|
||||
ListenAddress string
|
||||
ListenPort uint
|
||||
CorsDomain string
|
||||
}
|
||||
|
||||
type InvalidTypeError struct {
|
||||
method string
|
||||
msg string
|
||||
|
Reference in New Issue
Block a user