service

package
v0.0.0-...-23299de Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxService

func NewTxService(db *sqlx.DB, repo *txRepo) *txService

Types

type Service

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

func NewService

func NewService(db *sqlx.DB, repo *srepo) *Service

func (*Service) CancelSubscription

func (s *Service) CancelSubscription(ctx context.Context, id int64) (*Subscription, error)

type Subscription

type Subscription struct {
	ID         int64        `db:"id"`
	Status     string       `db:"status"`
	CanceledAt sql.NullTime `db:"canceled_at"`
}

Jump to

Keyboard shortcuts

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