Documentation ¶
Index ¶
- func NewMySQLStateStore(logger logger.Logger) state.Store
- type MySQL
- func (m *MySQL) BulkDelete(req []state.DeleteRequest) error
- func (m *MySQL) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)
- func (m *MySQL) BulkSet(req []state.SetRequest) error
- func (m *MySQL) Close() error
- func (m *MySQL) Delete(req *state.DeleteRequest) error
- func (m *MySQL) Features() []state.Feature
- func (m *MySQL) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (m *MySQL) Init(metadata state.Metadata) error
- func (m *MySQL) Multi(request *state.TransactionalStateRequest) error
- func (m *MySQL) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
MySQL state store.
func (*MySQL) BulkDelete ¶
func (m *MySQL) BulkDelete(req []state.DeleteRequest) error
BulkDelete removes multiple entries from the store Store Interface.
func (*MySQL) BulkGet ¶
func (m *MySQL) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)
BulkGet performs a bulks get operations.
func (*MySQL) BulkSet ¶
func (m *MySQL) BulkSet(req []state.SetRequest) error
BulkSet adds/updates multiple entities on store Store Interface.
func (*MySQL) Delete ¶
func (m *MySQL) Delete(req *state.DeleteRequest) error
Delete removes an entity from the store Store Interface.
func (*MySQL) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*MySQL) Get ¶
func (m *MySQL) Get(req *state.GetRequest) (*state.GetResponse, error)
Get returns an entity from store Store Interface.
func (*MySQL) Init ¶
Init initializes the SQL server state store Implements the following interfaces: Store TransactionalStore Populate the rest of the MySQL object by reading the metadata and opening a connection to the server.
Click to show internal directories.
Click to hide internal directories.