Documentation
¶
Index ¶
- type StartOption
- type Store
- func (s *Store) Close(ctx context.Context)
- func (s *Store) CreateBoundary(ctx context.Context, definition boundarymodel.Definition) (boundarymodel.Boundary, error)
- func (s *Store) CreateBoundaryIndex(ctx context.Context, boundary, name string, fields []orisun.BoundaryIndexField, ...) error
- func (s *Store) DropBoundaryIndex(ctx context.Context, boundary, name string) error
- func (s *Store) GetBoundary(ctx context.Context, name string) (boundarymodel.Boundary, error)
- func (s *Store) GetBoundaryIndex(ctx context.Context, boundary, name string) (*orisun.BoundaryIndex, error)
- func (s *Store) JetStream() jetstream.JetStream
- func (s *Store) ListBoundaries(ctx context.Context) ([]boundarymodel.Boundary, error)
- func (s *Store) ListBoundaryIndexes(ctx context.Context, boundary string) ([]orisun.BoundaryIndex, error)
- func (s *Store) NATSConnection() *natsgo.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StartOption ¶
type StartOption func(*startOptions)
func WithJetStream ¶
func WithJetStream(js jetstream.JetStream) StartOption
func WithNATSConnection ¶
func WithNATSConnection(conn *natsgo.Conn, opts ...jetstream.JetStreamOpt) StartOption
func WithNATSURL ¶
func WithNATSURL(url string, opts ...natsgo.Option) StartOption
type Store ¶
type Store struct {
*orisun.OrisunServer
// contains filtered or unexported fields
}
func (*Store) CreateBoundary ¶ added in v0.8.0
func (s *Store) CreateBoundary(ctx context.Context, definition boundarymodel.Definition) (boundarymodel.Boundary, error)
CreateBoundary emits a boundary definition event. The store's provisioning subscriber creates the physical boundary and activates it asynchronously.
func (*Store) CreateBoundaryIndex ¶
func (s *Store) CreateBoundaryIndex(ctx context.Context, boundary, name string, fields []orisun.BoundaryIndexField, conditions []orisun.BoundaryIndexCondition, combinator string) error
func (*Store) DropBoundaryIndex ¶
func (*Store) GetBoundary ¶ added in v0.8.0
func (*Store) GetBoundaryIndex ¶ added in v0.9.3
func (*Store) ListBoundaries ¶ added in v0.8.0
func (*Store) ListBoundaryIndexes ¶ added in v0.9.3
func (*Store) NATSConnection ¶
Click to show internal directories.
Click to hide internal directories.