gb28181db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by gowebx, DO AVOID EDIT.

Code generated by gowebx, DO AVOID EDIT.

Code generated by gowebx, DO AVOID EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel DB

Channel Related business namespaces

func NewChannel

func NewChannel(db *gorm.DB) Channel

NewChannel instance object

func (Channel) Add

func (d Channel) Add(ctx context.Context, model *gb28181.Channel) error

Add implements gb28181.ChannelStorer.

func (Channel) Del

func (d Channel) Del(ctx context.Context, model *gb28181.Channel, opts ...orm.QueryOption) error

Del implements gb28181.ChannelStorer.

func (Channel) Edit

func (d Channel) Edit(ctx context.Context, model *gb28181.Channel, changeFn func(*gb28181.Channel), opts ...orm.QueryOption) error

Edit implements gb28181.ChannelStorer.

func (Channel) EditWithSession

func (d Channel) EditWithSession(tx *gorm.DB, model *gb28181.Channel, changeFn func(b *gb28181.Channel) error, opts ...orm.QueryOption) error

func (Channel) Find

func (d Channel) Find(ctx context.Context, bs *[]*gb28181.Channel, page orm.Pager, opts ...orm.QueryOption) (int64, error)

Find implements gb28181.ChannelStorer.

func (Channel) Get

func (d Channel) Get(ctx context.Context, model *gb28181.Channel, opts ...orm.QueryOption) error

Get implements gb28181.ChannelStorer.

func (Channel) Session

func (d Channel) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error

type DB

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

DB Related business namespaces

func NewDB

func NewDB(db *gorm.DB) DB

NewDB instance object

func (DB) AutoMigrate

func (d DB) AutoMigrate(ok bool) DB

AutoMigrate sync database

func (DB) Channel

func (d DB) Channel() gb28181.ChannelStorer

Channel Get business instance

func (DB) Device

func (d DB) Device() gb28181.DeviceStorer

Device Get business instance

type Device

type Device DB

Device Related business namespaces

func NewDevice

func NewDevice(db *gorm.DB) Device

NewDevice instance object

func (Device) Add

func (d Device) Add(ctx context.Context, model *gb28181.Device) error

Add implements gb28181.DeviceStorer.

func (Device) Del

func (d Device) Del(ctx context.Context, model *gb28181.Device, opts ...orm.QueryOption) error

Del implements gb28181.DeviceStorer.

func (Device) Edit

func (d Device) Edit(ctx context.Context, model *gb28181.Device, changeFn func(*gb28181.Device), opts ...orm.QueryOption) error

Edit implements gb28181.DeviceStorer.

func (Device) EditWithSession

func (d Device) EditWithSession(tx *gorm.DB, model *gb28181.Device, changeFn func(b *gb28181.Device) error, opts ...orm.QueryOption) error

func (Device) Find

func (d Device) Find(ctx context.Context, bs *[]*gb28181.Device, page orm.Pager, opts ...orm.QueryOption) (int64, error)

Find implements gb28181.DeviceStorer.

func (Device) Get

func (d Device) Get(ctx context.Context, model *gb28181.Device, opts ...orm.QueryOption) error

Get implements gb28181.DeviceStorer.

func (Device) Session

func (d Device) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error

Jump to

Keyboard shortcuts

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