Documentation ¶
Index ¶
- func AppletFromContext(ctx context.Context) (*models.Applet, bool)
- func DBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
- func InstanceFromContext(ctx context.Context) (*models.Instance, bool)
- func LoggerFromContext(ctx context.Context) (log.Logger, bool)
- func MonitorDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
- func MqttBrokerFromContext(ctx context.Context) (*mqtt.Broker, bool)
- func MustAppletFromContext(ctx context.Context) *models.Applet
- func MustDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
- func MustInstanceFromContext(ctx context.Context) *models.Instance
- func MustLoggerFromContext(ctx context.Context) log.Logger
- func MustMonitorDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
- func MustMqttBrokerFromContext(ctx context.Context) *mqtt.Broker
- func MustPgEndpointFromContext(ctx context.Context) *postgres.Endpoint
- func MustProjectFromContext(ctx context.Context) *models.Project
- func MustTaskBoardFromContext(ctx context.Context) *mq.TaskBoard
- func MustTaskWorkerFromContext(ctx context.Context) *mq.TaskWorker
- func PgEndpointFromContext(ctx context.Context) (*postgres.Endpoint, bool)
- func ProjectFromContext(ctx context.Context) (*models.Project, bool)
- func TaskBoardFromContext(ctx context.Context) (*mq.TaskBoard, bool)
- func TaskWorkerFromContext(ctx context.Context) (*mq.TaskWorker, bool)
- func WithApplet(ctx context.Context, a *models.Applet) context.Context
- func WithAppletContext(a *models.Applet) contextx.WithContext
- func WithDBExecutor(ctx context.Context, v sqlx.DBExecutor) context.Context
- func WithDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
- func WithETHClientConfig(ctx context.Context, v *ETHClientConfig) context.Context
- func WithETHClientConfigContext(v *ETHClientConfig) 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 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 WithPgEndpoint(ctx context.Context, v postgres.Endpoint) context.Context
- func WithPgEndpointContext(v *postgres.Endpoint) contextx.WithContext
- func WithProject(ctx context.Context, p *models.Project) context.Context
- func WithProjectContext(p *models.Project) contextx.WithContext
- func WithTaskBoard(ctx context.Context, tb *mq.TaskBoard) context.Context
- func WithTaskBoardContext(tb *mq.TaskBoard) contextx.WithContext
- func WithTaskWorker(ctx context.Context, tw *mq.TaskWorker) context.Context
- func WithTaskWorkerContext(tw *mq.TaskWorker) contextx.WithContext
- func WithUploadConfig(ctx context.Context, v *UploadConfig) context.Context
- func WithUploadConfigContext(v *UploadConfig) contextx.WithContext
- type Context
- type CtxApplet
- type CtxDBExecutor
- type CtxEthClient
- type CtxInstance
- type CtxLogger
- type CtxMonitorDBExecutor
- type CtxMqttBroker
- type CtxPgEndpoint
- type CtxProject
- type CtxTaskBoard
- type CtxTaskWorker
- type CtxUploadConfig
- type ETHClientConfig
- type SFID
- type SFIDs
- type UploadConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBExecutorFromContext ¶
func DBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
func MonitorDBExecutorFromContext ¶
func MonitorDBExecutorFromContext(ctx context.Context) (sqlx.DBExecutor, bool)
func MustDBExecutorFromContext ¶
func MustDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
func MustMonitorDBExecutorFromContext ¶
func MustMonitorDBExecutorFromContext(ctx context.Context) sqlx.DBExecutor
func MustTaskWorkerFromContext ¶
func MustTaskWorkerFromContext(ctx context.Context) *mq.TaskWorker
func PgEndpointFromContext ¶
func TaskWorkerFromContext ¶
func TaskWorkerFromContext(ctx context.Context) (*mq.TaskWorker, bool)
func WithAppletContext ¶
func WithAppletContext(a *models.Applet) contextx.WithContext
func WithDBExecutor ¶
func WithDBExecutorContext ¶
func WithDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
func WithETHClientConfig ¶
func WithETHClientConfig(ctx context.Context, v *ETHClientConfig) context.Context
func WithETHClientConfigContext ¶
func WithETHClientConfigContext(v *ETHClientConfig) contextx.WithContext
func WithInstanceContext ¶
func WithInstanceContext(i *models.Instance) contextx.WithContext
func WithLoggerContext ¶
func WithLoggerContext(v log.Logger) contextx.WithContext
func WithMonitorDBExecutor ¶
func WithMonitorDBExecutorContext ¶
func WithMonitorDBExecutorContext(v sqlx.DBExecutor) contextx.WithContext
func WithMqttBrokerContext ¶
func WithMqttBrokerContext(v *mqtt.Broker) contextx.WithContext
func WithPgEndpointContext ¶
func WithPgEndpointContext(v *postgres.Endpoint) contextx.WithContext
func WithProjectContext ¶
func WithProjectContext(p *models.Project) contextx.WithContext
func WithTaskBoardContext ¶
func WithTaskBoardContext(tb *mq.TaskBoard) contextx.WithContext
func WithTaskWorker ¶
func WithTaskWorkerContext ¶
func WithTaskWorkerContext(tw *mq.TaskWorker) contextx.WithContext
func WithUploadConfig ¶
func WithUploadConfig(ctx context.Context, v *UploadConfig) context.Context
func WithUploadConfigContext ¶
func WithUploadConfigContext(v *UploadConfig) contextx.WithContext
Types ¶
type CtxDBExecutor ¶
type CtxDBExecutor struct{} // CtxDBExecutor sqlx.DBExecutor
type CtxEthClient ¶
type CtxEthClient struct{} // CtxEthClient ETHClientConfig
type CtxInstance ¶
type CtxInstance struct{}
type CtxMonitorDBExecutor ¶
type CtxMonitorDBExecutor struct{} // CtxMonitorDBExecutor sqlx.DBExecutor
type CtxMqttBroker ¶
type CtxMqttBroker struct{} // CtxMqttBroker mqtt.Broker
type CtxPgEndpoint ¶
type CtxPgEndpoint struct{} // CtxPgEndpoint postgres.Endpoint
type CtxProject ¶
type CtxProject struct{}
type CtxTaskBoard ¶
type CtxTaskBoard struct{}
type CtxTaskWorker ¶
type CtxTaskWorker struct{}
type CtxUploadConfig ¶
type CtxUploadConfig struct{} // CtxUploadConfig UploadConfig
type ETHClientConfig ¶
func ETHClientConfigFromContext ¶
func ETHClientConfigFromContext(ctx context.Context) (*ETHClientConfig, bool)
func MustETHClientConfigFromContext ¶
func MustETHClientConfigFromContext(ctx context.Context) *ETHClientConfig
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()
Click to show internal directories.
Click to hide internal directories.