Documentation ¶
Index ¶
- type Item
- type MongoDB
- func (m *MongoDB) BulkDelete(req []state.DeleteRequest) error
- func (m *MongoDB) BulkSet(req []state.SetRequest) error
- func (m *MongoDB) Delete(req *state.DeleteRequest) error
- func (m *MongoDB) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (m *MongoDB) Init(metadata state.Metadata) error
- func (m *MongoDB) Multi(request *state.TransactionalStateRequest) error
- func (m *MongoDB) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB is a state store implementation for MongoDB
func NewMongoDB ¶
NewMongoDB returns a new MongoDB state store
func (*MongoDB) BulkDelete ¶
func (m *MongoDB) BulkDelete(req []state.DeleteRequest) error
BulkDelete performs a bulk delete operation
func (*MongoDB) BulkSet ¶
func (m *MongoDB) BulkSet(req []state.SetRequest) error
BulkSet performs a bulks save operation
func (*MongoDB) Delete ¶
func (m *MongoDB) Delete(req *state.DeleteRequest) error
Delete performs a delete operation
func (*MongoDB) Get ¶
func (m *MongoDB) Get(req *state.GetRequest) (*state.GetResponse, error)
Get retrieves state from MongoDB with a key
Click to show internal directories.
Click to hide internal directories.