resolver

package
v0.0.0-...-3674750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PageDefaultOffset defines the default offset to use if none is provided
	PageDefaultOffset = 0

	// PageDefaultLimit defines the default limit to use if none is provided
	PageDefaultLimit = 50
)
View Source
const (
	LogLevelDebug = "DEBUG"
	LogLevelInfo  = "INFO"
	LogLevelWarn  = "WARN"
	LogLevelError = "ERROR"
)

Variables

This section is empty.

Functions

func FromLogLevel

func FromLogLevel(logLvl LogLevel) string

func ValidateBridgeType

func ValidateBridgeType(bt *bridges.BridgeTypeRequest) error

ValidateBridgeType checks that the bridge type doesn't have a duplicate or invalid name or invalid url

This validation function should be moved into a bridge service and return multiple errors.

func ValidateBridgeTypeUniqueness

func ValidateBridgeTypeUniqueness(bt *bridges.BridgeTypeRequest, orm bridges.ORM) error

ValidateBridgeTypeUniqueness checks that a bridge has not already been created

/ This validation function should be moved into a bridge service.

Types

type APITokenResolver

type APITokenResolver struct {
	// contains filtered or unexported fields
}

func NewAPIToken

func NewAPIToken(token auth.Token) *APITokenResolver

func (*APITokenResolver) AccessKey

func (r *APITokenResolver) AccessKey() string

func (*APITokenResolver) Secret

func (r *APITokenResolver) Secret() string

type BlockhashStoreSpecResolver

type BlockhashStoreSpecResolver struct {
	// contains filtered or unexported fields
}

BlockhashStoreSpecResolver exposes the job parameters for a BlockhashStoreSpec.

func (*BlockhashStoreSpecResolver) BlockhashStoreAddress

func (b *BlockhashStoreSpecResolver) BlockhashStoreAddress() string

BlockhashStoreAddress returns the job's BlockhashStoreAddress param.

func (*BlockhashStoreSpecResolver) CoordinatorV1Address

func (b *BlockhashStoreSpecResolver) CoordinatorV1Address() *string

CoordinatorV1Address returns the address of the V1 Coordinator, if any.

func (*BlockhashStoreSpecResolver) CoordinatorV2Address

func (b *BlockhashStoreSpecResolver) CoordinatorV2Address() *string

CoordinatorV2Address returns the address of the V2 Coordinator, if any.

func (*BlockhashStoreSpecResolver) CoordinatorV2PlusAddress

func (b *BlockhashStoreSpecResolver) CoordinatorV2PlusAddress() *string

CoordinatorV2PlusAddress returns the address of the V2Plus Coordinator, if any.

func (*BlockhashStoreSpecResolver) CreatedAt

func (b *BlockhashStoreSpecResolver) CreatedAt() graphql.Time

CreatedAt resolves the spec's created at timestamp.

func (*BlockhashStoreSpecResolver) EVMChainID

func (b *BlockhashStoreSpecResolver) EVMChainID() *string

EVMChainID returns the job's EVMChainID param.

func (*BlockhashStoreSpecResolver) FromAddresses

func (b *BlockhashStoreSpecResolver) FromAddresses() *[]string

FromAddress returns the job's FromAddress param, if any.

func (*BlockhashStoreSpecResolver) HeartbeatPeriod

func (b *BlockhashStoreSpecResolver) HeartbeatPeriod() string

HeartbeatPeriod returns the job's HeartbeatPeriod param.

func (*BlockhashStoreSpecResolver) LookbackBlocks

func (b *BlockhashStoreSpecResolver) LookbackBlocks() int32

LookbackBlocks returns the job's LookbackBlocks param.

func (*BlockhashStoreSpecResolver) PollPeriod

func (b *BlockhashStoreSpecResolver) PollPeriod() string

PollPeriod return's the job's PollPeriod param.

func (*BlockhashStoreSpecResolver) RunTimeout

func (b *BlockhashStoreSpecResolver) RunTimeout() string

RunTimeout return's the job's RunTimeout param.

func (*BlockhashStoreSpecResolver) TrustedBlockhashStoreAddress

func (b *BlockhashStoreSpecResolver) TrustedBlockhashStoreAddress() *string

TrustedBlockhashStoreAddress returns the address of the job's TrustedBlockhashStoreAddress, if any.

func (*BlockhashStoreSpecResolver) TrustedBlockhashStoreBatchSize

func (b *BlockhashStoreSpecResolver) TrustedBlockhashStoreBatchSize() int32

BatchBlockhashStoreAddress returns the job's BatchBlockhashStoreAddress param.

func (*BlockhashStoreSpecResolver) WaitBlocks

func (b *BlockhashStoreSpecResolver) WaitBlocks() int32

WaitBlocks returns the job's WaitBlocks param.

type BridgePayloadResolver

type BridgePayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

BridgePayloadResolver resolves a single bridge response

func NewBridgePayload

func NewBridgePayload(bridge bridges.BridgeType, err error) *BridgePayloadResolver

func (*BridgePayloadResolver) ToBridge

func (r *BridgePayloadResolver) ToBridge() (*BridgeResolver, bool)

ToBridge implements the Bridge union type of the payload

type BridgeResolver

type BridgeResolver struct {
	// contains filtered or unexported fields
}

BridgeResolver resolves the Bridge type.

func NewBridge

func NewBridge(bridge bridges.BridgeType) *BridgeResolver

func NewBridges

func NewBridges(bridges []bridges.BridgeType) []*BridgeResolver

func (*BridgeResolver) Confirmations

func (r *BridgeResolver) Confirmations() int32

Confirmations resolves the bridge's url.

func (*BridgeResolver) CreatedAt

func (r *BridgeResolver) CreatedAt() graphql.Time

CreatedAt resolves the bridge's created at field.

func (*BridgeResolver) ID

func (r *BridgeResolver) ID() graphql.ID

ID resolves the bridge's name as the id (Bridge does not have an id).

func (*BridgeResolver) MinimumContractPayment

func (r *BridgeResolver) MinimumContractPayment() string

MinimumContractPayment resolves the bridge's minimum contract payment.

func (*BridgeResolver) Name

func (r *BridgeResolver) Name() string

Name resolves the bridge's name.

func (*BridgeResolver) OutgoingToken

func (r *BridgeResolver) OutgoingToken() string

OutgoingToken resolves the bridge's outgoing token.

func (*BridgeResolver) URL

func (r *BridgeResolver) URL() string

URL resolves the bridge's url.

type BridgesPayloadResolver

type BridgesPayloadResolver struct {
	// contains filtered or unexported fields
}

BridgesPayloadResolver resolves a page of bridges

func NewBridgesPayload

func NewBridgesPayload(bridges []bridges.BridgeType, total int32) *BridgesPayloadResolver

func (*BridgesPayloadResolver) Metadata

Metadata returns the pagination metadata.

func (*BridgesPayloadResolver) Results

func (r *BridgesPayloadResolver) Results() []*BridgeResolver

Results returns the bridges.

type CSAKeyExistsErrorResolver

type CSAKeyExistsErrorResolver struct {
	// contains filtered or unexported fields
}

func NewCSAKeyExistsError

func NewCSAKeyExistsError(message string) *CSAKeyExistsErrorResolver

func (*CSAKeyExistsErrorResolver) Code

func (*CSAKeyExistsErrorResolver) Message

func (r *CSAKeyExistsErrorResolver) Message() string

type CSAKeyResolver

type CSAKeyResolver struct {
	// contains filtered or unexported fields
}

CSAKeyResolver resolves the single CSA Key object

func NewCSAKey

func NewCSAKey(key csakey.KeyV2) *CSAKeyResolver

func NewCSAKeys

func NewCSAKeys(keys []csakey.KeyV2) []*CSAKeyResolver

func (*CSAKeyResolver) ID

func (r *CSAKeyResolver) ID() graphql.ID

ID resolves the CSA Key public key as the id.

func (*CSAKeyResolver) PublicKey

func (r *CSAKeyResolver) PublicKey() string

PubKey resolves the CSA Key public key string.

func (*CSAKeyResolver) Version

func (r *CSAKeyResolver) Version() int32

Version resolves the CSA Key version number.

type CSAKeysPayloadResolver

type CSAKeysPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewCSAKeysResolver

func NewCSAKeysResolver(keys []csakey.KeyV2) *CSAKeysPayloadResolver

func (*CSAKeysPayloadResolver) Results

func (r *CSAKeysPayloadResolver) Results() []*CSAKeyResolver

type ChainPayloadResolver

type ChainPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewChainPayload

func NewChainPayload(chain types.ChainStatus, err error) *ChainPayloadResolver

func (*ChainPayloadResolver) ToChain

func (r *ChainPayloadResolver) ToChain() (*ChainResolver, bool)

type ChainResolver

type ChainResolver struct {
	// contains filtered or unexported fields
}

ChainResolver resolves the Chain type.

func NewChain

func NewChain(chain types.ChainStatus) *ChainResolver

func NewChains

func NewChains(chains []types.ChainStatus) []*ChainResolver

func (*ChainResolver) Config

func (r *ChainResolver) Config() string

Config resolves the chain's configuration field

func (*ChainResolver) Enabled

func (r *ChainResolver) Enabled() bool

Enabled resolves the chain's enabled field.

func (*ChainResolver) ID

func (r *ChainResolver) ID() graphql.ID

ID resolves the chain's unique identifier.

type ChainsPayloadResolver

type ChainsPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewChainsPayload

func NewChainsPayload(chains []types.ChainStatus, total int32) *ChainsPayloadResolver

func (*ChainsPayloadResolver) Metadata

func (*ChainsPayloadResolver) Results

func (r *ChainsPayloadResolver) Results() []*ChainResolver

type ConfigV2PayloadResolver

type ConfigV2PayloadResolver struct {
	// contains filtered or unexported fields
}

func NewConfigV2Payload

func NewConfigV2Payload(user, effective string) *ConfigV2PayloadResolver

func (*ConfigV2PayloadResolver) Effective

func (r *ConfigV2PayloadResolver) Effective() string

func (*ConfigV2PayloadResolver) User

func (r *ConfigV2PayloadResolver) User() string

type CreateAPITokenPayloadResolver

type CreateAPITokenPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewCreateAPITokenPayload

func NewCreateAPITokenPayload(token *auth.Token, inputErrs map[string]string) *CreateAPITokenPayloadResolver

func (*CreateAPITokenPayloadResolver) ToCreateAPITokenSuccess

func (r *CreateAPITokenPayloadResolver) ToCreateAPITokenSuccess() (*CreateAPITokenSuccessResolver, bool)

func (*CreateAPITokenPayloadResolver) ToInputErrors

type CreateAPITokenSuccessResolver

type CreateAPITokenSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewCreateAPITokenSuccess

func NewCreateAPITokenSuccess(token *auth.Token) *CreateAPITokenSuccessResolver

func (*CreateAPITokenSuccessResolver) Token

type CreateBridgePayloadResolver

type CreateBridgePayloadResolver struct {
	// contains filtered or unexported fields
}

CreateBridgePayloadResolver

func NewCreateBridgePayload

func NewCreateBridgePayload(bridge bridges.BridgeType, incomingToken string) *CreateBridgePayloadResolver

func (*CreateBridgePayloadResolver) ToCreateBridgeSuccess

func (r *CreateBridgePayloadResolver) ToCreateBridgeSuccess() (*CreateBridgeSuccessResolver, bool)

type CreateBridgeSuccessResolver

type CreateBridgeSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewCreateBridgeSuccessResolver

func NewCreateBridgeSuccessResolver(bridge bridges.BridgeType, incomingToken string) *CreateBridgeSuccessResolver

func (*CreateBridgeSuccessResolver) Bridge

Bridge resolves the bridge.

func (*CreateBridgeSuccessResolver) IncomingToken

func (r *CreateBridgeSuccessResolver) IncomingToken() string

Token resolves the bridge's incoming token.

type CreateCSAKeyPayloadResolver

type CreateCSAKeyPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewCreateCSAKeyPayload

func NewCreateCSAKeyPayload(key *csakey.KeyV2, err error) *CreateCSAKeyPayloadResolver

func (*CreateCSAKeyPayloadResolver) ToCSAKeyExistsError

func (r *CreateCSAKeyPayloadResolver) ToCSAKeyExistsError() (*CSAKeyExistsErrorResolver, bool)

func (*CreateCSAKeyPayloadResolver) ToCreateCSAKeySuccess

func (r *CreateCSAKeyPayloadResolver) ToCreateCSAKeySuccess() (*CreateCSAKeySuccessResolver, bool)

type CreateCSAKeySuccessResolver

type CreateCSAKeySuccessResolver struct {
	// contains filtered or unexported fields
}

func NewCreateCSAKeySuccessResolver

func NewCreateCSAKeySuccessResolver(key *csakey.KeyV2) *CreateCSAKeySuccessResolver

func (*CreateCSAKeySuccessResolver) CSAKey

type CreateJobPayloadResolver

type CreateJobPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewCreateJobPayload

func NewCreateJobPayload(app erinaceus.Application, job *job.Job, inputErrs map[string]string) *CreateJobPayloadResolver

func (*CreateJobPayloadResolver) ToCreateJobSuccess

func (r *CreateJobPayloadResolver) ToCreateJobSuccess() (*CreateJobSuccessResolver, bool)

func (*CreateJobPayloadResolver) ToInputErrors

func (r *CreateJobPayloadResolver) ToInputErrors() (*InputErrorsResolver, bool)

type CreateJobSuccessResolver

type CreateJobSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewCreateJobSuccess

func NewCreateJobSuccess(app erinaceus.Application, job *job.Job) *CreateJobSuccessResolver

func (*CreateJobSuccessResolver) Job

type CreateVRFKeyPayloadResolver

type CreateVRFKeyPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewCreateVRFKeyPayloadResolver

func NewCreateVRFKeyPayloadResolver(key vrfkey.KeyV2) *CreateVRFKeyPayloadResolver

func (*CreateVRFKeyPayloadResolver) Key

type DeleteAPITokenPayloadResolver

type DeleteAPITokenPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteAPITokenPayload

func NewDeleteAPITokenPayload(token *auth.Token, inputErrs map[string]string) *DeleteAPITokenPayloadResolver

func (*DeleteAPITokenPayloadResolver) ToDeleteAPITokenSuccess

func (r *DeleteAPITokenPayloadResolver) ToDeleteAPITokenSuccess() (*DeleteAPITokenSuccessResolver, bool)

func (*DeleteAPITokenPayloadResolver) ToInputErrors

type DeleteAPITokenSuccessResolver

type DeleteAPITokenSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteAPITokenSuccess

func NewDeleteAPITokenSuccess(token *auth.Token) *DeleteAPITokenSuccessResolver

func (*DeleteAPITokenSuccessResolver) Token

type DeleteBridgeConflictErrorResolver

type DeleteBridgeConflictErrorResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteBridgeConflictError

func NewDeleteBridgeConflictError(message string) *DeleteBridgeConflictErrorResolver

func (*DeleteBridgeConflictErrorResolver) Code

func (*DeleteBridgeConflictErrorResolver) Message

type DeleteBridgeInvalidNameErrorResolver

type DeleteBridgeInvalidNameErrorResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteBridgeInvalidNameError

func NewDeleteBridgeInvalidNameError(message string) *DeleteBridgeInvalidNameErrorResolver

func (*DeleteBridgeInvalidNameErrorResolver) Code

func (*DeleteBridgeInvalidNameErrorResolver) Message

type DeleteBridgePayloadResolver

type DeleteBridgePayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewDeleteBridgePayload

func NewDeleteBridgePayload(bridge *bridges.BridgeType, err error) *DeleteBridgePayloadResolver

func (*DeleteBridgePayloadResolver) ToDeleteBridgeConflictError

func (r *DeleteBridgePayloadResolver) ToDeleteBridgeConflictError() (*DeleteBridgeConflictErrorResolver, bool)

func (*DeleteBridgePayloadResolver) ToDeleteBridgeInvalidNameError

func (r *DeleteBridgePayloadResolver) ToDeleteBridgeInvalidNameError() (*DeleteBridgeInvalidNameErrorResolver, bool)

func (*DeleteBridgePayloadResolver) ToDeleteBridgeSuccess

func (r *DeleteBridgePayloadResolver) ToDeleteBridgeSuccess() (*DeleteBridgeSuccessResolver, bool)

type DeleteBridgeSuccessResolver

type DeleteBridgeSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteBridgeSuccess

func NewDeleteBridgeSuccess(bridge *bridges.BridgeType) *DeleteBridgeSuccessResolver

func (*DeleteBridgeSuccessResolver) Bridge

type DeleteCSAKeyPayloadResolver

type DeleteCSAKeyPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewDeleteCSAKeyPayload

func NewDeleteCSAKeyPayload(key csakey.KeyV2, err error) *DeleteCSAKeyPayloadResolver

func (*DeleteCSAKeyPayloadResolver) ToDeleteCSAKeySuccess

func (r *DeleteCSAKeyPayloadResolver) ToDeleteCSAKeySuccess() (*DeleteCSAKeySuccessResolver, bool)

type DeleteCSAKeySuccessResolver

type DeleteCSAKeySuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteCSAKeySuccess

func NewDeleteCSAKeySuccess(key csakey.KeyV2) *DeleteCSAKeySuccessResolver

func (*DeleteCSAKeySuccessResolver) CSAKey

type DeleteJobPayloadResolver

type DeleteJobPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewDeleteJobPayload

func NewDeleteJobPayload(app erinaceus.Application, j *job.Job, err error) *DeleteJobPayloadResolver

func (*DeleteJobPayloadResolver) ToDeleteJobSuccess

func (r *DeleteJobPayloadResolver) ToDeleteJobSuccess() (*DeleteJobSuccessResolver, bool)

type DeleteJobSuccessResolver

type DeleteJobSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteJobSuccess

func NewDeleteJobSuccess(app erinaceus.Application, job *job.Job) *DeleteJobSuccessResolver

func (*DeleteJobSuccessResolver) Job

type DeleteVRFKeyPayloadResolver

type DeleteVRFKeyPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewDeleteVRFKeyPayloadResolver

func NewDeleteVRFKeyPayloadResolver(key vrfkey.KeyV2, err error) *DeleteVRFKeyPayloadResolver

func (*DeleteVRFKeyPayloadResolver) ToDeleteVRFKeySuccess

func (r *DeleteVRFKeyPayloadResolver) ToDeleteVRFKeySuccess() (*DeleteVRFKeySuccessResolver, bool)

type DeleteVRFKeySuccessResolver

type DeleteVRFKeySuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDeleteVRFKeySuccessResolver

func NewDeleteVRFKeySuccessResolver(key vrfkey.KeyV2) *DeleteVRFKeySuccessResolver

func (*DeleteVRFKeySuccessResolver) Key

type DismissJobErrorPayloadResolver

type DismissJobErrorPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewDismissJobErrorPayload

func NewDismissJobErrorPayload(specError *job.SpecError, err error) *DismissJobErrorPayloadResolver

func (*DismissJobErrorPayloadResolver) ToDismissJobErrorSuccess

func (r *DismissJobErrorPayloadResolver) ToDismissJobErrorSuccess() (*DismissJobErrorSuccessResolver, bool)

type DismissJobErrorSuccessResolver

type DismissJobErrorSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewDismissJobErrorSuccess

func NewDismissJobErrorSuccess(specError *job.SpecError) *DismissJobErrorSuccessResolver

func (*DismissJobErrorSuccessResolver) JobError

type ETHKey

type ETHKey struct {
	// contains filtered or unexported fields
}

type ETHKeyResolver

type ETHKeyResolver struct {
	// contains filtered or unexported fields
}

func NewETHKey

func NewETHKey(key ETHKey) *ETHKeyResolver

func NewETHKeys

func NewETHKeys(keys []ETHKey) []*ETHKeyResolver

func (*ETHKeyResolver) Address

func (r *ETHKeyResolver) Address() string

func (*ETHKeyResolver) Chain

func (r *ETHKeyResolver) Chain(ctx context.Context) (*ChainResolver, error)

func (*ETHKeyResolver) CreatedAt

func (r *ETHKeyResolver) CreatedAt() graphql.Time

func (*ETHKeyResolver) ETHBalance

func (r *ETHKeyResolver) ETHBalance(ctx context.Context) *string

ETHBalance returns the ETH balance available

func (*ETHKeyResolver) IsDisabled

func (r *ETHKeyResolver) IsDisabled() bool

func (*ETHKeyResolver) LINKBalance

func (r *ETHKeyResolver) LINKBalance(ctx context.Context) *string

func (*ETHKeyResolver) MaxGasPriceWei

func (r *ETHKeyResolver) MaxGasPriceWei() *string

func (*ETHKeyResolver) UpdatedAt

func (r *ETHKeyResolver) UpdatedAt() graphql.Time

type ETHKeysPayloadResolver

type ETHKeysPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewETHKeysPayload

func NewETHKeysPayload(keys []ETHKey) *ETHKeysPayloadResolver

func (*ETHKeysPayloadResolver) Results

func (r *ETHKeysPayloadResolver) Results() []*ETHKeyResolver

type ErrorCode

type ErrorCode string
const (
	ErrorCodeNotFound       ErrorCode = "NOT_FOUND"
	ErrorCodeInvalidInput   ErrorCode = "INVALID_INPUT"
	ErrorCodeUnprocessable  ErrorCode = "UNPROCESSABLE"
	ErrorCodeStatusConflict ErrorCode = "STATUS_CONFLICT"
)

type EthTransactionAttemptResolver

type EthTransactionAttemptResolver struct {
	// contains filtered or unexported fields
}

func NewEthTransactionAttempt

func NewEthTransactionAttempt(attmpt txmgr.TxAttempt) *EthTransactionAttemptResolver

func NewEthTransactionsAttempts

func NewEthTransactionsAttempts(results []txmgr.TxAttempt) []*EthTransactionAttemptResolver

func (*EthTransactionAttemptResolver) GasPrice

func (r *EthTransactionAttemptResolver) GasPrice() string

func (*EthTransactionAttemptResolver) Hash

func (*EthTransactionAttemptResolver) Hex

func (*EthTransactionAttemptResolver) SentAt

type EthTransactionPayloadResolver

type EthTransactionPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewEthTransactionPayload

func NewEthTransactionPayload(tx *txmgr.Tx, err error) *EthTransactionPayloadResolver

func (*EthTransactionPayloadResolver) ToEthTransaction

func (r *EthTransactionPayloadResolver) ToEthTransaction() (*EthTransactionResolver, bool)

type EthTransactionResolver

type EthTransactionResolver struct {
	// contains filtered or unexported fields
}

func NewEthTransaction

func NewEthTransaction(tx txmgr.Tx) *EthTransactionResolver

func NewEthTransactions

func NewEthTransactions(results []txmgr.Tx) []*EthTransactionResolver

func (*EthTransactionResolver) Attempts

func (*EthTransactionResolver) Chain

Chain resolves the node's chain object field.

func (*EthTransactionResolver) Data

func (*EthTransactionResolver) EVMChainID

func (r *EthTransactionResolver) EVMChainID() graphql.ID

func (*EthTransactionResolver) From

func (r *EthTransactionResolver) From() string

func (*EthTransactionResolver) GasLimit

func (r *EthTransactionResolver) GasLimit() string

func (*EthTransactionResolver) GasPrice

func (r *EthTransactionResolver) GasPrice(ctx context.Context) string

func (*EthTransactionResolver) Hash

func (*EthTransactionResolver) Hex

func (*EthTransactionResolver) Nonce

func (r *EthTransactionResolver) Nonce() *string

func (*EthTransactionResolver) SentAt

func (r *EthTransactionResolver) SentAt(ctx context.Context) *string

func (*EthTransactionResolver) State

func (r *EthTransactionResolver) State() string

func (*EthTransactionResolver) To

func (*EthTransactionResolver) Value

func (r *EthTransactionResolver) Value() string

type EthTransactionsAttemptsPayloadResolver

type EthTransactionsAttemptsPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewEthTransactionsAttemptsPayload

func NewEthTransactionsAttemptsPayload(results []txmgr.TxAttempt, total int32) *EthTransactionsAttemptsPayloadResolver

func (*EthTransactionsAttemptsPayloadResolver) Metadata

func (*EthTransactionsAttemptsPayloadResolver) Results

type EthTransactionsPayloadResolver

type EthTransactionsPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewEthTransactionsPayload

func NewEthTransactionsPayload(results []txmgr.Tx, total int32) *EthTransactionsPayloadResolver

func (*EthTransactionsPayloadResolver) Metadata

func (*EthTransactionsPayloadResolver) Results

type FeaturesPayloadResolver

type FeaturesPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewFeaturesPayloadResolver

func NewFeaturesPayloadResolver(cfg config.Feature) *FeaturesPayloadResolver

func (*FeaturesPayloadResolver) ToFeatures

func (r *FeaturesPayloadResolver) ToFeatures() (*FeaturesResolver, bool)

type FeaturesResolver

type FeaturesResolver struct {
	// contains filtered or unexported fields
}

func NewFeaturesResolver

func NewFeaturesResolver(cfg config.Feature) *FeaturesResolver

func (*FeaturesResolver) CSA

func (r *FeaturesResolver) CSA() bool

CSA resolves to whether CSA Keys are enabled

type GatewaySpecResolver

type GatewaySpecResolver struct {
	// contains filtered or unexported fields
}

func (*GatewaySpecResolver) CreatedAt

func (r *GatewaySpecResolver) CreatedAt() graphql.Time

func (*GatewaySpecResolver) GatewayConfig

func (r *GatewaySpecResolver) GatewayConfig() gqlscalar.Map

func (*GatewaySpecResolver) ID

func (r *GatewaySpecResolver) ID() graphql.ID

type GetSQLLoggingPayloadResolver

type GetSQLLoggingPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewGetSQLLoggingPayload

func NewGetSQLLoggingPayload(enabled bool) *GetSQLLoggingPayloadResolver

func (*GetSQLLoggingPayloadResolver) ToSQLLogging

type GlobalLogLevelPayloadResolver

type GlobalLogLevelPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewGlobalLogLevelPayload

func NewGlobalLogLevelPayload(lgLvl string) *GlobalLogLevelPayloadResolver

func (*GlobalLogLevelPayloadResolver) ToGlobalLogLevel

func (r *GlobalLogLevelPayloadResolver) ToGlobalLogLevel() (*GlobalLogLevelResolver, bool)

type GlobalLogLevelResolver

type GlobalLogLevelResolver struct {
	// contains filtered or unexported fields
}

func GlobalLogLevel

func GlobalLogLevel(lvl string) *GlobalLogLevelResolver

func (*GlobalLogLevelResolver) Level

func (r *GlobalLogLevelResolver) Level() (LogLevel, error)

type InputErrorResolver

type InputErrorResolver struct {
	// contains filtered or unexported fields
}

func NewInputError

func NewInputError(path, message string) *InputErrorResolver

func (*InputErrorResolver) Code

func (r *InputErrorResolver) Code() ErrorCode

func (*InputErrorResolver) Message

func (r *InputErrorResolver) Message() string

func (*InputErrorResolver) Path

func (r *InputErrorResolver) Path() string

type InputErrorsResolver

type InputErrorsResolver struct {
	// contains filtered or unexported fields
}

InputErrorsResolver groups a slice of input errors

func NewInputErrors

func NewInputErrors(iers []*InputErrorResolver) *InputErrorsResolver

func (*InputErrorsResolver) Errors

func (r *InputErrorsResolver) Errors() []*InputErrorResolver

type JobErrorResolver

type JobErrorResolver struct {
	// contains filtered or unexported fields
}

JobErrorResolver resolves a Job Error

func NewJobError

func NewJobError(specError job.SpecError) *JobErrorResolver

func NewJobErrors

func NewJobErrors(specErrors []job.SpecError) []*JobErrorResolver

func (*JobErrorResolver) CreatedAt

func (r *JobErrorResolver) CreatedAt() graphql.Time

CreatedAt resolves the job error's created at timestamp.

func (*JobErrorResolver) Description

func (r *JobErrorResolver) Description() string

Description resolves the job error's description.

func (*JobErrorResolver) ID

func (r *JobErrorResolver) ID() graphql.ID

ID resolves the job error's id.

func (*JobErrorResolver) Occurrences

func (r *JobErrorResolver) Occurrences() int32

Occurrences resolves the job error's number of occurrences.

func (*JobErrorResolver) UpdatedAt

func (r *JobErrorResolver) UpdatedAt() graphql.Time

UpdatedAt resolves the job error's updated at timestamp.

type JobPayloadResolver

type JobPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewJobPayload

func NewJobPayload(app erinaceus.Application, j *job.Job, err error) *JobPayloadResolver

func (*JobPayloadResolver) ToJob

func (r *JobPayloadResolver) ToJob() (*JobResolver, bool)

ToJob implements the JobPayload union type of the payload

type JobResolver

type JobResolver struct {
	// contains filtered or unexported fields
}

JobResolver resolves the Job type.

func NewJob

func NewJob(app erinaceus.Application, j job.Job) *JobResolver

func NewJobs

func NewJobs(app erinaceus.Application, jobs []job.Job) []*JobResolver

func (*JobResolver) CreatedAt

func (r *JobResolver) CreatedAt() graphql.Time

CreatedAt resolves the job's created at timestamp.

func (*JobResolver) Errors

func (r *JobResolver) Errors(ctx context.Context) ([]*JobErrorResolver, error)

Errors resolves the job's top level errors.

func (*JobResolver) ExternalJobID

func (r *JobResolver) ExternalJobID() string

ExternalJobID resolves the job's external job id.

func (*JobResolver) ForwardingAllowed

func (r *JobResolver) ForwardingAllowed() *bool

ForwardingAllowed sets whether txs submitted by this job should be forwarded when possible.

func (*JobResolver) GasLimit

func (r *JobResolver) GasLimit() *int32

GasLimit resolves the job's gas limit.

func (*JobResolver) ID

func (r *JobResolver) ID() graphql.ID

ID resolves the job's id.

func (*JobResolver) MaxTaskDuration

func (r *JobResolver) MaxTaskDuration() string

MaxTaskDuration resolves the job's max task duration.

func (*JobResolver) Name

func (r *JobResolver) Name() string

Name resolves the job's name.

func (*JobResolver) ObservationSource

func (r *JobResolver) ObservationSource() string

ObservationSource resolves the job's observation source.

This could potentially be moved to a dataloader in the future as we are fetching it from a relationship.

func (*JobResolver) Runs

func (r *JobResolver) Runs(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*JobRunsPayloadResolver, error)

Runs fetches the runs for a Job.

func (*JobResolver) SchemaVersion

func (r *JobResolver) SchemaVersion() int32

SchemaVersion resolves the job's schema version.

func (*JobResolver) Spec

func (r *JobResolver) Spec() *SpecResolver

Spec resolves the job's spec.

func (*JobResolver) Type

func (r *JobResolver) Type() string

Type resolves the job's type.

type JobRunPayloadResolver

type JobRunPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewJobRunPayload

func NewJobRunPayload(jr *pipeline.Run, app erinaceus.Application, err error) *JobRunPayloadResolver

func (*JobRunPayloadResolver) ToJobRun

func (r *JobRunPayloadResolver) ToJobRun() (*JobRunResolver, bool)

type JobRunResolver

type JobRunResolver struct {
	// contains filtered or unexported fields
}

func NewJobRun

func NewJobRun(run pipeline.Run, app erinaceus.Application) *JobRunResolver

func NewJobRuns

func NewJobRuns(runs []pipeline.Run, app erinaceus.Application) []*JobRunResolver

func (*JobRunResolver) AllErrors

func (r *JobRunResolver) AllErrors() []string

func (*JobRunResolver) CreatedAt

func (r *JobRunResolver) CreatedAt() graphql.Time

func (*JobRunResolver) FatalErrors

func (r *JobRunResolver) FatalErrors() []string

func (*JobRunResolver) FinishedAt

func (r *JobRunResolver) FinishedAt() *graphql.Time

func (*JobRunResolver) ID

func (r *JobRunResolver) ID() graphql.ID

func (*JobRunResolver) Inputs

func (r *JobRunResolver) Inputs() string

func (*JobRunResolver) Job

func (*JobRunResolver) Outputs

func (r *JobRunResolver) Outputs() []*string

func (*JobRunResolver) PipelineSpecID

func (r *JobRunResolver) PipelineSpecID() graphql.ID

func (*JobRunResolver) Status

func (r *JobRunResolver) Status() JobRunStatus

func (*JobRunResolver) TaskRuns

func (r *JobRunResolver) TaskRuns() []*TaskRunResolver

TaskRuns resolves the job run's task runs

This could be moved to a data loader later, which means also modifying to ORM to not get everything at once

type JobRunStatus

type JobRunStatus string
const (
	JobRunStatusUnknown   JobRunStatus = "UNKNOWN"
	JobRunStatusRunning   JobRunStatus = "RUNNING"
	JobRunStatusSuspended JobRunStatus = "SUSPENDED"
	JobRunStatusErrored   JobRunStatus = "ERRORED"
	JobRunStatusCompleted JobRunStatus = "COMPLETED"
)

func NewJobRunStatus

func NewJobRunStatus(status pipeline.RunStatus) JobRunStatus

type JobRunsPayloadResolver

type JobRunsPayloadResolver struct {
	// contains filtered or unexported fields
}

JobRunsPayloadResolver resolves a page of job runs

func NewJobRunsPayload

func NewJobRunsPayload(runs []pipeline.Run, total int32, app erinaceus.Application) *JobRunsPayloadResolver

func (*JobRunsPayloadResolver) Metadata

Metadata returns the pagination metadata.

func (*JobRunsPayloadResolver) Results

func (r *JobRunsPayloadResolver) Results() []*JobRunResolver

Results returns the job runs.

type JobsPayloadResolver

type JobsPayloadResolver struct {
	// contains filtered or unexported fields
}

JobsPayloadResolver resolves a page of jobs

func NewJobsPayload

func NewJobsPayload(app erinaceus.Application, jobs []job.Job, total int32) *JobsPayloadResolver

func (*JobsPayloadResolver) Metadata

Metadata returns the pagination metadata.

func (*JobsPayloadResolver) Results

func (r *JobsPayloadResolver) Results() []*JobResolver

Results returns the jobs.

type LogLevel

type LogLevel string

func ToLogLevel

func ToLogLevel(str string) (LogLevel, error)

type NodePayloadResolver

type NodePayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewNodePayloadResolver

func NewNodePayloadResolver(node *types.NodeStatus, err error) (npr *NodePayloadResolver, warn error)

func (*NodePayloadResolver) ToNode

func (r *NodePayloadResolver) ToNode() (*NodeResolver, bool)

ToNode resolves the Node object to be returned if it is found

type NodeResolver

type NodeResolver struct {
	// contains filtered or unexported fields
}

NodeResolver resolves the Node type.

func NewNode

func NewNode(status types.NodeStatus) (nr *NodeResolver, warn error)

func NewNodes

func NewNodes(nodes []types.NodeStatus) (resolvers []*NodeResolver, warns error)

func (*NodeResolver) Chain

func (r *NodeResolver) Chain(ctx context.Context) (*ChainResolver, error)

Chain resolves the node's chain object field.

func (*NodeResolver) HTTPURL

func (r *NodeResolver) HTTPURL() string

HTTPURL resolves the node's http url field.

func (*NodeResolver) ID

func (r *NodeResolver) ID() graphql.ID

ID resolves the node's unique identifier.

func (*NodeResolver) Name

func (r *NodeResolver) Name() string

Name resolves the node's name field.

func (*NodeResolver) Order

func (r *NodeResolver) Order() *int32

Order resolves the node's order field

func (*NodeResolver) SendOnly

func (r *NodeResolver) SendOnly() bool

SendOnly resolves the node's sendOnly bool

func (*NodeResolver) State

func (r *NodeResolver) State() string

State resolves the node state

func (*NodeResolver) WSURL

func (r *NodeResolver) WSURL() string

WSURL resolves the node's websocket url field.

type NodesPayloadResolver

type NodesPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewNodesPayload

func NewNodesPayload(nodes []types.NodeStatus, total int32) (npr *NodesPayloadResolver, warn error)

func (*NodesPayloadResolver) Metadata

func (*NodesPayloadResolver) Results

func (r *NodesPayloadResolver) Results() []*NodeResolver

type NotFoundErrorResolver

type NotFoundErrorResolver struct {
	// contains filtered or unexported fields
}

func NewNotFoundError

func NewNotFoundError(message string) *NotFoundErrorResolver

func (*NotFoundErrorResolver) Code

func (r *NotFoundErrorResolver) Code() ErrorCode

func (*NotFoundErrorResolver) Message

func (r *NotFoundErrorResolver) Message() string

type NotFoundErrorUnionType

type NotFoundErrorUnionType struct {
	// contains filtered or unexported fields
}

func (*NotFoundErrorUnionType) ToNotFoundError

func (e *NotFoundErrorUnionType) ToNotFoundError() (*NotFoundErrorResolver, bool)

ToNotFoundError resolves to the not found error resolver

type PaginationMetadataResolver

type PaginationMetadataResolver struct {
	// contains filtered or unexported fields
}

func NewPaginationMetadata

func NewPaginationMetadata(total int32) *PaginationMetadataResolver

func (*PaginationMetadataResolver) Total

func (r *PaginationMetadataResolver) Total() int32

type PluginsResolver

type PluginsResolver struct {
	// contains filtered or unexported fields
}

func (PluginsResolver) Commit

func (r PluginsResolver) Commit() bool

Commit returns the the status of the commit plugin.

func (PluginsResolver) Execute

func (r PluginsResolver) Execute() bool

Execute returns the the status of the execute plugin.

type Resolver

type Resolver struct {
	App erinaceus.Application
}

func (*Resolver) Bridge

func (r *Resolver) Bridge(ctx context.Context, args struct{ ID graphql.ID }) (*BridgePayloadResolver, error)

Bridge retrieves a bridges by name.

func (*Resolver) Bridges

func (r *Resolver) Bridges(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*BridgesPayloadResolver, error)

Bridges retrieves a paginated list of bridges.

func (*Resolver) CSAKeys

func (r *Resolver) CSAKeys(ctx context.Context) (*CSAKeysPayloadResolver, error)

func (*Resolver) Chain

func (r *Resolver) Chain(ctx context.Context, args struct{ ID graphql.ID }) (*ChainPayloadResolver, error)

Chain retrieves a chain by id.

func (*Resolver) Chains

func (r *Resolver) Chains(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*ChainsPayloadResolver, error)

Chains retrieves a paginated list of chains.

func (*Resolver) ConfigV2

func (r *Resolver) ConfigV2(ctx context.Context) (*ConfigV2PayloadResolver, error)

ConfigV2 retrieves the Chainlink node's configuration (V2 mode)

func (*Resolver) CreateAPIToken

func (r *Resolver) CreateAPIToken(ctx context.Context, args struct {
	Input struct{ Password string }
}) (*CreateAPITokenPayloadResolver, error)

func (*Resolver) CreateBridge

func (r *Resolver) CreateBridge(ctx context.Context, args struct{ Input createBridgeInput }) (*CreateBridgePayloadResolver, error)

CreateBridge creates a new bridge.

func (*Resolver) CreateCSAKey

func (r *Resolver) CreateCSAKey(ctx context.Context) (*CreateCSAKeyPayloadResolver, error)

func (*Resolver) CreateJob

func (r *Resolver) CreateJob(ctx context.Context, args struct {
	Input struct {
		TOML string
	}
}) (*CreateJobPayloadResolver, error)

func (*Resolver) CreateVRFKey

func (r *Resolver) CreateVRFKey(ctx context.Context) (*CreateVRFKeyPayloadResolver, error)

func (*Resolver) DeleteAPIToken

func (r *Resolver) DeleteAPIToken(ctx context.Context, args struct {
	Input struct{ Password string }
}) (*DeleteAPITokenPayloadResolver, error)

func (*Resolver) DeleteBridge

func (r *Resolver) DeleteBridge(ctx context.Context, args struct {
	ID graphql.ID
}) (*DeleteBridgePayloadResolver, error)

func (*Resolver) DeleteCSAKey

func (r *Resolver) DeleteCSAKey(ctx context.Context, args struct {
	ID graphql.ID
}) (*DeleteCSAKeyPayloadResolver, error)

func (*Resolver) DeleteJob

func (r *Resolver) DeleteJob(ctx context.Context, args struct {
	ID graphql.ID
}) (*DeleteJobPayloadResolver, error)

func (*Resolver) DeleteVRFKey

func (r *Resolver) DeleteVRFKey(ctx context.Context, args struct {
	ID graphql.ID
}) (*DeleteVRFKeyPayloadResolver, error)

func (*Resolver) DismissJobError

func (r *Resolver) DismissJobError(ctx context.Context, args struct {
	ID graphql.ID
}) (*DismissJobErrorPayloadResolver, error)

func (*Resolver) ETHKeys

func (r *Resolver) ETHKeys(ctx context.Context) (*ETHKeysPayloadResolver, error)

func (*Resolver) EthTransaction

func (r *Resolver) EthTransaction(ctx context.Context, args struct {
	Hash graphql.ID
}) (*EthTransactionPayloadResolver, error)

func (*Resolver) EthTransactions

func (r *Resolver) EthTransactions(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*EthTransactionsPayloadResolver, error)

func (*Resolver) EthTransactionsAttempts

func (r *Resolver) EthTransactionsAttempts(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*EthTransactionsAttemptsPayloadResolver, error)

func (*Resolver) Features

func (r *Resolver) Features(ctx context.Context) (*FeaturesPayloadResolver, error)

Features retrieves each featured enabled by boolean mapping

func (*Resolver) GlobalLogLevel

func (r *Resolver) GlobalLogLevel(ctx context.Context) (*GlobalLogLevelPayloadResolver, error)

func (*Resolver) Job

func (r *Resolver) Job(ctx context.Context, args struct{ ID graphql.ID }) (*JobPayloadResolver, error)

Job retrieves a job by id.

func (*Resolver) JobRun

func (r *Resolver) JobRun(ctx context.Context, args struct {
	ID graphql.ID
}) (*JobRunPayloadResolver, error)

func (*Resolver) JobRuns

func (r *Resolver) JobRuns(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*JobRunsPayloadResolver, error)

func (*Resolver) Jobs

func (r *Resolver) Jobs(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*JobsPayloadResolver, error)

Jobs fetches a paginated list of jobs

func (*Resolver) Node

func (r *Resolver) Node(ctx context.Context, args struct{ ID graphql.ID }) (*NodePayloadResolver, error)

Node retrieves a node by ID (Name)

func (*Resolver) Nodes

func (r *Resolver) Nodes(ctx context.Context, args struct {
	Offset *int32
	Limit  *int32
}) (*NodesPayloadResolver, error)

Nodes retrieves a paginated list of nodes.

func (*Resolver) RunJob

func (r *Resolver) RunJob(ctx context.Context, args struct {
	ID graphql.ID
}) (*RunJobPayloadResolver, error)

func (*Resolver) SQLLogging

func (*Resolver) SetGlobalLogLevel

func (r *Resolver) SetGlobalLogLevel(ctx context.Context, args struct {
	Level LogLevel
}) (*SetGlobalLogLevelPayloadResolver, error)

func (*Resolver) SetSQLLogging

func (r *Resolver) SetSQLLogging(ctx context.Context, args struct {
	Input struct{ Enabled bool }
}) (*SetSQLLoggingPayloadResolver, error)

func (*Resolver) UpdateBridge

func (r *Resolver) UpdateBridge(ctx context.Context, args struct {
	ID    graphql.ID
	Input updateBridgeInput
}) (*UpdateBridgePayloadResolver, error)

func (*Resolver) UpdateUserPassword

func (r *Resolver) UpdateUserPassword(ctx context.Context, args struct {
	Input UpdatePasswordInput
}) (*UpdatePasswordPayloadResolver, error)

func (*Resolver) VRFKey

func (r *Resolver) VRFKey(ctx context.Context, args struct {
	ID graphql.ID
}) (*VRFKeyPayloadResolver, error)

VRFKey fetches the VRF key with the given ID.

func (*Resolver) VRFKeys

func (r *Resolver) VRFKeys(ctx context.Context) (*VRFKeysPayloadResolver, error)

VRFKeys fetches all VRF keys.

type RoleNotPermittedErr

type RoleNotPermittedErr struct {
	Role sessions.UserRole
}

func (RoleNotPermittedErr) Error

func (e RoleNotPermittedErr) Error() string

type RunJobCannotRunErrorResolver

type RunJobCannotRunErrorResolver struct {
	// contains filtered or unexported fields
}

func NewRunJobCannotRunError

func NewRunJobCannotRunError(err error) *RunJobCannotRunErrorResolver

func (*RunJobCannotRunErrorResolver) Code

func (*RunJobCannotRunErrorResolver) Message

func (r *RunJobCannotRunErrorResolver) Message() string

type RunJobPayloadResolver

type RunJobPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewRunJobPayload

func NewRunJobPayload(run *pipeline.Run, app erinaceus.Application, err error) *RunJobPayloadResolver

func (*RunJobPayloadResolver) ToRunJobCannotRunError

func (r *RunJobPayloadResolver) ToRunJobCannotRunError() (*RunJobCannotRunErrorResolver, bool)

func (*RunJobPayloadResolver) ToRunJobSuccess

func (r *RunJobPayloadResolver) ToRunJobSuccess() (*RunJobSuccessResolver, bool)

type RunJobSuccessResolver

type RunJobSuccessResolver struct {
	// contains filtered or unexported fields
}

func (*RunJobSuccessResolver) JobRun

type SQLLoggingResolver

type SQLLoggingResolver struct {
	// contains filtered or unexported fields
}

func NewSQLLogging

func NewSQLLogging(enabled bool) *SQLLoggingResolver

func (*SQLLoggingResolver) Enabled

func (r *SQLLoggingResolver) Enabled() bool

type SetGlobalLogLevelPayloadResolver

type SetGlobalLogLevelPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewSetGlobalLogLevelPayload

func NewSetGlobalLogLevelPayload(lvl LogLevel, inputErrs map[string]string) *SetGlobalLogLevelPayloadResolver

func (*SetGlobalLogLevelPayloadResolver) ToInputErrors

func (*SetGlobalLogLevelPayloadResolver) ToSetGlobalLogLevelSuccess

func (r *SetGlobalLogLevelPayloadResolver) ToSetGlobalLogLevelSuccess() (*SetGlobalLogLevelSuccessResolver, bool)

type SetGlobalLogLevelSuccessResolver

type SetGlobalLogLevelSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewSetGlobalLogLevelSuccess

func NewSetGlobalLogLevelSuccess(lvl LogLevel) *SetGlobalLogLevelSuccessResolver

func (*SetGlobalLogLevelSuccessResolver) GlobalLogLevel

type SetSQLLoggingPayloadResolver

type SetSQLLoggingPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewSetSQLLoggingPayload

func NewSetSQLLoggingPayload(enabled bool) *SetSQLLoggingPayloadResolver

func (*SetSQLLoggingPayloadResolver) ToSetSQLLoggingSuccess

func (r *SetSQLLoggingPayloadResolver) ToSetSQLLoggingSuccess() (*SetSQLLoggingSuccessResolver, bool)

type SetSQLLoggingSuccessResolver

type SetSQLLoggingSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewSetSQLLoggingSuccess

func NewSetSQLLoggingSuccess(enabled bool) *SetSQLLoggingSuccessResolver

func (*SetSQLLoggingSuccessResolver) SQLLogging

type SpecResolver

type SpecResolver struct {
	// contains filtered or unexported fields
}

func NewSpec

func NewSpec(j job.Job) *SpecResolver

func (*SpecResolver) ToBlockhashStoreSpec

func (r *SpecResolver) ToBlockhashStoreSpec() (*BlockhashStoreSpecResolver, bool)

ToBlockhashStoreSpec returns the BlockhashStoreSpec from the SpecResolver if the job is a BlockhashStore job.

func (*SpecResolver) ToGatewaySpec

func (r *SpecResolver) ToGatewaySpec() (*GatewaySpecResolver, bool)

func (*SpecResolver) ToVRFSpec

func (r *SpecResolver) ToVRFSpec() (*VRFSpecResolver, bool)

func (*SpecResolver) ToWebhookSpec

func (r *SpecResolver) ToWebhookSpec() (*WebhookSpecResolver, bool)

type TaskRunResolver

type TaskRunResolver struct {
	// contains filtered or unexported fields
}

func NewTaskRun

func NewTaskRun(tr pipeline.TaskRun) *TaskRunResolver

func NewTaskRuns

func NewTaskRuns(runs []pipeline.TaskRun) []*TaskRunResolver

func (*TaskRunResolver) CreatedAt

func (r *TaskRunResolver) CreatedAt() graphql.Time

func (*TaskRunResolver) DotID

func (r *TaskRunResolver) DotID() string

func (*TaskRunResolver) Error

func (r *TaskRunResolver) Error() *string

func (*TaskRunResolver) FinishedAt

func (r *TaskRunResolver) FinishedAt() *graphql.Time

func (*TaskRunResolver) ID

func (r *TaskRunResolver) ID() graphql.ID

func (*TaskRunResolver) Output

func (r *TaskRunResolver) Output() string

func (*TaskRunResolver) Type

func (r *TaskRunResolver) Type() string

type UpdateBridgePayloadResolver

type UpdateBridgePayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewUpdateBridgePayload

func NewUpdateBridgePayload(bridge *bridges.BridgeType, err error) *UpdateBridgePayloadResolver

func (*UpdateBridgePayloadResolver) ToUpdateBridgeSuccess

func (r *UpdateBridgePayloadResolver) ToUpdateBridgeSuccess() (*UpdateBridgeSuccessResolver, bool)

type UpdateBridgeSuccessResolver

type UpdateBridgeSuccessResolver struct {
	// contains filtered or unexported fields
}

UpdateBridgePayloadResolver resolves

func NewUpdateBridgeSuccess

func NewUpdateBridgeSuccess(bridge bridges.BridgeType) *UpdateBridgeSuccessResolver

func (*UpdateBridgeSuccessResolver) Bridge

Bridge resolves the success payload's bridge.

type UpdatePasswordInput

type UpdatePasswordInput struct {
	OldPassword string
	NewPassword string
}

type UpdatePasswordPayloadResolver

type UpdatePasswordPayloadResolver struct {
	// contains filtered or unexported fields
}

UpdatePasswordPayloadResolver resolves the payload type

func NewUpdatePasswordPayload

func NewUpdatePasswordPayload(user *sessions.User, inputErrs map[string]string) *UpdatePasswordPayloadResolver

func (*UpdatePasswordPayloadResolver) ToInputErrors

func (*UpdatePasswordPayloadResolver) ToUpdatePasswordSuccess

func (r *UpdatePasswordPayloadResolver) ToUpdatePasswordSuccess() (*UpdatePasswordSuccessResolver, bool)

type UpdatePasswordSuccessResolver

type UpdatePasswordSuccessResolver struct {
	// contains filtered or unexported fields
}

func NewUpdatePasswordSuccess

func NewUpdatePasswordSuccess(user *sessions.User) *UpdatePasswordSuccessResolver

func (*UpdatePasswordSuccessResolver) User

type UserResolver

type UserResolver struct {
	// contains filtered or unexported fields
}

UserResolver resolves the User type

func NewUser

func NewUser(user *sessions.User) *UserResolver

func (*UserResolver) CreatedAt

func (r *UserResolver) CreatedAt() graphql.Time

CreatedAt resolves the user's creation date

func (*UserResolver) Email

func (r *UserResolver) Email() string

Email resolves the user's email

type VRFKeyPayloadResolver

type VRFKeyPayloadResolver struct {
	NotFoundErrorUnionType
	// contains filtered or unexported fields
}

func NewVRFKeyPayloadResolver

func NewVRFKeyPayloadResolver(key vrfkey.KeyV2, err error) *VRFKeyPayloadResolver

func (*VRFKeyPayloadResolver) ToVRFKeySuccess

func (r *VRFKeyPayloadResolver) ToVRFKeySuccess() (*VRFKeySuccessResolver, bool)

type VRFKeyResolver

type VRFKeyResolver struct {
	// contains filtered or unexported fields
}

func NewVRFKeyResolver

func NewVRFKeyResolver(key vrfkey.KeyV2) VRFKeyResolver

func (VRFKeyResolver) Compressed

func (k VRFKeyResolver) Compressed() string

Compressed returns the compressed version of the public key.

func (VRFKeyResolver) Hash

func (k VRFKeyResolver) Hash() string

Hash returns the hash of the VRF public key.

func (VRFKeyResolver) ID

func (k VRFKeyResolver) ID() graphql.ID

ID returns the ID of the VRF key, which is the public key.

func (VRFKeyResolver) Uncompressed

func (k VRFKeyResolver) Uncompressed() string

type VRFKeySuccessResolver

type VRFKeySuccessResolver struct {
	// contains filtered or unexported fields
}

func NewVRFKeySuccessResolver

func NewVRFKeySuccessResolver(key vrfkey.KeyV2) *VRFKeySuccessResolver

func (*VRFKeySuccessResolver) Key

type VRFKeysPayloadResolver

type VRFKeysPayloadResolver struct {
	// contains filtered or unexported fields
}

func NewVRFKeysPayloadResolver

func NewVRFKeysPayloadResolver(keys []vrfkey.KeyV2) *VRFKeysPayloadResolver

func (*VRFKeysPayloadResolver) Results

func (r *VRFKeysPayloadResolver) Results() []VRFKeyResolver

type VRFSpecResolver

type VRFSpecResolver struct {
	// contains filtered or unexported fields
}

func (*VRFSpecResolver) BackoffInitialDelay

func (r *VRFSpecResolver) BackoffInitialDelay() string

BackoffInitialDelay resolves the spec's backoff initial delay.

func (*VRFSpecResolver) BackoffMaxDelay

func (r *VRFSpecResolver) BackoffMaxDelay() string

BackoffMaxDelay resolves the spec's backoff max delay.

func (*VRFSpecResolver) BatchCoordinatorAddress

func (r *VRFSpecResolver) BatchCoordinatorAddress() *string

BatchCoordinatorAddress resolves the spec's batch coordinator address.

func (*VRFSpecResolver) BatchFulfillmentEnabled

func (r *VRFSpecResolver) BatchFulfillmentEnabled() bool

BatchFulfillmentEnabled resolves the spec's batch fulfillment enabled flag.

func (*VRFSpecResolver) BatchFulfillmentGasMultiplier

func (r *VRFSpecResolver) BatchFulfillmentGasMultiplier() float64

BatchFulfillmentGasMultiplier resolves the spec's batch fulfillment gas multiplier.

func (*VRFSpecResolver) ChunkSize

func (r *VRFSpecResolver) ChunkSize() int32

ChunkSize resolves the spec's chunk size.

func (*VRFSpecResolver) CoordinatorAddress

func (r *VRFSpecResolver) CoordinatorAddress() string

CoordinatorAddress resolves the spec's coordinator address.

func (*VRFSpecResolver) CreatedAt

func (r *VRFSpecResolver) CreatedAt() graphql.Time

CreatedAt resolves the spec's created at timestamp.

func (*VRFSpecResolver) CustomRevertsPipelineEnabled

func (r *VRFSpecResolver) CustomRevertsPipelineEnabled() *bool

CustomRevertsPipelineEnabled resolves the spec's custom reverts pipeline enabled flag.

func (*VRFSpecResolver) EVMChainID

func (r *VRFSpecResolver) EVMChainID() *string

EVMChainID resolves the spec's evm chain id.

func (*VRFSpecResolver) FromAddresses

func (r *VRFSpecResolver) FromAddresses() *[]string

FromAddresses resolves the spec's from addresses.

func (*VRFSpecResolver) GasLanePrice

func (r *VRFSpecResolver) GasLanePrice() *string

GasLanePrice resolves the spec's gas lane price.

func (*VRFSpecResolver) MinIncomingConfirmations

func (r *VRFSpecResolver) MinIncomingConfirmations() int32

MinIncomingConfirmations resolves the spec's min incoming confirmations.

func (*VRFSpecResolver) PollPeriod

func (r *VRFSpecResolver) PollPeriod() string

PollPeriod resolves the spec's poll period.

func (*VRFSpecResolver) PublicKey

func (r *VRFSpecResolver) PublicKey() string

PublicKey resolves the spec's public key.

func (*VRFSpecResolver) RequestTimeout

func (r *VRFSpecResolver) RequestTimeout() string

RequestTimeout resolves the spec's request timeout.

func (*VRFSpecResolver) RequestedConfsDelay

func (r *VRFSpecResolver) RequestedConfsDelay() int32

RequestedConfsDelay resolves the spec's requested conf delay.

func (*VRFSpecResolver) VRFOwnerAddress

func (r *VRFSpecResolver) VRFOwnerAddress() *string

VRFOwnerAddress resolves the spec's vrf owner address.

type WebhookSpecResolver

type WebhookSpecResolver struct {
	// contains filtered or unexported fields
}

func (*WebhookSpecResolver) CreatedAt

func (r *WebhookSpecResolver) CreatedAt() graphql.Time

CreatedAt resolves the spec's created at timestamp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL