data

package
v0.0.0-...-6fd52d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewGreeterRepo

func NewGreeterRepo(data *Data, logger log.Logger) biz.GreeterRepo

NewGreeterRepo .

func NewPodRepository

func NewPodRepository(mysqlDb *gorm.DB) biz.IPodRepository

Types

type Data

type Data struct {
}

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error)

NewData .

type PodRepository

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

func (*PodRepository) CreatePod

func (u *PodRepository) CreatePod(pod *model.Pod) (int64, error)

创建 Pod

func (*PodRepository) DeletePodByID

func (u *PodRepository) DeletePodByID(podID int64) error

根据 ID 删除 Pod 信息

func (*PodRepository) FindAll

func (u *PodRepository) FindAll() (podAll []model.Pod, err error)

获取结果集合

func (*PodRepository) FindPodByID

func (u *PodRepository) FindPodByID(podID int64) (pod *model.Pod, err error)

根据ID查找Pod信息

func (*PodRepository) InitTable

func (u *PodRepository) InitTable() error

初始化表

func (*PodRepository) UpdatePod

func (u *PodRepository) UpdatePod(pod *model.Pod) error

更新Pod信息

Jump to

Keyboard shortcuts

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