sqlsubscriptionstore

package
v0.0.0-...-594fe3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionStore

type SubscriptionStore struct {
	// contains filtered or unexported fields
}

SubscriptionStore implements the subscription.Store interface using an SQL database.

func New

func New(db pool.Pool) (*SubscriptionStore, error)

New returns a new *SubscriptionStore.

func (*SubscriptionStore) GetAllSubscriptions

func (s *SubscriptionStore) GetAllSubscriptions(ctx context.Context) ([]*pb.Subscription, error)

GetAllSubscriptions implements the subscription.Store interface. This function queries the db to fetch all the subscriptions.

func (*SubscriptionStore) GetSubscription

func (s *SubscriptionStore) GetSubscription(ctx context.Context, name string, revision string) (*pb.Subscription, error)

GetSubscription implements the subscription.Store interface.

func (*SubscriptionStore) InsertSubscriptions

func (s *SubscriptionStore) InsertSubscriptions(ctx context.Context, subs []*pb.Subscription) error

InsertSubscriptions implements the subscription.Store interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL