Documentation ¶
Index ¶
- func NewConfig(opts ...ConfigOption) *config
- func NewGenerateLoseStore(client *mongo.Client, opts ...ConfigOption) *generateLoseStore
- func NewLowerTransactionStore(client *mongo.Client, opts ...ConfigOption) *lowerTransaction
- func NewStatusStore(client *mongo.Client, opts ...ConfigOption) *status
- func NewStore(client *mongo.Client, opts ...ConfigOption) *store
- func NewTransactionStore(client *mongo.Client, opts ...ConfigOption) *transaction
- type ConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(opts ...ConfigOption) *config
func NewGenerateLoseStore ¶
func NewGenerateLoseStore(client *mongo.Client, opts ...ConfigOption) *generateLoseStore
func NewLowerTransactionStore ¶
func NewLowerTransactionStore(client *mongo.Client, opts ...ConfigOption) *lowerTransaction
func NewStatusStore ¶
func NewStatusStore(client *mongo.Client, opts ...ConfigOption) *status
func NewStore ¶
func NewStore(client *mongo.Client, opts ...ConfigOption) *store
func NewTransactionStore ¶
func NewTransactionStore(client *mongo.Client, opts ...ConfigOption) *transaction
Types ¶
type ConfigOption ¶
type ConfigOption func(*config)
func ConfigWithCollection ¶
func ConfigWithCollection(collection string) ConfigOption
func ConfigWithConvert ¶
func ConfigWithConvert(convert role.PbConvertTask) ConfigOption
func ConfigWithCopy ¶
func ConfigWithCopy(cp xcopy.XCopy) ConfigOption
func ConfigWithDb ¶
func ConfigWithDb(db string) ConfigOption
func ConfigWithToken ¶
func ConfigWithToken(token string) ConfigOption
Click to show internal directories.
Click to hide internal directories.