Documentation ¶
Index ¶
- func NewCall(m *types.Metadata, req Request) (types.Call, error)
- func NewFluxMonitorCall(m *types.Metadata, req Request) (types.Call, error)
- func NewSubstrateAdapter(privkey, txtypeStr, endpoint string) (*substrateAdapter, error)
- func NewSubstrateClient(u *url.URL, keyringPair signature.KeyringPair, t txType) (*substrateClient, error)
- func ParseNumericString(input string) (decimal.Decimal, error)
- func RunWebserver(handler handler, port string)
- type HttpService
- type JobReq
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFluxMonitorCall ¶
func NewSubstrateAdapter ¶
func NewSubstrateClient ¶
func NewSubstrateClient(u *url.URL, keyringPair signature.KeyringPair, t txType) (*substrateClient, error)
func RunWebserver ¶
func RunWebserver( handler handler, port string, )
Types ¶
type HttpService ¶
func NewHTTPService ¶
func NewHTTPService( handler handler, ) *HttpService
func (*HttpService) Call ¶
func (srv *HttpService) Call(c *gin.Context)
func (*HttpService) ServeHTTP ¶
func (srv *HttpService) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Request ¶
type Request struct { // Common params: RequestType string `json:"request_type"` Value string `json:"value"` Result string `json:"result"` Multiply int64 `json:"multiply,omitempty"` // Runlog params: Function string `json:"function"` Type string `json:"type"` RequestId interface{} `json:"request_id"` // Fluxmonitor params: FeedId string `json:"feed_id"` RoundId string `json:"round_id"` }
Click to show internal directories.
Click to hide internal directories.