Versions in this module Expand all Collapse all v1 v1.10.17 Oct 18, 2021 Changes in this version + func AuthenticateBridgeType(bt *BridgeType, token string) (bool, error) + func AuthenticateExternalInitiator(eia *auth.Token, ea *ExternalInitiator) (bool, error) + func MarshalBridgeMetaData(latestAnswer *big.Int, updatedAt *big.Int) (map[string]interface{}, error) + func NewBridgeType(btr *BridgeTypeRequest) (*BridgeTypeAuthentication, *BridgeType, error) + type BridgeMetaData struct + LatestAnswer *big.Int + UpdatedAt *big.Int + type BridgeMetaDataJSON struct + Meta BridgeMetaData + type BridgeType struct + Confirmations uint32 + CreatedAt time.Time + IncomingTokenHash string + MinimumContractPayment *assets.Link + Name TaskType + OutgoingToken string + Salt string + URL models.WebURL + UpdatedAt time.Time + type BridgeTypeAuthentication struct + Confirmations uint32 + IncomingToken string + MinimumContractPayment *assets.Link + Name TaskType + OutgoingToken string + URL models.WebURL + type BridgeTypeRequest struct + Confirmations uint32 + MinimumContractPayment *assets.Link + Name TaskType + URL models.WebURL + func (bt *BridgeTypeRequest) SetID(value string) error + func (bt BridgeTypeRequest) GetID() string + func (bt BridgeTypeRequest) GetName() string + type ExternalInitiator struct + AccessKey string + CreatedAt time.Time + HashedSecret string + ID int64 + Name string + OutgoingSecret string + OutgoingToken string + Salt string + URL *models.WebURL + UpdatedAt time.Time + func NewExternalInitiator(eia *auth.Token, eir *ExternalInitiatorRequest) (*ExternalInitiator, error) + type ExternalInitiatorRequest struct + Name string + URL *models.WebURL + type ORM interface + BridgeTypes func(offset int, limit int) ([]BridgeType, int, error) + CreateBridgeType func(bt *BridgeType) error + CreateExternalInitiator func(externalInitiator *ExternalInitiator) error + DeleteBridgeType func(bt *BridgeType) error + DeleteExternalInitiator func(name string) error + ExternalInitiators func(offset int, limit int) ([]ExternalInitiator, int, error) + FindBridge func(name TaskType) (bt BridgeType, err error) + FindExternalInitiator func(eia *auth.Token) (*ExternalInitiator, error) + FindExternalInitiatorByName func(iname string) (exi ExternalInitiator, err error) + UpdateBridgeType func(bt *BridgeType, btr *BridgeTypeRequest) error + func NewORM(db *sqlx.DB) ORM + type TaskType string + func MustNewTaskType(val string) TaskType + func NewTaskType(val string) (TaskType, error) + func (t *TaskType) Scan(value interface{}) error + func (t *TaskType) UnmarshalJSON(input []byte) error + func (t TaskType) MarshalJSON() ([]byte, error) + func (t TaskType) String() string + func (t TaskType) Value() (driver.Value, error)