Documentation ¶
Index ¶
- Variables
- type BridgeType
- type BridgeTypeAttributes
- type BridgeTypeData
- type Chainlink
- func (c *Chainlink) CreateBridge(name, url string) error
- func (c *Chainlink) CreateOCRKey() (*OCRKey, error)
- func (c *Chainlink) CreateP2PKey() (*P2PKey, error)
- func (c *Chainlink) CreateSpec(spec string) (string, error)
- func (c *Chainlink) CreateSpecV2(spec string) (*SpecV2, error)
- func (c *Chainlink) DeleteBridge(name string) error
- func (c *Chainlink) DeleteOCRKey(id string) error
- func (c *Chainlink) DeleteP2PKey(id int) error
- func (c *Chainlink) DeleteSpec(id string) error
- func (c *Chainlink) DeleteSpecV2(id string) error
- func (c *Chainlink) ReadBridge(name string) (*BridgeType, error)
- func (c *Chainlink) ReadETHKeys() (*ETHKeys, error)
- func (c *Chainlink) ReadOCRKeys() (*OCRKeys, error)
- func (c *Chainlink) ReadP2PKeys() (*P2PKeys, error)
- func (c *Chainlink) ReadSpec(id string) (*Response, error)
- func (c *Chainlink) ReadSpecV2(id string) error
- type Client
- type Config
- type DataIdentifier
- type ETHKey
- type ETHKeyAttributes
- type ETHKeyData
- type ETHKeys
- type OCRKey
- type OCRKeyAttributes
- type OCRKeyData
- type OCRKeys
- type P2PKey
- type P2PKeyAttributes
- type P2PKeyData
- type P2PKeys
- type Response
- type ResponseArray
- type Session
- type SpecV2
- type SpecV2Data
- type SpecV2Form
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("unexpected response code, got 404")
View Source
var ErrUnprocessableEntity = errors.New("unexpected response code, got 422")
Functions ¶
This section is empty.
Types ¶
type BridgeType ¶
type BridgeType struct {
Data BridgeTypeData `json:"data"`
}
type BridgeTypeAttributes ¶
type BridgeTypeData ¶
type BridgeTypeData struct {
Attributes BridgeTypeAttributes `json:"attributes"`
}
type Chainlink ¶
func NewChainlink ¶
func (*Chainlink) CreateBridge ¶
func (*Chainlink) CreateOCRKey ¶
func (*Chainlink) CreateP2PKey ¶
func (*Chainlink) DeleteBridge ¶
func (*Chainlink) DeleteOCRKey ¶
func (*Chainlink) DeleteP2PKey ¶
func (*Chainlink) DeleteSpec ¶
func (*Chainlink) DeleteSpecV2 ¶
func (*Chainlink) ReadBridge ¶
func (c *Chainlink) ReadBridge(name string) (*BridgeType, error)
func (*Chainlink) ReadETHKeys ¶
func (*Chainlink) ReadOCRKeys ¶
func (*Chainlink) ReadP2PKeys ¶
func (*Chainlink) ReadSpecV2 ¶
type DataIdentifier ¶
type DataIdentifier interface {
Id() string
}
type ETHKey ¶
type ETHKey struct {
Data ETHKeyData `json:"data"`
}
type ETHKeyAttributes ¶
type ETHKeyAttributes struct {
Address string `json:"address"`
}
type ETHKeyData ¶
type ETHKeyData struct {
Attributes ETHKeyAttributes `json:"attributes"`
}
type ETHKeys ¶
type ETHKeys struct {
Data []ETHKeyData `json:"data"`
}
type OCRKey ¶
type OCRKey struct {
Data OCRKeyData `json:"data"`
}
type OCRKeyAttributes ¶
type OCRKeyData ¶
type OCRKeyData struct { ID string `json:"id"` Attributes OCRKeyAttributes `json:"attributes"` }
type OCRKeys ¶
type OCRKeys struct {
Data []OCRKeyData `json:"data"`
}
type P2PKey ¶
type P2PKey struct {
Data P2PKeyData `json:"data"`
}
type P2PKeyAttributes ¶
type P2PKeyData ¶
type P2PKeyData struct {
Attributes P2PKeyAttributes `json:"attributes"`
}
type P2PKeys ¶
type P2PKeys struct {
Data []P2PKeyData `json:"data"`
}
type Response ¶
type Response struct {
Data map[string]interface{}
}
func NewResponse ¶
func NewResponse() Response
type ResponseArray ¶
type ResponseArray struct {
Data []map[string]interface{}
}
type SpecV2 ¶
type SpecV2 struct {
Data SpecV2Data `json:"data"`
}
type SpecV2Data ¶
type SpecV2Data struct {
ID string `json:"id"`
}
type SpecV2Form ¶
type SpecV2Form struct {
TOML string `json:"toml"`
}
Click to show internal directories.
Click to hide internal directories.