data

package
v0.0.0-...-5c9bec8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB() *gorm.DB

Types

type Segment

type Segment struct {
	ID               uint   `gorm:"primarykey"`
	Tag              string `gorm:"uniqueIndex"`
	Step             uint32
	MaxSeq           uint64
	TagDescription   string
	PreloadThreshold float32
	CreatedAt        int64
	UpdatedAt        int64
	DeletedAt        soft_delete.DeletedAt
}

func (*Segment) ToDo

func (po *Segment) ToDo() *domain.Segment

type SegmentRepo

type SegmentRepo interface {
	domain.SegmentRepo
	GetSegmentByID(ctx context.Context, ID string) (*domain.Segment, error)
}

func NewSegmentRepo

func NewSegmentRepo(db *gorm.DB) SegmentRepo

Jump to

Keyboard shortcuts

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