spanner

package
v0.0.0-...-e4f960d Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableDummies  = "Dummies"
	TableWebhooks = "Webhooks"
)

Variables

View Source
var DBErrNotFound = errs.Errorf(errs.CodeDBNotFound)

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(ctx context.Context, cfg config.Spanner) (Repo, error)

func (Repo) Close

func (r Repo) Close()

func (Repo) DeleteWebhook

func (w Repo) DeleteWebhook(ctx context.Context, cirlceId string) (time.Time, error)

func (Repo) GetDummy

func (d Repo) GetDummy(ctx context.Context, dummyID string) (model.Dummy, error)

func (Repo) GetWebhookByCircleId

func (w Repo) GetWebhookByCircleId(ctx context.Context, cirlceId string) (model.Webhook, error)

func (Repo) TxManager

func (r Repo) TxManager() repository.TxManager

func (Repo) UpsertWebhook

func (w Repo) UpsertWebhook(ctx context.Context, webhook model.Webhook) error

Jump to

Keyboard shortcuts

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