Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { WG sync.WaitGroup FS afero.Fs Cfg *types.DRLMCoreConfig DB *gorm.DB MinioCli *minio.Client MinioAdminCli *madmin.AdminClient // contains filtered or unexported fields }
Context has the "global" values of the app (such as the config, the DB connection...). It also implements context.Context
func Background ¶
func Background() *Context
Background creates a new context with context.Background as the inner context
func WithCancel ¶
func WithCancel() (*Context, context.CancelFunc)
WithCancel creates a new context with context.WithCancel as the inner context
Click to show internal directories.
Click to hide internal directories.