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) GetCall(ctx context.Context, fnID, callID string) (*models.Call, error)
- func (ds *SQLStore) GetCall1(ctx context.Context, appID, callID string) (*models.Call, error)
- func (ds *SQLStore) GetCalls(ctx context.Context, filter *models.CallFilter) (*models.CallList, error)
- func (ds *SQLStore) GetCalls1(ctx context.Context, filter *models.CallFilter) ([]*models.Call, 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) GetLog(ctx context.Context, fnID, callID string) (io.Reader, 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) InsertCall(ctx context.Context, call *models.Call) error
- func (ds *SQLStore) InsertFn(ctx context.Context, newFn *models.Fn) (*models.Fn, error)
- func (ds *SQLStore) InsertLog(ctx context.Context, call *models.Call, logR io.Reader) 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
}
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) InsertCall ¶
func (*SQLStore) InsertTrigger ¶
func (*SQLStore) RemoveTrigger ¶
Click to show internal directories.
Click to hide internal directories.