Documentation ¶
Index ¶
- func New(logger logger.Logger) state.Store
- type IndexedProperty
- type KeyType
- type SQLServer
- func (s *SQLServer) CleanupExpired() error
- func (s *SQLServer) Close() error
- func (s *SQLServer) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (s *SQLServer) Features() []state.Feature
- func (s *SQLServer) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (s *SQLServer) GetCleanupInterval() *time.Duration
- func (s *SQLServer) GetComponentMetadata() map[string]string
- func (s *SQLServer) Init(ctx context.Context, metadata state.Metadata) error
- func (s *SQLServer) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (s *SQLServer) Set(ctx context.Context, req *state.SetRequest) error
- type TvpDeleteTableStringKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexedProperty ¶
type IndexedProperty struct { ColumnName string `json:"column"` Property string `json:"property"` Type string `json:"type"` }
IndexedProperty defines a indexed property.
type KeyType ¶
type KeyType string
KeyType defines type of the table identifier.
const ( // StringKeyType defines a key of type string. StringKeyType KeyType = "string" // UUIDKeyType defines a key of type UUID/GUID. UUIDKeyType KeyType = "uuid" // IntegerKeyType defines a key of type integer. IntegerKeyType KeyType = "integer" // InvalidKeyType defines an invalid key type. InvalidKeyType KeyType = "invalid" )
func KeyTypeFromString ¶
KeyTypeFromString tries to create a KeyType from a string value.
type SQLServer ¶
SQLServer defines a Ms SQL Server based state store.
func (*SQLServer) CleanupExpired ¶ added in v1.11.0
func (*SQLServer) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*SQLServer) Get ¶
func (s *SQLServer) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get returns an entity from store.
func (*SQLServer) GetCleanupInterval ¶ added in v1.11.0
GetCleanupInterval returns the cleanupInterval property. This is primarily used for tests.
func (*SQLServer) GetComponentMetadata ¶ added in v1.10.1
type TvpDeleteTableStringKey ¶
TvpDeleteTableStringKey defines a table type with string key.
Click to show internal directories.
Click to hide internal directories.