Documentation
¶
Index ¶
- func GetChainByID(ctx context.Context, id string) (*types.Chain, error)
- func GetFeedsManagerByID(ctx context.Context, id string) (*feeds.FeedsManager, error)
- func GetJobProposalsByFeedsManagerID(ctx context.Context, id string) ([]feeds.JobProposal, error)
- func GetJobRunsByPipelineSpecID(ctx context.Context, id string) ([]pipeline.Run, error)
- func GetNodesByChainID(ctx context.Context, id string) ([]types.Node, error)
- func InjectDataloader(ctx context.Context, app chainlink.Application) context.Context
- func Middleware(app chainlink.Application) gin.HandlerFunc
- type Dataloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChainByID ¶
GetChainByID fetches the chain by it's id.
func GetFeedsManagerByID ¶
GetFeedsManagerByID fetches the feed manager by ID.
func GetJobProposalsByFeedsManagerID ¶
GetJobProposalsByFeedsManagerID fetches the job proposals by feeds manager ID.
func GetJobRunsByPipelineSpecID ¶
GetJobRunsByPipelineSpecID fetches the job runs by pipeline spec ID.
func GetNodesByChainID ¶
GetNodesByChainID fetches the nodes for a chain.
func InjectDataloader ¶
InjectDataloader injects the dataloader into the context.
func Middleware ¶
func Middleware(app chainlink.Application) gin.HandlerFunc
Middleware injects the dataloader into a gin context.
Types ¶
type Dataloader ¶
type Dataloader struct {
NodesByChainIDLoader *dataloader.Loader
ChainsByIDLoader *dataloader.Loader
FeedsManagersByIDLoader *dataloader.Loader
JobRunsByPipelineIDLoader *dataloader.Loader
JobProposalsByManagerIDLoader *dataloader.Loader
// contains filtered or unexported fields
}
func New ¶
func New(app chainlink.Application) *Dataloader
Click to show internal directories.
Click to hide internal directories.