Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
type Bootstrapper interface { // Bootstrap creates some internal databases and tables at the time of MO Bootstrap(ctx context.Context) error }
Bootstrapper is used to create some internal databases and tables at the time of MO initialization according to a specific logic. It provides the necessary dependencies for other components to be launched later.
Note that, this bootstrapper is not used to bootstrap logservice and dn. The internal databases and tables as below: 1. mo_indexes in mo_catalog 2. task inferstructure database
func NewBootstrapper ¶
func NewBootstrapper( lock Locker, clock clock.Clock, client client.TxnClient, exec executor.SQLExecutor) Bootstrapper
NewBootstrapper create bootstrapper to bootstrap mo database
Click to show internal directories.
Click to hide internal directories.