Versions in this module Expand all Collapse all v0 v0.1.0 Sep 21, 2019 Changes in this version + func IsHttpServerRunning() bool + func MakeDefaultLocalCaller() (rpc.Caller, error) + func MakeLocalCaller(cc string) (rpc.Caller, error) + func NormalEnd(rw web.ResponseWriter, v interface{}) + func NormalError(rw web.ResponseWriter, e error) + func NormalErrorF(rw web.ResponseWriter, code int, message string) + func ParseCompactFormTx(ctxstr string) (e error, flag string, method string, cc string, args [][]byte) + func StartHttpServer(vp *viper.Viper, h http.Handler) error + func StartHttpServerCustom(host string, port int, h http.Handler) error + func StopHttpServer() error + type FabricClientBase struct + RespWrapping func(interface{}) interface{} + func (s *FabricClientBase) Normal(rw web.ResponseWriter, v interface{}) + func (s *FabricClientBase) NormalError(rw web.ResponseWriter, e error) + func (s *FabricClientBase) NormalErrorF(rw web.ResponseWriter, code int, message string) + type FabricRPCBase struct + Caller rpc.Caller + type FabricRPCCore struct + ActivePrivk crypto.Signer + func (s *FabricRPCCore) DefaultOutput(e interface{}) + func (s *FabricRPCCore) DoSignature(rw web.ResponseWriter, req *web.Request) + func (s *FabricRPCCore) PrehandlePost(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc) + func (s *FabricRPCCore) SendRawTx(rw web.ResponseWriter, req *web.Request) + type LocalCaller interface + Output func() string + type RPCRouter struct + func CreateRPCRouter(root *web.Router, path string) RPCRouter + func (r RPCRouter) Init(cf func() (rpc.Caller, error)) RPCRouter + type TxBatch struct + func (t *TxBatch) AcquireCaller() txgen.TxCaller + func (t *TxBatch) AddBatchOut(v interface{}) + type TxBatchRouter struct + func CreateBatchRouter(root TxRouter, path string) TxBatchRouter + func (r TxBatchRouter) Init(methodName string) TxBatchRouter + type TxRouter struct + func CreateTxRouter(root RPCRouter) TxRouter + func (r TxRouter) BuildRoutes() + func (r TxRouter) Init(ccname string) TxRouter