Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BreakerOption ¶
type DbAgent ¶
type DbAgent interface { GetDB(ctx context.Context) (db *mongo.Database, err error) client.Recoverable client.Agent }
func NewMajorAgent ¶
func NewMajorAgent(option MajorOption) (DbAgent, error)
type DbClient ¶
type DbClient struct {
// contains filtered or unexported fields
}
func (*DbClient) DoWithPartition ¶
type MajorOption ¶
type MajorOption struct { *options.ClientOptions Parallel int Database string }
type Option ¶
type Option struct { Parallel *int Record *record.Factory Breaker *BreakerOption ClientMiddles []client.DoMiddle }
func (Option) SetBreaker ¶
func (Option) SetParallel ¶
Click to show internal directories.
Click to hide internal directories.