Documentation ¶
Index ¶
- Constants
- func NotDeleted(db *gorm.DB) *gorm.DB
- type Client
- type Guide
- type GuideDB
- func (db *GuideDB) BatchUpdateGuideExpiryStatus() error
- func (db *GuideDB) CancelGuide(id string) error
- func (db *GuideDB) CheckUniqueByAppIDAndBranch(appID uint64, branch, kind string) (bool, error)
- func (db *GuideDB) CreateGuide(guide *Guide) error
- func (db *GuideDB) GetGuide(id string) (guide Guide, err error)
- func (db *GuideDB) GetGuideByAppIDAndBranch(appID uint64, branch, kind string) (guide Guide, err error)
- func (db *GuideDB) ListGuide(req *pb.ListGuideRequest, userID string) (guides []Guide, err error)
- func (db *GuideDB) UpdateGuide(id string, fields map[string]interface{}) error
- func (db *GuideDB) UpdateGuideByAppIDAndBranch(appID uint64, branch, kind string, fields map[string]interface{}) error
- type GuideKind
- type GuideStatus
- type JSON
- type PipelineContent
Constants ¶
View Source
const ExpirationPeriod = 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Guide ¶
type GuideDB ¶
func (*GuideDB) BatchUpdateGuideExpiryStatus ¶
BatchUpdateGuideExpiryStatus .
func (*GuideDB) CheckUniqueByAppIDAndBranch ¶
func (*GuideDB) GetGuideByAppIDAndBranch ¶
func (db *GuideDB) GetGuideByAppIDAndBranch(appID uint64, branch, kind string) (guide Guide, err error)
GetGuideByAppIDAndBranch .
func (*GuideDB) UpdateGuide ¶
UpdateGuide .
type GuideStatus ¶
type GuideStatus string
const ( InitStatus GuideStatus = "init" ProcessedStatus GuideStatus = "processed" ExpiredStatus GuideStatus = "expired" CanceledStatus GuideStatus = "canceled" )
func (GuideStatus) String ¶
func (g GuideStatus) String() string
type JSON ¶
type JSON json.RawMessage
type PipelineContent ¶
Click to show internal directories.
Click to hide internal directories.