Documentation ¶
Index ¶
- type Core
- func (c *Core) Context() context.Context
- func (c *Core) Logger() *logs.Logger
- func (c *Core) SetupAllStores()
- func (c *Core) SetupInvokerStores()
- func (c *Core) Start() error
- func (c *Core) StartTask(name string, task func(ctx context.Context))
- func (c *Core) StartUniqueDaemon(name string, task func(ctx context.Context))
- func (c *Core) Stop()
- func (c *Core) WrapTx(ctx context.Context, fn func(ctx context.Context) error, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct { // Config contains config. Config config.Config // Settings contains settings store. Settings *models.SettingStore // Tasks contains task store. Tasks *models.TaskStore // Locks contains lock store. Locks *models.LockStore // Files contains file store. Files models.FileStore // Roles contains role store. Roles *models.RoleStore // RoleEdges contains role edge store. RoleEdges *models.RoleEdgeStore // Accounts contains account store. Accounts *models.AccountStore // AccountRoles contains account role store. AccountRoles *models.AccountRoleStore // Sessions contains session store. Sessions *models.SessionStore // Tokens contains token store. Tokens *models.TokenStore // Users contains user store. Users *models.UserStore // Scopes contains scope store. Scopes *models.ScopeStore // ScopeUsers contains scope user store. ScopeUsers *models.ScopeUserStore // Groups contains group store. Groups *models.GroupStore // GroupMembers contains group member store. GroupMembers *models.GroupMemberStore // Problems contains problems store. Problems *models.ProblemStore // ProblemResources contains problem resources store. ProblemResources *models.ProblemResourceStore // Solutions contains solutions store. Solutions *models.SolutionStore // Contests contains contest store. Contests *models.ContestStore // ContestProblems contains contest problems store. ContestProblems *models.ContestProblemStore // ContestParticipants contains contest participants store. ContestParticipants *models.ContestParticipantStore // ContestSolutions contains contest solutions store. ContestSolutions *models.ContestSolutionStore // ContestMessages contains contest messages store. ContestMessages models.ContestMessageStore // Compilers contains compiler store. Compilers *models.CompilerStore // Visits contains visit store. Visits *models.VisitStore // DB stores database connection. DB *gosql.DB // contains filtered or unexported fields }
Core manages all available resources.
func (*Core) SetupInvokerStores ¶
func (c *Core) SetupInvokerStores()
func (*Core) StartUniqueDaemon ¶
Click to show internal directories.
Click to hide internal directories.