xsm

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaInfo

type SchemaInfo struct {
	Name    string `json:"name" form:"name,strip,lower" validate:"required,maxlen=30,regexp=^[a-z][a-z0-9]{00x2C29}$"`
	Size    int64  `json:"size,omitempty"`
	Comment string `json:"comment,omitempty" form:"comment" validate:"omitempty,maxlen=250"`
}

type SchemaManager

type SchemaManager interface {
	ExistsSchema(s string) (bool, error)
	ListSchemas() ([]string, error)
	CreateSchema(name string, comment string) error
	CommentSchema(name string, comment string) error
	RenameSchema(old string, new string) error
	DeleteSchema(name string) error
	CountSchemas(sq *SchemaQuery) (total int, err error)
	FindSchemas(sq *SchemaQuery) (schemas []*SchemaInfo, err error)
}

type SchemaQuery

type SchemaQuery struct {
	args.Pager
	args.Sorter
	Name string `json:"name" form:"name,strip"`
}

func (*SchemaQuery) Normalize

func (sq *SchemaQuery) Normalize(limits []int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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