plan

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	wire.Struct(new(Store), "*"),
	wire.Struct(new(Service), "*"),
)
View Source
var ErrPlanNotFound = errors.New("plan not found")

Functions

This section is empty.

Types

type Service

type Service struct {
	PlanStore *Store
	AppConfig *portalconfig.AppConfig
}

func (*Service) GetDefaultPlan

func (s *Service) GetDefaultPlan() (*model.Plan, error)

func (*Service) ListPlans

func (s *Service) ListPlans() ([]*model.Plan, error)

type Store

type Store struct {
	Clock       clock.Clock
	SQLBuilder  *globaldb.SQLBuilder
	SQLExecutor *globaldb.SQLExecutor
}

func (*Store) Create

func (s *Store) Create(plan *model.Plan) error

func (*Store) GetPlan

func (s *Store) GetPlan(name string) (*model.Plan, error)

func (*Store) List

func (s *Store) List() ([]*model.Plan, error)

func (*Store) Update

func (s *Store) Update(plan *model.Plan) error

Jump to

Keyboard shortcuts

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