Documentation ¶
Index ¶
- type PostgreSQL
- func (p *PostgreSQL) BulkDelete(req []state.DeleteRequest) error
- func (p *PostgreSQL) BulkSet(req []state.SetRequest) error
- func (p *PostgreSQL) Close() error
- func (p *PostgreSQL) Delete(req *state.DeleteRequest) error
- func (p *PostgreSQL) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (p *PostgreSQL) Init(metadata state.Metadata) error
- func (p *PostgreSQL) Multi(reqs []state.TransactionalRequest) error
- func (p *PostgreSQL) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgreSQL ¶
type PostgreSQL struct {
// contains filtered or unexported fields
}
PostgreSQL state store
func NewPostgreSQLStateStore ¶
func NewPostgreSQLStateStore(logger logger.Logger) *PostgreSQL
NewPostgreSQLStateStore creates a new instance of PostgreSQL state store
func (*PostgreSQL) BulkDelete ¶
func (p *PostgreSQL) BulkDelete(req []state.DeleteRequest) error
BulkDelete removes multiple entries from the store
func (*PostgreSQL) BulkSet ¶
func (p *PostgreSQL) BulkSet(req []state.SetRequest) error
BulkSet adds/updates multiple entities on store
func (*PostgreSQL) Delete ¶
func (p *PostgreSQL) Delete(req *state.DeleteRequest) error
Delete removes an entity from the store
func (*PostgreSQL) Get ¶
func (p *PostgreSQL) Get(req *state.GetRequest) (*state.GetResponse, error)
Get returns an entity from store
func (*PostgreSQL) Init ¶
func (p *PostgreSQL) Init(metadata state.Metadata) error
Init initializes the SQL server state store
func (*PostgreSQL) Multi ¶
func (p *PostgreSQL) Multi(reqs []state.TransactionalRequest) error
Multi handles multiple transactions. Implements TransactionalStore.
func (*PostgreSQL) Set ¶
func (p *PostgreSQL) Set(req *state.SetRequest) error
Set adds/updates an entity on store
Click to show internal directories.
Click to hide internal directories.