Documentation ¶
Index ¶
- func AccountFromContext(ctx context.Context) (*models.Account, bool)
- func AppletFromContext(ctx context.Context) (*models.Applet, bool)
- func ChainHeightFromContext(ctx context.Context) (*models.ChainHeight, bool)
- func ChainTxFromContext(ctx context.Context) (*models.ChainTx, bool)
- func ContractLogFromContext(ctx context.Context) (*models.ContractLog, bool)
- func CronJobFromContext(ctx context.Context) (*models.CronJob, bool)
- func EventIDFromContext(ctx context.Context) (string, bool)
- func FileSystemOpFromContext(ctx context.Context) (filesystem.FileSystemOp, bool)
- func InstanceFromContext(ctx context.Context) (*models.Instance, bool)
- func LoggerFromContext(ctx context.Context) (log.Logger, bool)
- func MaxWasmConsumeFuelFromContext(ctx context.Context) (uint64, bool)
- func MgrDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
- func MonitorDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
- func MqttBrokerFromContext(ctx context.Context) (*mqtt.Broker, bool)
- func MustAccountFromContext(ctx context.Context) *models.Account
- func MustAppletFromContext(ctx context.Context) *models.Applet
- func MustChainHeightFromContext(ctx context.Context) *models.ChainHeight
- func MustChainTxFromContext(ctx context.Context) *models.ChainTx
- func MustContractLogFromContext(ctx context.Context) *models.ContractLog
- func MustCronJobFromContext(ctx context.Context) *models.CronJob
- func MustEventIDFromContext(ctx context.Context) string
- func MustFileSystemOpFromContext(ctx context.Context) filesystem.FileSystemOp
- func MustInstanceFromContext(ctx context.Context) *models.Instance
- func MustLoggerFromContext(ctx context.Context) log.Logger
- func MustMaxWasmConsumeFuelFromContext(ctx context.Context) uint64
- func MustMgrDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
- func MustMonitorDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
- func MustMqttBrokerFromContext(ctx context.Context) *mqtt.Broker
- func MustOperatorFromContext(ctx context.Context) *models.Operator
- func MustOperatorPoolFromContext(ctx context.Context) optypes.Pool
- func MustOperatorsFromContext(ctx context.Context) []models.Operator
- func MustProjectFromContext(ctx context.Context) *models.Project
- func MustProjectOperatorFromContext(ctx context.Context) *models.ProjectOperator
- func MustProxyClientFromContext(ctx context.Context) *client.Client
- func MustPublisherFromContext(ctx context.Context) *models.Publisher
- func MustRedisEndpointFromContext(ctx context.Context) *redis.Redis
- func MustResourceFromContext(ctx context.Context) *models.Resource
- func MustResourceOwnershipFromContext(ctx context.Context) *models.ResourceOwnership
- func MustStrategyFromContext(ctx context.Context) *models.Strategy
- func MustTrafficLimitFromContext(ctx context.Context) *models.TrafficLimit
- func MustWasmApiServerFromContext(ctx context.Context) wasmapi.Server
- func OperatorFromContext(ctx context.Context) (*models.Operator, bool)
- func OperatorPoolFromContext(ctx context.Context) (optypes.Pool, bool)
- func OperatorsFromContext(ctx context.Context) ([]models.Operator, bool)
- func ProjectFromContext(ctx context.Context) (*models.Project, bool)
- func ProjectOperatorFromContext(ctx context.Context) (*models.ProjectOperator, bool)
- func ProxyClientFromContext(ctx context.Context) (*client.Client, bool)
- func PublisherFromContext(ctx context.Context) (*models.Publisher, bool)
- func RedisEndpointFromContext(ctx context.Context) (*redis.Redis, bool)
- func ResourceFromContext(ctx context.Context) (*models.Resource, bool)
- func ResourceOwnershipFromContext(ctx context.Context) (*models.ResourceOwnership, bool)
- func StrategyFromContext(ctx context.Context) (*models.Strategy, bool)
- func TrafficLimitFromContext(ctx context.Context) (*models.TrafficLimit, bool)
- func WasmApiServerFromContext(ctx context.Context) (wasmapi.Server, bool)
- func WithAccount(ctx context.Context, v *models.Account) context.Context
- func WithAccountContext(v *models.Account) contextx.WithContext
- func WithApplet(ctx context.Context, a *models.Applet) context.Context
- func WithAppletContext(a *models.Applet) contextx.WithContext
- func WithChainConfig(ctx context.Context, v *ChainConfig) context.Context
- func WithChainConfigContext(v *ChainConfig) contextx.WithContext
- func WithChainHeight(ctx context.Context, v *models.ChainHeight) context.Context
- func WithChainHeightContext(v *models.ChainHeight) contextx.WithContext
- func WithChainTx(ctx context.Context, v *models.ChainTx) context.Context
- func WithChainTxContext(v *models.ChainTx) contextx.WithContext
- func WithContractLog(ctx context.Context, v *models.ContractLog) context.Context
- func WithContractLogContext(v *models.ContractLog) contextx.WithContext
- func WithCronJob(ctx context.Context, v *models.CronJob) context.Context
- func WithCronJobContext(v *models.CronJob) contextx.WithContext
- func WithETHClientConfig(ctx context.Context, v *ETHClientConfig) context.Context
- func WithETHClientConfigContext(v *ETHClientConfig) contextx.WithContext
- func WithEthAddressWhiteList(ctx context.Context, v *EthAddressWhiteList) context.Context
- func WithEthAddressWhiteListContext(v *EthAddressWhiteList) contextx.WithContext
- func WithEventID(ctx context.Context, v string) context.Context
- func WithEventIDContext(v string) contextx.WithContext
- func WithFileSystemOp(ctx context.Context, v filesystem.FileSystemOp) context.Context
- func WithFileSystemOpContext(v filesystem.FileSystemOp) contextx.WithContext
- func WithInstance(ctx context.Context, i *models.Instance) context.Context
- func WithInstanceContext(i *models.Instance) contextx.WithContext
- func WithLogger(ctx context.Context, v log.Logger) context.Context
- func WithLoggerContext(v log.Logger) contextx.WithContext
- func WithMaxWasmConsumeFuel(ctx context.Context, v uint64) context.Context
- func WithMaxWasmConsumeFuelContext(v uint64) contextx.WithContext
- func WithMetricsCenterConfig(ctx context.Context, v *MetricsCenterConfig) context.Context
- func WithMetricsCenterConfigContext(v *MetricsCenterConfig) contextx.WithContext
- func WithMgrDBExecutor(ctx context.Context, v sqlx.DBExecutor) context.Context
- func WithMgrDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
- func WithMonitorDBExecutor(ctx context.Context, v sqlx.DBExecutor) context.Context
- func WithMonitorDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
- func WithMqttBroker(ctx context.Context, v *mqtt.Broker) context.Context
- func WithMqttBrokerContext(v *mqtt.Broker) contextx.WithContext
- func WithOperator(ctx context.Context, v *models.Operator) context.Context
- func WithOperatorContext(v *models.Operator) contextx.WithContext
- func WithOperatorPool(ctx context.Context, v optypes.Pool) context.Context
- func WithOperatorPoolContext(v optypes.Pool) contextx.WithContext
- func WithOperators(ctx context.Context, v []models.Operator) context.Context
- func WithOperatorsContext(v []models.Operator) contextx.WithContext
- func WithProject(ctx context.Context, p *models.Project) context.Context
- func WithProjectContext(p *models.Project) contextx.WithContext
- func WithProjectOperator(ctx context.Context, v *models.ProjectOperator) context.Context
- func WithProjectOperatorContext(v *models.ProjectOperator) contextx.WithContext
- func WithProxyClient(ctx context.Context, v *client.Client) context.Context
- func WithProxyClientContext(v *client.Client) contextx.WithContext
- func WithPublisher(ctx context.Context, v *models.Publisher) context.Context
- func WithPublisherContext(v *models.Publisher) contextx.WithContext
- func WithRedis(ctx context.Context, v *redis.Redis) context.Context
- func WithRedisEndpointContext(v *redis.Redis) contextx.WithContext
- func WithResource(ctx context.Context, r *models.Resource) context.Context
- func WithResourceContext(r *models.Resource) contextx.WithContext
- func WithResourceOwnership(ctx context.Context, o *models.ResourceOwnership) context.Context
- func WithResourceOwnershipContext(o *models.ResourceOwnership) contextx.WithContext
- func WithRobotNotifierConfig(ctx context.Context, v *RobotNotifierConfig) context.Context
- func WithRobotNotifierConfigContext(v *RobotNotifierConfig) contextx.WithContext
- func WithStrategy(ctx context.Context, v *models.Strategy) context.Context
- func WithStrategyContext(v *models.Strategy) contextx.WithContext
- func WithStrategyResults(ctx context.Context, v []*StrategyResult) context.Context
- func WithStrategyResultsContext(v []*StrategyResult) contextx.WithContext
- func WithTrafficLimit(ctx context.Context, r *models.TrafficLimit) context.Context
- func WithTrafficLimitContext(r *models.TrafficLimit) contextx.WithContext
- func WithUploadConfig(ctx context.Context, v *UploadConfig) context.Context
- func WithUploadConfigContext(v *UploadConfig) contextx.WithContext
- func WithWasmApiServer(ctx context.Context, v wasmapi.Server) context.Context
- func WithWasmApiServerContext(v wasmapi.Server) contextx.WithContext
- func WithWasmDBConfig(ctx context.Context, v *WasmDBConfig) context.Context
- func WithWasmDBConfigContext(v *WasmDBConfig) contextx.WithContext
- type Chain
- type ChainConfig
- type CtxAccount
- type CtxApplet
- type CtxChainConfig
- type CtxChainHeight
- type CtxChainTx
- type CtxContractLog
- type CtxCronJob
- type CtxEthAddressWhiteList
- type CtxEthClient
- type CtxEventID
- type CtxFileSystemOp
- type CtxInstance
- type CtxLogger
- type CtxMaxWasmConsumeFuel
- type CtxMetricsCenterConfig
- type CtxMgrDBExecutor
- type CtxMonitorDBExecutor
- type CtxMqttBroker
- type CtxOperator
- type CtxOperatorPool
- type CtxOperators
- type CtxProject
- type CtxProjectOperator
- type CtxProxyClient
- type CtxPublisher
- type CtxRedisEndpoint
- type CtxResource
- type CtxResourceOwnership
- type CtxRobotNotifierConfig
- type CtxStrategy
- type CtxStrategyResults
- type CtxTrafficLimit
- type CtxUploadConfig
- type CtxWasmApiServer
- type CtxWasmDBConfig
- type ETHClientConfig
- type EthAddress
- type EthAddressWhiteList
- type FileSystem
- type Initializer
- type InitializerWith
- type MetricsCenterConfig
- type Risc0Config
- type RobotNotifierConfig
- type SFID
- type SFIDs
- type StrategyResult
- type Timestamp
- type UploadConfig
- type ValidatedInitializer
- type ValidatedInitializerWith
- type WasmDBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountFromContext ¶ added in v1.1.0
func ChainHeightFromContext ¶ added in v1.1.0
func ChainHeightFromContext(ctx context.Context) (*models.ChainHeight, bool)
func ChainTxFromContext ¶ added in v1.1.0
func ContractLogFromContext ¶ added in v1.1.0
func ContractLogFromContext(ctx context.Context) (*models.ContractLog, bool)
func CronJobFromContext ¶ added in v1.1.0
func EventIDFromContext ¶ added in v1.2.2
func FileSystemOpFromContext ¶ added in v1.1.0
func FileSystemOpFromContext(ctx context.Context) (filesystem.FileSystemOp, bool)
func MgrDBExecutorFromContext ¶ added in v1.0.0
func MgrDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
func MonitorDBExecutorFromContext ¶
func MonitorDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
func MustAccountFromContext ¶ added in v1.1.0
func MustChainHeightFromContext ¶ added in v1.1.0
func MustChainHeightFromContext(ctx context.Context) *models.ChainHeight
func MustChainTxFromContext ¶ added in v1.1.0
func MustContractLogFromContext ¶ added in v1.1.0
func MustContractLogFromContext(ctx context.Context) *models.ContractLog
func MustCronJobFromContext ¶ added in v1.1.0
func MustEventIDFromContext ¶ added in v1.2.2
func MustFileSystemOpFromContext ¶ added in v1.1.0
func MustFileSystemOpFromContext(ctx context.Context) filesystem.FileSystemOp
func MustMgrDBExecutorFromContext ¶ added in v1.0.0
func MustMgrDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
func MustMonitorDBExecutorFromContext ¶
func MustMonitorDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
func MustOperatorFromContext ¶ added in v1.1.0
func MustOperatorPoolFromContext ¶ added in v1.5.9
func MustOperatorsFromContext ¶ added in v1.4.6
func MustProjectOperatorFromContext ¶ added in v1.4.6
func MustProjectOperatorFromContext(ctx context.Context) *models.ProjectOperator
func MustProxyClientFromContext ¶ added in v1.1.0
func MustPublisherFromContext ¶ added in v1.1.0
func MustRedisEndpointFromContext ¶ added in v1.0.0
func MustResourceFromContext ¶ added in v1.0.0
func MustResourceOwnershipFromContext ¶ added in v1.1.0
func MustResourceOwnershipFromContext(ctx context.Context) *models.ResourceOwnership
func MustStrategyFromContext ¶ added in v1.1.0
func MustTrafficLimitFromContext ¶ added in v1.2.5
func MustTrafficLimitFromContext(ctx context.Context) *models.TrafficLimit
func MustWasmApiServerFromContext ¶ added in v1.4.2
func OperatorFromContext ¶ added in v1.1.0
func OperatorPoolFromContext ¶ added in v1.5.9
func OperatorsFromContext ¶ added in v1.4.6
func ProjectOperatorFromContext ¶ added in v1.4.6
func ProjectOperatorFromContext(ctx context.Context) (*models.ProjectOperator, bool)
func ProxyClientFromContext ¶ added in v1.1.0
func PublisherFromContext ¶ added in v1.1.0
func RedisEndpointFromContext ¶ added in v1.0.0
func ResourceFromContext ¶ added in v1.0.0
func ResourceOwnershipFromContext ¶ added in v1.1.0
func ResourceOwnershipFromContext(ctx context.Context) (*models.ResourceOwnership, bool)
func StrategyFromContext ¶ added in v1.1.0
func TrafficLimitFromContext ¶ added in v1.2.5
func TrafficLimitFromContext(ctx context.Context) (*models.TrafficLimit, bool)
func WasmApiServerFromContext ¶ added in v1.4.2
func WithAccount ¶ added in v1.1.0
func WithAccountContext ¶ added in v1.1.0
func WithAccountContext(v *models.Account) contextx.WithContext
func WithAppletContext ¶
func WithAppletContext(a *models.Applet) contextx.WithContext
func WithChainConfig ¶ added in v1.5.3
func WithChainConfig(ctx context.Context, v *ChainConfig) context.Context
func WithChainConfigContext ¶ added in v1.5.3
func WithChainConfigContext(v *ChainConfig) contextx.WithContext
func WithChainHeight ¶ added in v1.1.0
func WithChainHeightContext ¶ added in v1.1.0
func WithChainHeightContext(v *models.ChainHeight) contextx.WithContext
func WithChainTx ¶ added in v1.1.0
func WithChainTxContext ¶ added in v1.1.0
func WithChainTxContext(v *models.ChainTx) contextx.WithContext
func WithContractLog ¶ added in v1.1.0
func WithContractLogContext ¶ added in v1.1.0
func WithContractLogContext(v *models.ContractLog) contextx.WithContext
func WithCronJob ¶ added in v1.1.0
func WithCronJobContext ¶ added in v1.1.0
func WithCronJobContext(v *models.CronJob) contextx.WithContext
func WithETHClientConfig ¶
func WithETHClientConfig(ctx context.Context, v *ETHClientConfig) context.Context
func WithETHClientConfigContext ¶
func WithETHClientConfigContext(v *ETHClientConfig) contextx.WithContext
func WithEthAddressWhiteList ¶ added in v1.4.6
func WithEthAddressWhiteList(ctx context.Context, v *EthAddressWhiteList) context.Context
func WithEthAddressWhiteListContext ¶ added in v1.4.6
func WithEthAddressWhiteListContext(v *EthAddressWhiteList) contextx.WithContext
func WithEventIDContext ¶ added in v1.2.2
func WithEventIDContext(v string) contextx.WithContext
func WithFileSystemOp ¶ added in v1.1.0
func WithFileSystemOp(ctx context.Context, v filesystem.FileSystemOp) context.Context
func WithFileSystemOpContext ¶ added in v1.1.0
func WithFileSystemOpContext(v filesystem.FileSystemOp) contextx.WithContext
func WithInstanceContext ¶
func WithInstanceContext(i *models.Instance) contextx.WithContext
func WithLoggerContext ¶
func WithLoggerContext(v log.Logger) contextx.WithContext
func WithMaxWasmConsumeFuel ¶
func WithMaxWasmConsumeFuelContext ¶
func WithMaxWasmConsumeFuelContext(v uint64) contextx.WithContext
func WithMetricsCenterConfig ¶ added in v1.2.2
func WithMetricsCenterConfig(ctx context.Context, v *MetricsCenterConfig) context.Context
func WithMetricsCenterConfigContext ¶ added in v1.2.2
func WithMetricsCenterConfigContext(v *MetricsCenterConfig) contextx.WithContext
func WithMgrDBExecutor ¶ added in v1.0.0
func WithMgrDBExecutorContext ¶ added in v1.0.0
func WithMgrDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
func WithMonitorDBExecutor ¶
func WithMonitorDBExecutorContext ¶
func WithMonitorDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
func WithMqttBrokerContext ¶
func WithMqttBrokerContext(v *mqtt.Broker) contextx.WithContext
func WithOperator ¶ added in v1.1.0
func WithOperatorContext ¶ added in v1.1.0
func WithOperatorContext(v *models.Operator) contextx.WithContext
func WithOperatorPool ¶ added in v1.5.9
func WithOperatorPoolContext ¶ added in v1.5.9
func WithOperatorPoolContext(v optypes.Pool) contextx.WithContext
func WithOperators ¶ added in v1.4.6
func WithOperatorsContext ¶ added in v1.4.6
func WithOperatorsContext(v []models.Operator) contextx.WithContext
func WithProjectContext ¶
func WithProjectContext(p *models.Project) contextx.WithContext
func WithProjectOperator ¶ added in v1.4.6
func WithProjectOperatorContext ¶ added in v1.4.6
func WithProjectOperatorContext(v *models.ProjectOperator) contextx.WithContext
func WithProxyClient ¶ added in v1.1.0
func WithProxyClientContext ¶ added in v1.1.0
func WithProxyClientContext(v *client.Client) contextx.WithContext
func WithPublisher ¶ added in v1.1.0
func WithPublisherContext ¶ added in v1.1.0
func WithPublisherContext(v *models.Publisher) contextx.WithContext
func WithRedisEndpointContext ¶ added in v1.0.0
func WithRedisEndpointContext(v *redis.Redis) contextx.WithContext
func WithResource ¶ added in v1.0.0
func WithResourceContext ¶ added in v1.0.0
func WithResourceContext(r *models.Resource) contextx.WithContext
func WithResourceOwnership ¶ added in v1.1.0
func WithResourceOwnershipContext ¶ added in v1.1.0
func WithResourceOwnershipContext(o *models.ResourceOwnership) contextx.WithContext
func WithRobotNotifierConfig ¶ added in v1.2.3
func WithRobotNotifierConfig(ctx context.Context, v *RobotNotifierConfig) context.Context
func WithRobotNotifierConfigContext ¶ added in v1.2.3
func WithRobotNotifierConfigContext(v *RobotNotifierConfig) contextx.WithContext
func WithStrategy ¶ added in v1.1.0
func WithStrategyContext ¶ added in v1.1.0
func WithStrategyContext(v *models.Strategy) contextx.WithContext
func WithStrategyResults ¶ added in v1.1.0
func WithStrategyResults(ctx context.Context, v []*StrategyResult) context.Context
func WithStrategyResultsContext ¶ added in v1.1.0
func WithStrategyResultsContext(v []*StrategyResult) contextx.WithContext
func WithTrafficLimit ¶ added in v1.2.5
func WithTrafficLimitContext ¶ added in v1.2.5
func WithTrafficLimitContext(r *models.TrafficLimit) contextx.WithContext
func WithUploadConfig ¶
func WithUploadConfig(ctx context.Context, v *UploadConfig) context.Context
func WithUploadConfigContext ¶
func WithUploadConfigContext(v *UploadConfig) contextx.WithContext
func WithWasmApiServer ¶ added in v1.4.2
func WithWasmApiServerContext ¶ added in v1.4.2
func WithWasmApiServerContext(v wasmapi.Server) contextx.WithContext
func WithWasmDBConfig ¶ added in v1.2.2
func WithWasmDBConfig(ctx context.Context, v *WasmDBConfig) context.Context
func WithWasmDBConfigContext ¶ added in v1.2.2
func WithWasmDBConfigContext(v *WasmDBConfig) contextx.WithContext
Types ¶
type Chain ¶ added in v1.5.3
type Chain struct { ChainID uint64 `json:"chainID,omitempty"` Name enums.ChainName `json:"name"` Endpoint string `json:"endpoint"` AABundlerEndpoint string `json:"aaBundlerEndpoint"` AAPaymasterEndpoint string `json:"aaPaymasterEndpoint"` AAEntryPointContractAddress string `json:"aaEntryPointContractAddress"` AAAccountFactoryContractAddress string `json:"aaAccountFactoryContractAddress"` }
func (*Chain) IsAASupported ¶ added in v1.5.9
type ChainConfig ¶ added in v1.5.3
type ChainConfig struct { Configs string `env:"" json:"-"` Chains map[enums.ChainName]*Chain `env:"-" json:"-"` ChainIDs map[uint64]*Chain `env:"-" json:"-"` AAUserOpEndpoint string `env:"" json:"-"` }
func ChainConfigFromContext ¶ added in v1.5.3
func ChainConfigFromContext(ctx context.Context) (*ChainConfig, bool)
func MustChainConfigFromContext ¶ added in v1.5.3
func MustChainConfigFromContext(ctx context.Context) *ChainConfig
func (*ChainConfig) Init ¶ added in v1.5.3
func (c *ChainConfig) Init()
func (*ChainConfig) LivenessCheck ¶ added in v1.5.6
func (cc *ChainConfig) LivenessCheck() map[string]string
type CtxChainConfig ¶ added in v1.5.3
type CtxChainConfig struct{}
CtxChainConfig type *ChainConfig global chain endpoints
type CtxChainHeight ¶ added in v1.4.6
type CtxChainHeight struct{}
CtxChainHeight type *models.ChainHeight
type CtxContractLog ¶ added in v1.4.6
type CtxContractLog struct{}
CtxContractLog type *models.ContractLog
type CtxEthAddressWhiteList ¶ added in v1.4.6
type CtxEthAddressWhiteList struct{}
CtxWhiteList type *EthAddressWhiteList global eth address white list
type CtxEthClient ¶
type CtxEthClient struct{}
CtxEthClient type *ETHClientConfig global eth chain endpoints
type CtxFileSystemOp ¶ added in v1.1.0
type CtxFileSystemOp struct{}
CtxFileSystemOp type filesystem.FileSystemOp describe resource storing operation type
type CtxMaxWasmConsumeFuel ¶
type CtxMaxWasmConsumeFuel struct{}
CtxMaxWasmConsumeFuel global wasm consume fuel per invoking
type CtxMetricsCenterConfig ¶ added in v1.2.2
type CtxMetricsCenterConfig struct{}
CtxMetricsCenterConfig *MetricsCenterConfig for metrics
type CtxMgrDBExecutor ¶ added in v1.0.0
type CtxMgrDBExecutor struct{}
CtxMgrDBExecutor type sqlx.DBExecutor for global manager server database
type CtxMonitorDBExecutor ¶
type CtxMonitorDBExecutor struct{}
CtxMonitorDBExecutor type sqlx.DBExecutor for global monitor server database
type CtxOperatorPool ¶ added in v1.5.9
type CtxOperatorPool struct{}
CtxOperatorPool type *operator.Pool global operator memory pool
type CtxOperators ¶ added in v1.4.6
type CtxOperators struct{}
CtxOperators type []models.Operator filtered operators
type CtxProjectOperator ¶ added in v1.4.6
type CtxProjectOperator struct{}
CtxProjectOperator type *models.ProjectOperator
type CtxProxyClient ¶ added in v1.1.0
type CtxProxyClient struct{}
CtxProxyClient type *client.Client http client for forwarding mqtt event
type CtxRedisEndpoint ¶ added in v1.0.0
type CtxRedisEndpoint struct{}
CtxRedisEndpoint type *redis.Redis. redis endpoint
type CtxResourceOwnership ¶ added in v1.1.0
type CtxResourceOwnership struct{}
CtxResourceOwnership type *models.ResourceOwnership
type CtxRobotNotifierConfig ¶ added in v1.2.3
type CtxRobotNotifierConfig struct{}
CtxRobotNotifierConfig type *RobotNotifierConfig for notify service level message to maintainers.
type CtxStrategyResults ¶ added in v1.1.0
type CtxStrategyResults struct{} // CtxStrategyResults
CtxStrategyResults type []*StrategyResult event strategies
type CtxTrafficLimit ¶ added in v1.2.5
type CtxTrafficLimit struct{}
CtxTrafficLimit type *models.TrafficLimit
type CtxUploadConfig ¶
type CtxUploadConfig struct{}
CtxUploadConfig type *UploadConfig. resource upload configuration
type CtxWasmApiServer ¶ added in v1.4.2
type CtxWasmApiServer struct{}
CtxWasmApiServer type wasmapi/types.Server wasm global async server TODO move to wasm context package
type CtxWasmDBConfig ¶ added in v1.2.2
type CtxWasmDBConfig struct{}
CtxWasmDBConfig type *WasmDBConfig wasm database config
type ETHClientConfig ¶
func ETHClientConfigFromContext ¶
func ETHClientConfigFromContext(ctx context.Context) (*ETHClientConfig, bool)
func MustETHClientConfigFromContext ¶
func MustETHClientConfigFromContext(ctx context.Context) *ETHClientConfig
func (*ETHClientConfig) Init ¶ added in v1.2.4
func (c *ETHClientConfig) Init()
type EthAddressWhiteList ¶ added in v1.4.6
type EthAddressWhiteList []string
func EthAddressWhiteListFromContext ¶ added in v1.4.6
func EthAddressWhiteListFromContext(ctx context.Context) (*EthAddressWhiteList, bool)
func MustEthAddressWhiteListFromContext ¶ added in v1.4.6
func MustEthAddressWhiteListFromContext(ctx context.Context) *EthAddressWhiteList
func (*EthAddressWhiteList) Init ¶ added in v1.4.6
func (v *EthAddressWhiteList) Init()
func (*EthAddressWhiteList) Validate ¶ added in v1.4.6
func (v *EthAddressWhiteList) Validate(address string) bool
type FileSystem ¶ added in v1.1.0
type FileSystem struct {
Type enums.FileSystemMode `env:""`
}
func (*FileSystem) SetDefault ¶ added in v1.1.0
func (f *FileSystem) SetDefault()
type InitializerWith ¶ added in v1.1.0
type InitializerWith = types.InitializerWith
aliases from base/types
type MetricsCenterConfig ¶ added in v1.2.2
func MetricsCenterConfigFromContext ¶ added in v1.2.2
func MetricsCenterConfigFromContext(ctx context.Context) (*MetricsCenterConfig, bool)
func MustMetricsCenterConfigFromContext ¶ added in v1.2.2
func MustMetricsCenterConfigFromContext(ctx context.Context) *MetricsCenterConfig
type Risc0Config ¶ added in v1.5.9
func (*Risc0Config) LivenessCheck ¶ added in v1.5.9
func (r *Risc0Config) LivenessCheck() map[string]string
type RobotNotifierConfig ¶ added in v1.2.3
type RobotNotifierConfig struct { Vendor string `env:""` // Vendor robot vendor eg: `Lark` `Wechat Work` `DingTalk` Env string `env:""` // Env Service env, eg: dev-staging, prod URL string `env:""` // URL webhook url Secret string `env:""` // Secret message secret PINs []string `env:""` // PINs pin someone SignFn func(int64) (string, error) `env:"-"` }
func MustRobotNotifierConfigFromContext ¶ added in v1.2.3
func MustRobotNotifierConfigFromContext(ctx context.Context) *RobotNotifierConfig
func RobotNotifierConfigFromContext ¶ added in v1.2.3
func RobotNotifierConfigFromContext(ctx context.Context) (*RobotNotifierConfig, bool)
func (*RobotNotifierConfig) Init ¶ added in v1.2.3
func (c *RobotNotifierConfig) Init()
func (*RobotNotifierConfig) IsZero ¶ added in v1.2.3
func (c *RobotNotifierConfig) IsZero() bool
type StrategyResult ¶ added in v1.1.0
type StrategyResult struct { ProjectName string `json:"projectName" db:"f_prj_name"` AppletID types.SFID `json:"appletID" db:"f_app_id"` AppletName string `json:"appletName" db:"f_app_name"` InstanceID types.SFID `json:"instanceID" db:"f_ins_id"` Handler string `json:"handler" db:"f_hdl"` EventType string `json:"eventType" db:"f_evt"` AutoCollect datatypes.Bool `json:"autoCollect" db:"f_auto_collect"` }
func MustStrategyResultsFromContext ¶ added in v1.1.0
func MustStrategyResultsFromContext(ctx context.Context) []*StrategyResult
func StrategyResultsFromContext ¶ added in v1.1.0
func StrategyResultsFromContext(ctx context.Context) ([]*StrategyResult, bool)
type UploadConfig ¶
func MustUploadConfigFromContext ¶
func MustUploadConfigFromContext(ctx context.Context) *UploadConfig
func UploadConfigFromContext ¶
func UploadConfigFromContext(ctx context.Context) (*UploadConfig, bool)
func (*UploadConfig) SetDefault ¶
func (c *UploadConfig) SetDefault()
type ValidatedInitializer ¶ added in v1.1.0
type ValidatedInitializer = types.ValidatedInitializer
aliases from base/types
type ValidatedInitializerWith ¶ added in v1.1.0
type ValidatedInitializerWith = types.ValidatedInitializerWith
aliases from base/types
type WasmDBConfig ¶ added in v1.2.2
type WasmDBConfig struct { Endpoint types.Endpoint MaxConnection int PoolSize int ConnMaxLifetime types.Duration }
func MustWasmDBConfigFromContext ¶ added in v1.2.2
func MustWasmDBConfigFromContext(ctx context.Context) *WasmDBConfig
func WasmDBConfigFromContext ¶ added in v1.2.2
func WasmDBConfigFromContext(ctx context.Context) (*WasmDBConfig, bool)
func (*WasmDBConfig) SetDefault ¶ added in v1.2.2
func (c *WasmDBConfig) SetDefault()