Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobTypeFluxMonitor = "fluxmonitor" JobTypeOffchainReporting = "offchainreporting" )
We only support OCR and FM for the feeds manager
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeedsManager ¶
type FeedsManager struct { ID int64 Name string URI string PublicKey crypto.PublicKey JobTypes pq.StringArray `gorm:"type:text[]"` Network string CreatedAt time.Time UpdatedAt time.Time }
func (FeedsManager) TableName ¶
func (FeedsManager) TableName() string
type JobProposal ¶ added in v0.10.9
type JobProposalStatus ¶ added in v0.10.9
type JobProposalStatus string
JobProposalStatus are the status codes that define the stage of a proposal
const ( JobProposalStatusPending JobProposalStatus = "pending" JobProposalStatusApproved JobProposalStatus = "approved" JobProposalStatusRejected JobProposalStatus = "rejected" )
type ORM ¶
type ORM interface { CountJobProposals() (int64, error) CountManagers() (int64, error) CreateJobProposal(ctx context.Context, jp *JobProposal) (int64, error) CreateManager(ctx context.Context, ms *FeedsManager) (int64, error) GetJobProposal(ctx context.Context, id int64) (*JobProposal, error) GetManager(ctx context.Context, id int64) (*FeedsManager, error) ListJobProposals(ctx context.Context) ([]JobProposal, error) ListManagers(ctx context.Context) ([]FeedsManager, error) }
type RPCHandlers ¶ added in v0.10.9
type RPCHandlers struct {
// contains filtered or unexported fields
}
RPCHandlers define handlers for RPC method calls from the Feeds Manager
func NewRPCHandlers ¶ added in v0.10.9
func NewRPCHandlers(svc Service, feedsManagerID int64) *RPCHandlers
func (*RPCHandlers) ProposeJob ¶ added in v0.10.9
func (h *RPCHandlers) ProposeJob(ctx context.Context, req *pb.ProposeJobRequest) (*pb.ProposeJobResponse, error)
ProposeJob creates a new job proposal record for the feeds manager
type Service ¶
type Service interface { Start() error Close() error CountManagers() (int64, error) CreateJobProposal(jp *JobProposal) (int64, error) GetManager(id int64) (*FeedsManager, error) ListManagers() ([]FeedsManager, error) RegisterManager(ms *FeedsManager) (int64, error) }
func NewService ¶
func NewService(orm ORM, ks keystore.CSAKeystoreInterface) Service
NewService constructs a new feeds service
Click to show internal directories.
Click to hide internal directories.