Documentation ¶
Index ¶
Constants ¶
View Source
const ( HttpsCertFile = "./key/cert.pem" DecryptedHttpsKeyFile = "./key/decryptedKey.pem" )
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(keyGrantor, listenAddr, bchRpcClientInfo string)
Types ¶
type Resp ¶
type Resp struct { Success bool `json:"success"` Error string `json:"error,omitempty"` Result any `json:"result,omitempty"` }
func NewErrResp ¶
func UnmarshalResp ¶
func (Resp) WriteTo ¶
func (resp Resp) WriteTo(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.