Documentation ¶
Index ¶
- Constants
- type BridgeType
- type Cron
- type EIP55Address
- type Encumbrance
- type IndexableBlockNumber
- type Initiator
- type JSON
- type JobRun
- type JobSpec
- type Link
- type Migration
- type RunResult
- type RunStatus
- type ServiceAgreement
- type Session
- type Signature
- type TaskRun
- type TaskSpec
- type TaskType
- type Time
- type Tx
- type TxAttempt
- type Unchanged
- type User
- type WebURL
Constants ¶
View Source
const SignatureLength = 65
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeType ¶
type EIP55Address ¶
type EIP55Address string
type Encumbrance ¶
type Encumbrance struct { Payment *Link `json:"payment"` Expiration uint64 `json:"expiration"` Oracles []EIP55Address `json:"oracles"` }
type IndexableBlockNumber ¶
type Initiator ¶
type Initiator struct { ID int `json:"id" storm:"id,increment"` JobID string `json:"jobId" storm:"index"` Type string `json:"type" storm:"index"` Schedule Cron `json:"schedule,omitempty"` Time Time `json:"time,omitempty"` Ran bool `json:"ran,omitempty"` Address common.Address `json:"address,omitempty" storm:"index"` }
func (*Initiator) UnmarshalJSON ¶
type JobRun ¶
type JobRun struct { ID string `json:"id" storm:"id,unique"` JobID string `json:"jobId" storm:"index"` Result RunResult `json:"result" storm:"inline"` Status RunStatus `json:"status" storm:"index"` TaskRuns []TaskRun `json:"taskRuns" storm:"inline"` CreatedAt time.Time `json:"createdAt" storm:"index"` CompletedAt null.Time `json:"completedAt"` Initiator Initiator `json:"initiator"` CreationHeight *hexutil.Big `json:"creationHeight"` Overrides RunResult `json:"overrides"` }
type ServiceAgreement ¶
type ServiceAgreement struct { CreatedAt Time `json:"createdAt" storm:"index"` Encumbrance Encumbrance `json:"encumbrance" storm:"inline"` ID string `json:"id" storm:"id,unique"` JobSpecID string `json:"jobSpecID"` RequestBody string `json:"requestBody"` Signature Signature `json:"signature"` JobSpec JobSpec }
type Signature ¶
type Signature [SignatureLength]byte
type TaskSpec ¶
type TaskSpec struct { Type TaskType `json:"type" storm:"index"` Confirmations uint64 `json:"confirmations"` Params JSON `json:"-"` }
func (TaskSpec) MarshalJSON ¶
MarshalJSON returns the JSON-encoded TaskSpec Params.
func (*TaskSpec) UnmarshalJSON ¶
UnmarshalJSON parses the given input and updates the TaskSpec.
type Time ¶
func (*Time) UnmarshalJSON ¶
UnmarshalJSON parses the raw time stored in JSON-encoded data and stores it to the Time field.
Click to show internal directories.
Click to hide internal directories.