Documentation ¶
Index ¶
- Constants
- type SQLStore
- func (ds *SQLStore) Close() error
- func (ds *SQLStore) GetAppByID(ctx context.Context, appID string) (*models.App, error)
- func (ds *SQLStore) GetAppID(ctx context.Context, appName string) (string, error)
- func (ds *SQLStore) GetApps(ctx context.Context, filter *models.AppFilter) (*models.AppList, error)
- func (ds *SQLStore) GetFnByID(ctx context.Context, fnID string) (*models.Fn, error)
- func (ds *SQLStore) GetFns(ctx context.Context, filter *models.FnFilter) (*models.FnList, error)
- func (ds *SQLStore) GetTrigger(ctx context.Context, appId, fnId, triggerName string) (*models.Trigger, error)
- func (ds *SQLStore) GetTriggerByID(ctx context.Context, triggerID string) (*models.Trigger, error)
- func (ds *SQLStore) GetTriggerBySource(ctx context.Context, appId string, triggerType, source string) (*models.Trigger, error)
- func (ds *SQLStore) GetTriggers(ctx context.Context, filter *models.TriggerFilter) (*models.TriggerList, error)
- func (ds *SQLStore) InsertApp(ctx context.Context, newApp *models.App) (*models.App, error)
- func (ds *SQLStore) InsertFn(ctx context.Context, newFn *models.Fn) (*models.Fn, error)
- func (ds *SQLStore) InsertTrigger(ctx context.Context, newTrigger *models.Trigger) (*models.Trigger, error)
- func (ds *SQLStore) RemoveApp(ctx context.Context, appID string) error
- func (ds *SQLStore) RemoveFn(ctx context.Context, fnID string) error
- func (ds *SQLStore) RemoveTrigger(ctx context.Context, triggerId string) error
- func (ds *SQLStore) Tx(f func(*sqlx.Tx) error) error
- func (ds *SQLStore) UpdateApp(ctx context.Context, newapp *models.App) (*models.App, error)
- func (ds *SQLStore) UpdateFn(ctx context.Context, fn *models.Fn) (*models.Fn, error)
- func (ds *SQLStore) UpdateTrigger(ctx context.Context, trigger *models.Trigger) (*models.Trigger, error)
Constants ¶
View Source
const (
EnvDBPingMaxRetries = "FN_DS_DB_PING_MAX_RETRIES"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
SQLStore implements models.Datastore
func New ¶
New will open the db specified by url, create any tables necessary and return a models.Datastore safe for concurrent usage.
func (*SQLStore) GetAppByID ¶
func (*SQLStore) GetTrigger ¶
func (*SQLStore) GetTriggerByID ¶
func (*SQLStore) GetTriggerBySource ¶
func (*SQLStore) GetTriggers ¶
func (ds *SQLStore) GetTriggers(ctx context.Context, filter *models.TriggerFilter) (*models.TriggerList, error)
func (*SQLStore) InsertTrigger ¶
func (*SQLStore) RemoveTrigger ¶
Click to show internal directories.
Click to hide internal directories.