instance

package
v0.0.0-...-60798a4 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	Create(ctx context.Context, instance *provider.Instance) (int64, error)
	Get(ctx context.Context, id int64) (*provider.Instance, error)
	GetByName(ctx context.Context, name string) (*provider.Instance, error)
	Update(ctx context.Context, instance *provider.Instance, props ...string) error
	Delete(ctx context.Context, id int64) error
	Count(ctx context.Context, query *q.Query) (total int64, err error)
	List(ctx context.Context, query *q.Query) (ins []*provider.Instance, err error)
}

DAO for instance

func New

func New() DAO

New instance dao

type ListInstanceQuery

type ListInstanceQuery struct {
	Page     uint
	PageSize uint
	Keyword  string
}

ListInstanceQuery defines the query params of the instance record.

Jump to

Keyboard shortcuts

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